diff --git a/packages/google-cloud-compute/README.md b/packages/google-cloud-compute/README.md index 1c8a45e3005..a55b1c4b847 100644 --- a/packages/google-cloud-compute/README.md +++ b/packages/google-cloud-compute/README.md @@ -1154,6 +1154,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | abandon instances | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.abandon_instances.js) | | aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.aggregated_list.js) | | apply updates to instances | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.apply_updates_to_instances.js) | +| configure accelerator topologies | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.configure_accelerator_topologies.js) | | create instances | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.create_instances.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.delete.js) | | delete instances | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.delete_instances.js) | @@ -1256,6 +1257,13 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | update network interface | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instances.update_network_interface.js) | | update shielded instance config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instances.update_shielded_instance_config.js) | | update shielded vm config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instances.update_shielded_vm_config.js) | +| delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.delete.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.get.js) | +| get iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.get_iam_policy.js) | +| insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.insert.js) | +| list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.list.js) | +| set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.set_iam_policy.js) | +| test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.test_iam_permissions.js) | | aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.aggregated_list.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.get.js) | @@ -1601,6 +1609,13 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_instance_templates.insert.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_instance_templates.list.js) | | bulk insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_instances.bulk_insert.js) | +| delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.delete.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.get.js) | +| get iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.get_iam_policy.js) | +| insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.insert.js) | +| list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.list.js) | +| set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.set_iam_policy.js) | +| test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.test_iam_permissions.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshots.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshots.get.js) | | get iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshots.get_iam_policy.js) | @@ -1731,6 +1746,9 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | perform maintenance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.perform_maintenance.js) | | set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.set_iam_policy.js) | | test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.test_iam_permissions.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_slots.get.js) | +| list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_slots.list.js) | +| update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_slots.update.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.get.js) | | get iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.get_iam_policy.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.list.js) | @@ -1768,8 +1786,10 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/rollouts.list.js) | | aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.aggregated_list.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.delete.js) | +| delete named set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.delete_named_set.js) | | delete route policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.delete_route_policy.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.get.js) | +| get named set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.get_named_set.js) | | get nat ip info | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.get_nat_ip_info.js) | | get nat mapping info | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.get_nat_mapping_info.js) | | get route policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.get_route_policy.js) | @@ -1777,12 +1797,15 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.insert.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.list.js) | | list bgp routes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.list_bgp_routes.js) | +| list named sets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.list_named_sets.js) | | list route policies | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.list_route_policies.js) | | patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.patch.js) | +| patch named set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.patch_named_set.js) | | patch route policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.patch_route_policy.js) | | preview | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.preview.js) | | test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.test_iam_permissions.js) | | update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.update.js) | +| update named set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.update_named_set.js) | | update route policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routers.update_route_policy.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routes.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/routes.get.js) | @@ -1811,6 +1834,13 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.patch.js) | | set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.set_iam_policy.js) | | test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.test_iam_permissions.js) | +| delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.delete.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.get.js) | +| get iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.get_iam_policy.js) | +| insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.insert.js) | +| list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.list.js) | +| set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.set_iam_policy.js) | +| test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.test_iam_permissions.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/snapshot_settings_service.get.js) | | patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/snapshot_settings_service.patch.js) | | aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/snapshots.aggregated_list.js) | diff --git a/packages/google-cloud-compute/protos/google/cloud/compute/v1beta/compute.proto b/packages/google-cloud-compute/protos/google/cloud/compute/v1beta/compute.proto index 6ac64a97d78..85989bb8a3d 100644 --- a/packages/google-cloud-compute/protos/google/cloud/compute/v1beta/compute.proto +++ b/packages/google-cloud-compute/protos/google/cloud/compute/v1beta/compute.proto @@ -14,7 +14,7 @@ // Generated by the disco-to-proto3-converter. DO NOT EDIT! // Source Discovery file: compute.v1beta.json -// Source file revision: 20260106 +// Source file revision: 20260213 // API name: compute // API version: v1beta @@ -8030,7 +8030,7 @@ message AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk { } // Properties of the SKU instances being reserved. -// Next ID: 9 +// Next ID: 10 message AllocationSpecificSKUAllocationReservedInstanceProperties { // Specifies the frequency of planned maintenance events. The accepted // values are: `PERIODIC`. @@ -8609,9 +8609,6 @@ message AttachedDisk { // Check the Type enum for the list of possible values. optional string type = 3575610; - // Output only. [Output Only] A list of user provided licenses. It represents a list of - // URLs to the license resource. Unlike regular licenses, user provided - // licenses can be modified after the disk is created. repeated string user_licenses = 388193862; } @@ -8749,7 +8746,7 @@ message AttachedDiskInitializeParams { // as the instance zone. repeated string replica_zones = 48438272; - // Resource manager tags to be bound to the disk. Tag keys and values + // Input only. Resource manager tags to be bound to the disk. Tag keys and values // have the same definition as resource // manager tags. Keys and values can be either in numeric format, // such as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced @@ -9910,6 +9907,9 @@ message Backend { // balancing mode. optional float max_utilization = 148192199; + // Information about the resource or system that manages the backend. + optional BackendBackendOrchestrationInfo orchestration_info = 441144300; + // This field indicates whether this backend should be fully utilized before // sending traffic to backends with default preference. The possible values // are: @@ -9929,6 +9929,14 @@ message Backend { } +// A message containing information about the resource or system that manages +// the backend. +message BackendBackendOrchestrationInfo { + // The URI of the resource or system that manages the backend. + optional string resource_uri = 152830395; + +} + // Represents a Cloud Storage Bucket resource. // // This Cloud Storage bucket resource is referenced by a URL map of a load @@ -11107,6 +11115,9 @@ message BackendService { // networkPassThroughLbTrafficPolicy cannot be specified with haPolicy. optional BackendServiceNetworkPassThroughLbTrafficPolicy network_pass_through_lb_traffic_policy = 230323750; + // Information about the resource or system that manages the backend service. + optional BackendServiceOrchestrationInfo orchestration_info = 441144300; + // Settings controlling the ejection of unhealthy backend endpoints from the // load balancing pool of each individual proxy instance that processes the // traffic for the given backend service. If not set, this feature is @@ -12248,6 +12259,15 @@ message BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity { } +// A message containing information about the resource or system that manages +// the backend service. +message BackendServiceOrchestrationInfo { + // The resource URI of the resource or system that manages the backend + // service. + optional string resource_uri = 152830395; + +} + // Additional Backend Service parameters. message BackendServiceParams { // Tag keys/values directly bound to this resource. @@ -12850,6 +12870,12 @@ message BulkInsertDiskRequest { // compute.regionDisks.bulkInsert. It is only used to process // requests and is not persisted. message BulkInsertDiskResource { + // The parameters for the instant snapshot group. + optional InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623; + + // The parameters for the snapshot group. + optional SnapshotGroupParameters snapshot_group_parameters = 42252485; + // The URL of the DiskConsistencyGroupPolicy for the group of disks to clone. // This may be a full or partial URL, such as: // @@ -13210,6 +13236,213 @@ message CacheKeyPolicy { } +// Message containing CachePolicy configuration for URL Map's Route Action. +message CachePolicy { + // Specifies the cache setting for all responses from this route. + // If not specified, the default value is CACHE_ALL_STATIC. + enum CacheMode { + // A value indicating that the enum field is not set. + UNDEFINED_CACHE_MODE = 0; + + // Automatically cache static content, including common image formats, + // media (video and audio), and web assets (JavaScript and CSS). + // Requests and responses that are marked as uncacheable, as well as + // dynamic content (including HTML), will not be cached. + CACHE_ALL_STATIC = 355027945; + + // Cache all content, ignoring any "private", "no-store" or "no-cache" + // directives in Cache-Control response headers. + // Warning: this may result in Cloud CDN caching private, + // per-user (user identifiable) content. + FORCE_CACHE_ALL = 486026928; + + // Requires the origin to set valid caching headers to cache content. + // Responses without these headers will not be cached at the edge, and will + // require a full trip to the origin on every request, potentially impacting + // performance and increasing load on the origin server. + USE_ORIGIN_HEADERS = 55380261; + + } + + // Bypass the cache when the specified request headers are matched by name, + // e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5 + // header names can be specified. The cache is bypassed for all + // cachePolicy.cacheMode settings. + repeated string cache_bypass_request_header_names = 197581440; + + // The CacheKeyPolicy for this CachePolicy. + optional CachePolicyCacheKeyPolicy cache_key_policy = 159263727; + + // Specifies the cache setting for all responses from this route. + // If not specified, the default value is CACHE_ALL_STATIC. + // Check the CacheMode enum for the list of possible values. + optional string cache_mode = 28877888; + + // Specifies a separate client (e.g. browser client) maximum TTL. This is + // used to clamp the max-age (or Expires) value sent to the client. With + // FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the + // response max-age directive, along with a "public" directive. For + // cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age + // from the origin (if specified), or else sets the response max-age + // directive to the lesser of the client_ttl and default_ttl, and also + // ensures a "public" cache-control directive is present. + // If a client TTL is not specified, a default value (1 hour) will be used. + // The maximum allowed value is 31,622,400s (1 year). + optional Duration client_ttl = 29034360; + + // Specifies the default TTL for cached content served by this origin for + // responses that do not have an existing valid TTL (max-age or s-maxage). + // Setting a TTL of "0" means "always revalidate". + // The value of defaultTTL cannot be set to a value greater than that of + // maxTTL. + // When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL + // will overwrite the TTL set in all responses. The maximum allowed value is + // 31,622,400s (1 year). Infrequently accessed objects may be evicted from + // the cache before the defined TTL. + optional Duration default_ttl = 100253422; + + // Specifies the maximum allowed TTL for cached content served by this + // origin. + // Cache directives that attempt to set a max-age or s-maxage higher than + // this, or an Expires header more than maxTTL seconds in the future will + // be capped at the value of maxTTL, as if it were the value of an + // s-maxage Cache-Control directive. + // Headers sent to the client will not be modified. + // Setting a TTL of "0" means "always revalidate". + // The maximum allowed value is 31,622,400s (1 year). Infrequently accessed + // objects may be evicted from the cache before the defined TTL. + optional Duration max_ttl = 307578001; + + // Negative caching allows per-status code TTLs to be set, in order + // to apply fine-grained caching for common errors or redirects. + // This can reduce the load on your origin and improve end-user + // experience by reducing response latency. + // When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, + // negative caching applies to responses with the specified response code + // that lack any Cache-Control, Expires, or Pragma: no-cache directives. + // When the cache mode is set to FORCE_CACHE_ALL, negative caching applies + // to all responses with the specified response code, and override any + // caching headers. + // By default, Cloud CDN will apply the following default TTLs to these + // status codes: + // HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m + // HTTP 404 (Not Found), 410 (Gone), + // 451 (Unavailable For Legal Reasons): 120s + // HTTP 405 (Method Not Found), 501 (Not Implemented): 60s. + // These defaults can be overridden in negative_caching_policy. + optional bool negative_caching = 336110005; + + // Sets a cache TTL for the specified HTTP status code. + // negative_caching must be enabled to configure negative_caching_policy. + // Omitting the policy and leaving negative_caching enabled will use + // Cloud CDN's default cache TTLs. + // Note that when specifying an explicit negative_caching_policy, you + // should take care to specify a cache TTL for all response codes + // that you wish to cache. Cloud CDN will not apply any default + // negative caching when a policy exists. + repeated CachePolicyNegativeCachingPolicy negative_caching_policy = 155359996; + + // If true then Cloud CDN will combine multiple concurrent cache fill + // requests into a small number of requests to the origin. + optional bool request_coalescing = 532808276; + + // Serve existing content from the cache (if available) when revalidating + // content with the origin, or when an error is encountered when refreshing + // the cache. + // This setting defines the default "max-stale" duration for any cached + // responses that do not specify a max-stale directive. Stale responses that + // exceed the TTL configured here will not be served. The default limit + // (max-stale) is 86400s (1 day), which will allow stale content to be + // served up to this limit beyond the max-age (or s-maxage) of a cached + // response. + // The maximum allowed value is 604800 (1 week). + // Set this to zero (0) to disable serve-while-stale. + optional Duration serve_while_stale = 236682203; + +} + +// Message containing what to include in the cache key for a request for Cache +// Policy defined on Route Action. +message CachePolicyCacheKeyPolicy { + // Names of query string parameters to exclude in cache keys. All other + // parameters will be included. Either specify excluded_query_parameters or + // included_query_parameters, not both. '&' and '=' will be percent encoded + // and not treated as delimiters. + // + // Note: This field applies to routes that use backend services. Attempting + // to set it on a route that points exclusively to Backend Buckets will + // result in a configuration error. For routes that point to a Backend + // Bucket, use includedQueryParameters to define which parameters should + // be a part of the cache key. + repeated string excluded_query_parameters = 124896150; + + // If true, requests to different hosts will be cached separately. + // + // Note: This setting is only applicable to routes that use a Backend + // Service. It does not affect requests served by a Backend Bucket, as the + // host is never included in a Backend Bucket's cache key. Attempting to set + // it on a route that points exclusively to Backend Buckets will result in a + // configuration error. + optional bool include_host = 486867679; + + // If true, http and https requests will be cached separately. + // + // Note: This setting is only applicable to routes that use a Backend + // Service. It does not affect requests served by a Backend Bucket, as the + // protocol is never included in a Backend Bucket's cache key. Attempting to + // set on a route that points exclusively to Backend Buckets will result in + // a configuration error. + optional bool include_protocol = 303507535; + + // If true, include query string parameters in the cache key according to + // included_query_parameters and excluded_query_parameters. If neither is + // set, the entire query string will be included. If false, the query string + // will be excluded from the cache key entirely. + // + // Note: This field applies to routes that use backend services. Attempting + // to set it on a route that points exclusively to Backend Buckets will + // result in a configuration error. For routes that point to a Backend + // Bucket, use includedQueryParameters to define which parameters should + // be a part of the cache key. + optional bool include_query_string = 474036639; + + // Allows HTTP cookies (by name) to be used in the cache key. + // The name=value pair will be used in the cache key Cloud CDN generates. + // + // Note: This setting is only applicable to routes that use a Backend + // Service. It does not affect requests served by a Backend Bucket. + // Attempting to set it on a route that points exclusively to Backend + // Buckets will result in a configuration error. Up to 5 cookie names can be + // specified. + repeated string included_cookie_names = 66987088; + + // Allows HTTP request headers (by name) to be used in the cache key. + repeated string included_header_names = 533756345; + + // Names of query string parameters to include in cache keys. All other + // parameters will be excluded. Either specify included_query_parameters or + // excluded_query_parameters, not both. '&' and '=' will be percent encoded + // and not treated as delimiters. + repeated string included_query_parameters = 2319076; + +} + +// Specify CDN TTLs for response error codes. +message CachePolicyNegativeCachingPolicy { + // The HTTP status code to define a TTL against. Only HTTP status codes + // 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be + // specified as values, and you cannot specify a status code more than + // once. + optional int32 code = 3059181; + + // The TTL (in seconds) for which to cache responses with the + // corresponding status code. + // The maximum allowed value is 1800s (30 minutes). Infrequently accessed + // objects may be evicted from the cache before the defined TTL. + optional Duration ttl = 115180; + +} + // A request to recommend the best way to consume the specified resources in the // future. message CalendarModeAdviceRequest { @@ -13689,6 +13922,8 @@ message Commitment { GENERAL_PURPOSE_N4 = 301912158; + GENERAL_PURPOSE_N4A = 232471459; + GENERAL_PURPOSE_N4D = 232471462; GENERAL_PURPOSE_T2D = 232477166; @@ -14107,6 +14342,45 @@ message ConfidentialInstanceConfig { } +// A request message for InstanceGroupManagers.ConfigureAcceleratorTopologies. See the method description for details. +message ConfigureAcceleratorTopologiesInstanceGroupManagerRequest { + // The name of the managed instance group. + // It should conform to RFC1035. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + InstanceGroupManagersConfigureAcceleratorTopologiesRequest instance_group_managers_configure_accelerator_topologies_request_resource = 365743316 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The name of thezone + // where the managed instance group is located. + // It should conform to RFC1035. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + // Message containing connection draining configuration. message ConnectionDraining { // Configures a duration timeout for existing requests on a removed backend @@ -15521,6 +15795,40 @@ message DeleteInstancesRegionInstanceGroupManagerRequest { } +// A request message for InstantSnapshotGroups.Delete. See the method description for details. +message DeleteInstantSnapshotGroupRequest { + // Name of the InstantSnapshot resource to delete. + string instant_snapshot_group = 223180386 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + // A request message for InstantSnapshots.Delete. See the method description for details. message DeleteInstantSnapshotRequest { // Name of the InstantSnapshot resource to delete. @@ -15731,6 +16039,43 @@ message DeleteMachineImageRequest { } +// A request message for Routers.DeleteNamedSet. See the method description for details. +message DeleteNamedSetRouterRequest { + // The Named Set name for this request. Name must conform to RFC1035 + optional string named_set = 164134492; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // Name of the Router resource where Named Set is defined. + string router = 148608841 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for NetworkAttachments.Delete. See the method description for details. message DeleteNetworkAttachmentRequest { // Name of the NetworkAttachment resource to delete. @@ -16622,10 +16967,10 @@ message DeleteRegionInstanceTemplateRequest { } -// A request message for RegionInstantSnapshots.Delete. See the method description for details. -message DeleteRegionInstantSnapshotRequest { - // Name of the InstantSnapshot resource to delete. - string instant_snapshot = 391638626 [(google.api.field_behavior) = REQUIRED]; +// A request message for RegionInstantSnapshotGroups.Delete. See the method description for details. +message DeleteRegionInstantSnapshotGroupRequest { + // Name of the InstantSnapshotGroup resource to delete. + string instant_snapshot_group = 223180386 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -16656,10 +17001,10 @@ message DeleteRegionInstantSnapshotRequest { } -// A request message for RegionMultiMigs.Delete. See the method description for details. -message DeleteRegionMultiMigRequest { - // Name of the multi-MIG to delete. - string multi_mig = 403990085 [(google.api.field_behavior) = REQUIRED]; +// A request message for RegionInstantSnapshots.Delete. See the method description for details. +message DeleteRegionInstantSnapshotRequest { + // Name of the InstantSnapshot resource to delete. + string instant_snapshot = 391638626 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -16667,7 +17012,41 @@ message DeleteRegionMultiMigRequest { (google.cloud.operation_request_field) = "project" ]; - // Name of the region for this request. + // The name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + +// A request message for RegionMultiMigs.Delete. See the method description for details. +message DeleteRegionMultiMigRequest { + // Name of the multi-MIG to delete. + string multi_mig = 403990085 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region for this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -17457,6 +17836,34 @@ message DeleteSignedUrlKeyBackendServiceRequest { } +// A request message for SnapshotGroups.Delete. See the method description for details. +message DeleteSnapshotGroupRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // Name of the SnapshotGroup resource to delete. + string snapshot_group = 84528196 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for Snapshots.Delete. See the method description for details. message DeleteSnapshotRequest { // Project ID for this request. @@ -18845,12 +19252,6 @@ message Disk { // types. optional string type = 3575610; - // A list of publicly visible user-licenses. Unlike regular licenses, user - // provided licenses can be modified after the disk is created. This includes - // a list of URLs to the license resource. For example, to provide a debian - // license: - // - // https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch repeated string user_licenses = 388193862; // Output only. [Output Only] Links to the users of the disk (attached instances) @@ -19075,7 +19476,7 @@ message DiskMoveRequest { // Additional disk params. message DiskParams { - // Resource manager tags to be bound to the disk. Tag keys and values + // Input only. Resource manager tags to be bound to the disk. Tag keys and values // have the same definition as resource // manager tags. Keys and values can be either in numeric format, // such as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced @@ -19526,7 +19927,7 @@ message EnableXpnResourceProjectRequest { } -// Output only. Errors that prevented the ResizeRequest to be fulfilled. +// Reason why the topology state change failed message Error { // [Output Only] The array of errors encountered while processing this // operation. @@ -19870,6 +20271,10 @@ message ExternalVpnGateway { // be a dash. optional string name = 3373707; + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. + optional ExternalVpnGatewayParams params = 78313862; + // Indicates the user-supplied redundancy type of this external VPN gateway. // Check the RedundancyType enum for the list of possible values. optional string redundancy_type = 271443740; @@ -19934,6 +20339,26 @@ message ExternalVpnGatewayList { } +// +message ExternalVpnGatewayParams { + // Tag keys/values directly bound to this resource. + // Tag keys and values have the same definition as resource + // manager tags. The field is allowed for INSERT + // only. The keys/values to set on the resource should be specified in + // either ID { : } or Namespaced format + // { : }. + // For example the following are valid inputs: + // * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} + // * {"123/environment" : "production", "345/abc" : "xyz"} + // Note: + // * Invalid combinations of ID & namespaced format is not supported. For + // instance: {"123/environment" : "tagValues/444"} is invalid. + // * Inconsistent format is not supported. For instance: + // {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + map resource_manager_tags = 377671164; + +} + // message FileContentBuffer { // The file type of source file. @@ -20246,8 +20671,12 @@ message FirewallPolicy { // A value indicating that the enum field is not set. UNDEFINED_POLICY_TYPE = 0; + RDMA_FALCON_POLICY = 66315047; + RDMA_ROCE_POLICY = 148757145; + ULL_POLICY = 100494364; + VPC_POLICY = 74319208; } @@ -20820,9 +21249,7 @@ message FixedOrPercent { } -// A flexible specification of a time range that has 3 points of -// flexibility: (1) a flexible start time, (2) a flexible end time, (3) a -// flexible duration. +// Specifies a flexible time range with flexible start time and duration. // // It is possible to specify a contradictory time range that cannot be matched // by any Interval. This causes a validation error. @@ -21087,14 +21514,6 @@ message ForwardingRule { // endpoint can be accessed from another region. optional bool allow_psc_global_access = 263471819; - // This is used in PSC consumer ForwardingRule to control whether the producer - // is allowed to inject packets into the consumer's network. If set to true, - // the target service attachment must have tunneling enabled and - // TunnelingConfig.RoutingMode set to PACKET_INJECTION - // Non-PSC forwarding rules should not use this field. - // - // This field was never released to any customers and is deprecated and - // will be removed in the future. optional bool allow_psc_packet_injection = 272272565; // Identifies the backend service to which the forwarding rule sends traffic. @@ -21593,6 +22012,10 @@ message FutureReservation { } + // Advanced control for cluster management, applicable only to DENSE + // deployment type future reservations. + optional ReservationAdvancedDeploymentControl advanced_deployment_control = 410618144; + // Aggregate reservation details for the future reservation. optional AllocationAggregateReservation aggregate_reservation = 291567948; @@ -23087,6 +23510,22 @@ message GetIamPolicyInstanceTemplateRequest { } +// A request message for InstantSnapshotGroups.GetIamPolicy. See the method description for details. +message GetIamPolicyInstantSnapshotGroupRequest { + // Requested IAM Policy version. + optional int32 options_requested_policy_version = 499220029; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for InstantSnapshots.GetIamPolicy. See the method description for details. message GetIamPolicyInstantSnapshotRequest { // Requested IAM Policy version. @@ -23264,6 +23703,22 @@ message GetIamPolicyRegionDiskRequest { } +// A request message for RegionInstantSnapshotGroups.GetIamPolicy. See the method description for details. +message GetIamPolicyRegionInstantSnapshotGroupRequest { + // Requested IAM Policy version. + optional int32 options_requested_policy_version = 499220029; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionInstantSnapshots.GetIamPolicy. See the method description for details. message GetIamPolicyRegionInstantSnapshotRequest { // Requested IAM Policy version. @@ -23398,6 +23853,19 @@ message GetIamPolicyServiceAttachmentRequest { } +// A request message for SnapshotGroups.GetIamPolicy. See the method description for details. +message GetIamPolicySnapshotGroupRequest { + // Requested IAM Policy version. + optional int32 options_requested_policy_version = 499220029; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for Snapshots.GetIamPolicy. See the method description for details. message GetIamPolicySnapshotRequest { // Requested IAM Policy version. @@ -23586,6 +24054,19 @@ message GetInstanceTemplateRequest { } +// A request message for InstantSnapshotGroups.Get. See the method description for details. +message GetInstantSnapshotGroupRequest { + // Name of the InstantSnapshotGroup resource to return. + string instant_snapshot_group = 223180386 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for InstantSnapshots.Get. See the method description for details. message GetInstantSnapshotRequest { // Name of the InstantSnapshot resource to return. @@ -23715,6 +24196,23 @@ message GetMacsecConfigInterconnectRequest { } +// A request message for Routers.GetNamedSet. See the method description for details. +message GetNamedSetRouterRequest { + // The Named Set name for this request. Name must conform to RFC1035 + optional string named_set = 164134492; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Name of the Router resource to query for the named set. The name should + // conform to RFC1035. + string router = 148608841 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for Routers.GetNatIpInfo. See the method description for details. message GetNatIpInfoRouterRequest { // Name of the nat service to filter the NAT IP information. @@ -24306,6 +24804,19 @@ message GetRegionInstanceTemplateRequest { } +// A request message for RegionInstantSnapshotGroups.Get. See the method description for details. +message GetRegionInstantSnapshotGroupRequest { + // Name of the InstantSnapshotGroup resource to return. + string instant_snapshot_group = 223180386 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionInstantSnapshots.Get. See the method description for details. message GetRegionInstantSnapshotRequest { // Name of the InstantSnapshot resource to return. @@ -24596,6 +25107,24 @@ message GetReservationRequest { } +// A request message for ReservationSlots.Get. See the method description for details. +message GetReservationSlotRequest { + // The name of the parent reservation and parent block, formatted as + // reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; + + // The project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the reservation slot, formatted as RFC1035 or a resource ID + // number. + string reservation_slot = 277470865 [(google.api.field_behavior) = REQUIRED]; + + // The name of the zone for this request, formatted as RFC1035. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for ReservationSubBlocks.Get. See the method description for details. message GetReservationSubBlockRequest { // View of the subBlock. @@ -24898,6 +25427,16 @@ message GetShieldedVmIdentityInstanceRequest { } +// A request message for SnapshotGroups.Get. See the method description for details. +message GetSnapshotGroupRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the SnapshotGroup resource to return. + string snapshot_group = 84528196 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for Snapshots.Get. See the method description for details. message GetSnapshotRequest { // Project ID for this request. @@ -27483,6 +28022,10 @@ message HttpRetryPolicy { // message HttpRouteAction { + // Cache policy for this URL Map’s route. Available only for Global + // EXTERNAL_MANAGED load balancer schemes. + optional CachePolicy cache_policy = 457366671; + // The specification for allowing client-side cross-origin requests. For more // information about the W3C recommendation for cross-origin resource sharing // (CORS), see Fetch API Living @@ -28122,12 +28665,6 @@ message Image { // multi-regional). repeated string storage_locations = 328005274; - // A list of publicly visible user-licenses. Unlike regular licenses, user - // provided licenses can be modified after the disk is created. This includes - // a list of URLs to the license resource. For example, to provide a debian - // license: - // - // https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch repeated string user_licenses = 388193862; } @@ -28168,7 +28705,7 @@ message ImageList { // Additional image params. message ImageParams { - // Resource manager tags to be bound to the image. Tag keys and values have + // Input only. Resource manager tags to be bound to the image. Tag keys and values have // the same definition as resource // manager tags. Keys and values can be either in numeric format, // such as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced @@ -28937,10 +29474,10 @@ message InsertInstanceTemplateRequest { } -// A request message for InstantSnapshots.Insert. See the method description for details. -message InsertInstantSnapshotRequest { +// A request message for InstantSnapshotGroups.Insert. See the method description for details. +message InsertInstantSnapshotGroupRequest { // The body resource for this request - InstantSnapshot instant_snapshot_resource = 383915339 [(google.api.field_behavior) = REQUIRED]; + InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -28963,6 +29500,9 @@ message InsertInstantSnapshotRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; + // begin_interface: MixerMutationRequestBuilder + optional string source_consistency_group = 531359348; + // Name of the zone for this request. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, @@ -28971,10 +29511,10 @@ message InsertInstantSnapshotRequest { } -// A request message for InterconnectAttachmentGroups.Insert. See the method description for details. -message InsertInterconnectAttachmentGroupRequest { +// A request message for InstantSnapshots.Insert. See the method description for details. +message InsertInstantSnapshotRequest { // The body resource for this request - InterconnectAttachmentGroup interconnect_attachment_group_resource = 9990137 [(google.api.field_behavior) = REQUIRED]; + InstantSnapshot instant_snapshot_resource = 383915339 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -28995,52 +29535,20 @@ message InsertInterconnectAttachmentGroupRequest { // The request ID must be // a valid UUID with the exception that zero UUID is not supported // (00000000-0000-0000-0000-000000000000). - // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; -} - -// A request message for InterconnectAttachments.Insert. See the method description for details. -message InsertInterconnectAttachmentRequest { - // The body resource for this request - InterconnectAttachment interconnect_attachment_resource = 212341369 [(google.api.field_behavior) = REQUIRED]; - - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; - - // Name of the region for this request. - string region = 138946292 [ + // Name of the zone for this request. + string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "region" + (google.cloud.operation_request_field) = "zone" ]; - // An optional request ID to identify requests. Specify a unique request ID so - // that if you must retry your request, the server will know to ignore the - // request if it has already been completed. - // - // For example, consider a situation where you make an initial request and - // the request times out. If you make the request again with the same - // request ID, the server can check if original operation with the same - // request ID was received, and if so, will ignore the second request. This - // prevents clients from accidentally creating duplicate commitments. - // - // The request ID must be - // a valid UUID with the exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). - optional string request_id = 37109963; - - // If true, the request will not be committed. - optional bool validate_only = 242744629; - } -// A request message for InterconnectGroups.Insert. See the method description for details. -message InsertInterconnectGroupRequest { +// A request message for InterconnectAttachmentGroups.Insert. See the method description for details. +message InsertInterconnectAttachmentGroupRequest { // The body resource for this request - InterconnectGroup interconnect_group_resource = 85571999 [(google.api.field_behavior) = REQUIRED]; + InterconnectAttachmentGroup interconnect_attachment_group_resource = 9990137 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -29066,10 +29574,10 @@ message InsertInterconnectGroupRequest { } -// A request message for Interconnects.Insert. See the method description for details. -message InsertInterconnectRequest { +// A request message for InterconnectAttachments.Insert. See the method description for details. +message InsertInterconnectAttachmentRequest { // The body resource for this request - Interconnect interconnect_resource = 397611167 [(google.api.field_behavior) = REQUIRED]; + InterconnectAttachment interconnect_attachment_resource = 212341369 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -29077,6 +29585,12 @@ message InsertInterconnectRequest { (google.cloud.operation_request_field) = "project" ]; + // Name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + // An optional request ID to identify requests. Specify a unique request ID so // that if you must retry your request, the server will know to ignore the // request if it has already been completed. @@ -29092,12 +29606,15 @@ message InsertInterconnectRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; + // If true, the request will not be committed. + optional bool validate_only = 242744629; + } -// A request message for Licenses.Insert. See the method description for details. -message InsertLicenseRequest { +// A request message for InterconnectGroups.Insert. See the method description for details. +message InsertInterconnectGroupRequest { // The body resource for this request - License license_resource = 437955148 [(google.api.field_behavior) = REQUIRED]; + InterconnectGroup interconnect_group_resource = 85571999 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -29118,14 +29635,71 @@ message InsertLicenseRequest { // The request ID must be // a valid UUID with the exception that zero UUID is not supported // (00000000-0000-0000-0000-000000000000). + // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; } -// A request message for MachineImages.Insert. See the method description for details. -message InsertMachineImageRequest { +// A request message for Interconnects.Insert. See the method description for details. +message InsertInterconnectRequest { // The body resource for this request - MachineImage machine_image_resource = 60740970 [(google.api.field_behavior) = REQUIRED]; + Interconnect interconnect_resource = 397611167 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + +// A request message for Licenses.Insert. See the method description for details. +message InsertLicenseRequest { + // The body resource for this request + License license_resource = 437955148 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + +// A request message for MachineImages.Insert. See the method description for details. +message InsertMachineImageRequest { + // The body resource for this request + MachineImage machine_image_resource = 60740970 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -29961,6 +30535,43 @@ message InsertRegionInstanceTemplateRequest { } +// A request message for RegionInstantSnapshotGroups.Insert. See the method description for details. +message InsertRegionInstantSnapshotGroupRequest { + // The body resource for this request + InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // begin_interface: MixerMutationRequestBuilder + optional string source_consistency_group = 531359348; + +} + // A request message for RegionInstantSnapshots.Insert. See the method description for details. message InsertRegionInstantSnapshotRequest { // The body resource for this request @@ -30654,64 +31265,8 @@ message InsertServiceAttachmentRequest { } -// A request message for Snapshots.Insert. See the method description for details. -message InsertSnapshotRequest { - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; - - // An optional request ID to identify requests. Specify a unique request ID so - // that if you must retry your request, the server will know to ignore the - // request if it has already been completed. - // - // For example, consider a situation where you make an initial request and - // the request times out. If you make the request again with the same - // request ID, the server can check if original operation with the same - // request ID was received, and if so, will ignore the second request. This - // prevents clients from accidentally creating duplicate commitments. - // - // The request ID must be - // a valid UUID with the exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). - optional string request_id = 37109963; - - // The body resource for this request - Snapshot snapshot_resource = 481319977 [(google.api.field_behavior) = REQUIRED]; - -} - -// A request message for SslCertificates.Insert. See the method description for details. -message InsertSslCertificateRequest { - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; - - // An optional request ID to identify requests. Specify a unique request ID so - // that if you must retry your request, the server will know to ignore the - // request if it has already been completed. - // - // For example, consider a situation where you make an initial request and - // the request times out. If you make the request again with the same - // request ID, the server can check if original operation with the same - // request ID was received, and if so, will ignore the second request. This - // prevents clients from accidentally creating duplicate commitments. - // - // The request ID must be - // a valid UUID with the exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). - optional string request_id = 37109963; - - // The body resource for this request - SslCertificate ssl_certificate_resource = 180709897 [(google.api.field_behavior) = REQUIRED]; - -} - -// A request message for SslPolicies.Insert. See the method description for details. -message InsertSslPolicyRequest { +// A request message for SnapshotGroups.Insert. See the method description for details. +message InsertSnapshotGroupRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -30734,80 +31289,12 @@ message InsertSslPolicyRequest { optional string request_id = 37109963; // The body resource for this request - SslPolicy ssl_policy_resource = 274891848 [(google.api.field_behavior) = REQUIRED]; + SnapshotGroup snapshot_group_resource = 265205161 [(google.api.field_behavior) = REQUIRED]; } -// A request message for StoragePools.Insert. See the method description for details. -message InsertStoragePoolRequest { - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; - - // An optional request ID to identify requests. Specify a unique request ID so - // that if you must retry your request, the server will know to ignore the - // request if it has already been completed. - // - // For example, consider a situation where you make an initial request and - // the request times out. If you make the request again with the same - // request ID, the server can check if original operation with the same - // request ID was received, and if so, will ignore the second request. This - // prevents clients from accidentally creating duplicate commitments. - // - // The request ID must be - // a valid UUID with the exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). - optional string request_id = 37109963; - - // The body resource for this request - StoragePool storage_pool_resource = 157179405 [(google.api.field_behavior) = REQUIRED]; - - // The name of the zone for this request. - string zone = 3744684 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "zone" - ]; - -} - -// A request message for Subnetworks.Insert. See the method description for details. -message InsertSubnetworkRequest { - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; - - // Name of the region scoping this request. - string region = 138946292 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "region" - ]; - - // An optional request ID to identify requests. Specify a unique request ID so - // that if you must retry your request, the server will know to ignore the - // request if it has already been completed. - // - // For example, consider a situation where you make an initial request and - // the request times out. If you make the request again with the same - // request ID, the server can check if original operation with the same - // request ID was received, and if so, will ignore the second request. This - // prevents clients from accidentally creating duplicate commitments. - // - // The request ID must be - // a valid UUID with the exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). - optional string request_id = 37109963; - - // The body resource for this request - Subnetwork subnetwork_resource = 42233151 [(google.api.field_behavior) = REQUIRED]; - -} - -// A request message for TargetGrpcProxies.Insert. See the method description for details. -message InsertTargetGrpcProxyRequest { +// A request message for Snapshots.Insert. See the method description for details. +message InsertSnapshotRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -30830,12 +31317,12 @@ message InsertTargetGrpcProxyRequest { optional string request_id = 37109963; // The body resource for this request - TargetGrpcProxy target_grpc_proxy_resource = 328922450 [(google.api.field_behavior) = REQUIRED]; + Snapshot snapshot_resource = 481319977 [(google.api.field_behavior) = REQUIRED]; } -// A request message for TargetHttpProxies.Insert. See the method description for details. -message InsertTargetHttpProxyRequest { +// A request message for SslCertificates.Insert. See the method description for details. +message InsertSslCertificateRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -30858,12 +31345,12 @@ message InsertTargetHttpProxyRequest { optional string request_id = 37109963; // The body resource for this request - TargetHttpProxy target_http_proxy_resource = 24696744 [(google.api.field_behavior) = REQUIRED]; + SslCertificate ssl_certificate_resource = 180709897 [(google.api.field_behavior) = REQUIRED]; } -// A request message for TargetHttpsProxies.Insert. See the method description for details. -message InsertTargetHttpsProxyRequest { +// A request message for SslPolicies.Insert. See the method description for details. +message InsertSslPolicyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -30886,12 +31373,12 @@ message InsertTargetHttpsProxyRequest { optional string request_id = 37109963; // The body resource for this request - TargetHttpsProxy target_https_proxy_resource = 433657473 [(google.api.field_behavior) = REQUIRED]; + SslPolicy ssl_policy_resource = 274891848 [(google.api.field_behavior) = REQUIRED]; } -// A request message for TargetInstances.Insert. See the method description for details. -message InsertTargetInstanceRequest { +// A request message for StoragePools.Insert. See the method description for details. +message InsertStoragePoolRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -30914,9 +31401,9 @@ message InsertTargetInstanceRequest { optional string request_id = 37109963; // The body resource for this request - TargetInstance target_instance_resource = 430453066 [(google.api.field_behavior) = REQUIRED]; + StoragePool storage_pool_resource = 157179405 [(google.api.field_behavior) = REQUIRED]; - // Name of the zone scoping this request. + // The name of the zone for this request. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -30924,8 +31411,8 @@ message InsertTargetInstanceRequest { } -// A request message for TargetPools.Insert. See the method description for details. -message InsertTargetPoolRequest { +// A request message for Subnetworks.Insert. See the method description for details. +message InsertSubnetworkRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -30954,12 +31441,12 @@ message InsertTargetPoolRequest { optional string request_id = 37109963; // The body resource for this request - TargetPool target_pool_resource = 101281443 [(google.api.field_behavior) = REQUIRED]; + Subnetwork subnetwork_resource = 42233151 [(google.api.field_behavior) = REQUIRED]; } -// A request message for TargetSslProxies.Insert. See the method description for details. -message InsertTargetSslProxyRequest { +// A request message for TargetGrpcProxies.Insert. See the method description for details. +message InsertTargetGrpcProxyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -30982,12 +31469,164 @@ message InsertTargetSslProxyRequest { optional string request_id = 37109963; // The body resource for this request - TargetSslProxy target_ssl_proxy_resource = 142016192 [(google.api.field_behavior) = REQUIRED]; + TargetGrpcProxy target_grpc_proxy_resource = 328922450 [(google.api.field_behavior) = REQUIRED]; } -// A request message for TargetTcpProxies.Insert. See the method description for details. -message InsertTargetTcpProxyRequest { +// A request message for TargetHttpProxies.Insert. See the method description for details. +message InsertTargetHttpProxyRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The body resource for this request + TargetHttpProxy target_http_proxy_resource = 24696744 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for TargetHttpsProxies.Insert. See the method description for details. +message InsertTargetHttpsProxyRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The body resource for this request + TargetHttpsProxy target_https_proxy_resource = 433657473 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for TargetInstances.Insert. See the method description for details. +message InsertTargetInstanceRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The body resource for this request + TargetInstance target_instance_resource = 430453066 [(google.api.field_behavior) = REQUIRED]; + + // Name of the zone scoping this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + +// A request message for TargetPools.Insert. See the method description for details. +message InsertTargetPoolRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The body resource for this request + TargetPool target_pool_resource = 101281443 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for TargetSslProxies.Insert. See the method description for details. +message InsertTargetSslProxyRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The body resource for this request + TargetSslProxy target_ssl_proxy_resource = 142016192 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for TargetTcpProxies.Insert. See the method description for details. +message InsertTargetTcpProxyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -31565,6 +32204,8 @@ message Instance { // Multiple tags can be specified via the 'tags.items' field. optional Tags tags = 3552281; + optional WorkloadIdentityConfig workload_identity_config = 338198811; + // Output only. [Output Only] URL of the zone where the instance resides. // You must specify this field as part of the HTTP request URL. It is // not settable as a field in the request body. @@ -32384,7 +33025,7 @@ message InstanceGroupManagerList { // Input only additional params for instance group manager creation. message InstanceGroupManagerParams { - // Resource manager tags to bind to the managed instance group. The tags are + // Input only. Resource manager tags to bind to the managed instance group. The tags are // key-value pairs. Keys and values can be either in numeric format, // such as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced // format such as `{org_id|project_id}/{tag_key_short_name}` and @@ -32611,6 +33252,11 @@ message InstanceGroupManagerStatus { // Output only. [Output Only] The status of bulk instance operation. optional InstanceGroupManagerStatusBulkInstanceOperation bulk_instance_operation = 501667466; + // Output only. [Output Only] The list of instance statuses and the number of instances + // in this managed instance group that have the status. Currently only shown + // for TPU MIGs + optional InstanceGroupManagerStatusInstanceStatusSummary current_instance_statuses = 269432644; + // Output only. [Output Only] A bit indicating whether the managed instance group is in a // stable state. A stable state means that: none of the instances in the // managed instance group is currently undergoing any type of change (for @@ -32664,6 +33310,71 @@ message InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck { } +// The list of instance statuses and the number of instances in this managed +// instance group that have the status. For more information about how to +// interpret each status check the instance lifecycle documentation. +// Currently only shown for TPU MIGs. +message InstanceGroupManagerStatusInstanceStatusSummary { + // Output only. [Output Only] The number of instances in the managed instance group + // that have DEPROVISIONING status. + optional int32 deprovisioning = 462169582; + + // Output only. [Output Only] The number of instances that have not been created yet or + // have been deleted. Includes only instances that would be shown in the + // listManagedInstances method and not all instances that have been + // deleted in the lifetime of the MIG. + // Does not include FlexStart instances that are waiting for the resources + // availability, they are considered as 'pending'. + optional int32 non_existent = 468485062; + + // Output only. [Output Only] The number of instances in the managed instance group + // that have PENDING status, that is FlexStart instances that are waiting + // for resources. Instances that do not exist because of the other reasons + // are counted as 'non_existent'. + optional int32 pending = 391154071; + + // Output only. [Output Only] The number of instances in the managed instance group + // that have PENDING_STOP status. + optional int32 pending_stop = 163159466; + + // Output only. [Output Only] The number of instances in the managed instance group + // that have PROVISIONING status. + optional int32 provisioning = 121098989; + + // Output only. [Output Only] The number of instances in the managed instance group + // that have REPAIRING status. + optional int32 repairing = 311243061; + + // Output only. [Output Only] The number of instances in the managed instance group + // that have RUNNING status. + optional int32 running = 477042111; + + // Output only. [Output Only] The number of instances in the managed instance group + // that have STAGING status. + optional int32 staging = 249960507; + + // Output only. [Output Only] The number of instances in the managed instance group + // that have STOPPED status. + optional int32 stopped = 263164365; + + // Output only. [Output Only] The number of instances in the managed instance group + // that have STOPPING status. + optional int32 stopping = 105035892; + + // Output only. [Output Only] The number of instances in the managed instance group + // that have SUSPENDED status. + optional int32 suspended = 485854683; + + // Output only. [Output Only] The number of instances in the managed instance group + // that have SUSPENDING status. + optional int32 suspending = 29113894; + + // Output only. [Output Only] The number of instances in the managed instance group + // that have TERMINATED status. + optional int32 terminated = 301796899; + +} + // message InstanceGroupManagerStatusStateful { // Output only. [Output Only] A bit indicating whether the managed instance group @@ -33062,6 +33773,15 @@ message InstanceGroupManagersApplyUpdatesRequest { } +// InstanceGroupManagers.ConfigureAcceleratorTopologies +message InstanceGroupManagersConfigureAcceleratorTopologiesRequest { + // Map of accelerator topologies that should have their state changed to + // the specified value. The key is the hashed topology locus id. It can be + // obtained from the GetAvailableAcceleratorTopologies rpc. + map accelerator_topology_actions = 16520833; + +} + // InstanceGroupManagers.createInstances message InstanceGroupManagersCreateInstancesRequest { // [Required] List of specifications of per-instance configs. @@ -33102,6 +33822,9 @@ message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse { // location. map accelerator_topologies_info = 84833420; + // URL to MMIG this MIG belongs to. + optional string multi_mig = 403990085; + } // @@ -33129,6 +33852,22 @@ message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAccelerato // working inter-chip connected group. UNHEALTHY = 462118084; + // No signal available + UNKNOWN = 433141802; + + } + + // + enum InstancesHealth { + // A value indicating that the enum field is not set. + UNDEFINED_INSTANCES_HEALTH = 0; + + // Infrastructure is healthy + ALL_HEALTHY = 519465151; + + // Some VMs are in another state than RUNNING or they are missing. + UNHEALTHY_OR_MISSING = 59982149; + } // Topology in the format of: "16x16", "4x4x4", etc. @@ -33138,6 +33877,54 @@ message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAccelerato // Check the AcceleratorTopologyHealth enum for the list of possible values. optional string accelerator_topology_health = 323449944; + optional InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState accelerator_topology_state = 228860693; + + // + // Check the InstancesHealth enum for the list of possible values. + optional string instances_health = 165893949; + + // Identified by the topology Id in the accelerator_topology_info map. Empty + // for the top-level topology + optional string parent = 78317738; + +} + +// Specifies the topology state +message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState { + // + enum CurrentState { + // A value indicating that the enum field is not set. + UNDEFINED_CURRENT_STATE = 0; + + ACTIVATING = 378825968; + + ACTIVE = 314733318; + + // The topology is active but with potential performance degradation. + ACTIVE_DEGRADED = 471128135; + + DEACTIVATING = 57182257; + + // Critical non-retriable error that the user has to act manually + FAILED = 455706685; + + INACTIVE = 270421099; + + // Not all VMs have been provisioned + INCOMPLETE = 11941214; + + } + + // + // Check the CurrentState enum for the list of possible values. + optional string current_state = 438511179; + + // Reason why the topology state change failed + optional Error error = 96784904; + + // Timestamp when the last error happened + optional string error_timestamp = 219548575; + } // @@ -33610,7 +34397,7 @@ message InstanceParams { // Instances.Insert API. optional Duration request_valid_for_duration = 116247389; - // Resource manager tags to be bound to the instance. Tag keys and values + // Input only. Resource manager tags to be bound to the instance. Tag keys and values // have the same definition as resource // manager tags. Keys and values can be either in numeric format, // such as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced @@ -33768,7 +34555,7 @@ message InstanceProperties { // Note that for MachineImage, this is not supported yet. optional ReservationAffinity reservation_affinity = 157850683; - // Resource manager tags to be bound to the instance. Tag keys and values + // Input only. Resource manager tags to be bound to the instance. Tag keys and values // have the same definition as resource // manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and // values are in the format `tagValues/456`. The field is ignored (both PUT & @@ -33803,6 +34590,8 @@ message InstanceProperties { // the list must comply with RFC1035. optional Tags tags = 3552281; + optional WorkloadIdentityConfig workload_identity_config = 338198811; + } // Represents the change that you want to make to the instance properties. @@ -34192,6 +34981,9 @@ message InstancesReportHostAsFaultyRequestFaultReason { // Public reportable behaviors BEHAVIOR_UNSPECIFIED = 85734570; + // Any GPU or TPU errors or faults where the accelerator becomes unusable + CHIP_ERROR = 263151669; + PERFORMANCE = 135701520; SILENT_DATA_CORRUPTION = 111360678; @@ -34416,6 +35208,10 @@ message InstantSnapshot { // be a dash. optional string name = 3373707; + // Input only. Additional params passed with the request, but not persisted + // as part of resource payload. + optional InstantSnapshotParams params = 78313862; + // Output only. [Output Only] URL of the region where the instant snapshot resides. // You must specify this field as part of the HTTP request URL. It is // not settable as a field in the request body. @@ -34466,6 +35262,17 @@ message InstantSnapshot { // was taken from the current or a previous instance of a given disk name. optional string source_disk_id = 454190809; + // Output only. [Output Only] URL of the source instant snapshot this instant snapshot is + // part of. Note that the source instant snapshot group must be in the same + // zone/region as the instant snapshot to be created. This can be a full or + // valid partial URL. + optional string source_instant_snapshot_group = 525991686; + + // Output only. [Output Only] The ID value of the source instant snapshot group this + // InstantSnapshot is part of. This value may be used to determine whether the + // InstantSnapshot was created as part of an InstantSnapshotGroup creation. + optional string source_instant_snapshot_group_id = 167103732; + // Output only. [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, FAILED, orREADY. // Check the Status enum for the list of possible values. optional string status = 181260274; @@ -34507,6 +35314,113 @@ message InstantSnapshotAggregatedList { } +// Represents an InstantSnapshotGroup resource. +// +// An instant snapshot group is a set of instant snapshots that represents a +// point in time state of a consistency group. +message InstantSnapshotGroup { + // Output only. [Output Only] + enum Status { + // A value indicating that the enum field is not set. + UNDEFINED_STATUS = 0; + + CREATING = 455564985; + + DELETING = 528602024; + + FAILED = 455706685; + + INVALID = 530283991; + + READY = 77848963; + + UNKNOWN = 433141802; + + } + + // Output only. [Output Only] Creation timestamp inRFC3339 + // text format. + optional string creation_timestamp = 30525366; + + // Optional. An optional description of this resource. Provide this property when you + // create the resource. + optional string description = 422937596; + + // Output only. [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. + optional uint64 id = 3355; + + // Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup + // resources. + optional string kind = 3292052; + + // Identifier. Name of the resource; provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must be + // a dash, lowercase letter, or digit, except the last character, which cannot + // be a dash. + optional string name = 3373707; + + // Output only. [Output Only] URL of the region where the instant snapshot group resides. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. + optional string region = 138946292; + + optional InstantSnapshotGroupResourceStatus resource_status = 249429315; + + // Output only. [Output Only] Server-defined URL for the resource. + optional string self_link = 456214797; + + // Output only. [Output Only] Server-defined URL for this resource's resource id. + optional string self_link_with_id = 44520962; + + optional string source_consistency_group = 531359348; + + // Output only. [Output Only] + // Check the Status enum for the list of possible values. + optional string status = 181260274; + + // Output only. [Output Only] URL of the zone where the instant snapshot group resides. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. + optional string zone = 3744684; + +} + +// +message InstantSnapshotGroupParameters { + // The source instant snapshot group used to create disks. You can provide + // this as a partial or full URL to the resource. For example, the following + // are valid values: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup + // - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup + // - zones/zone/instantSnapshotGroups/instantSnapshotGroup + optional string source_instant_snapshot_group = 525991686; + +} + +// +message InstantSnapshotGroupResourceStatus { + // Output only. [Output Only] + optional string consistency_membership_resolution_time = 346675870; + + // Output only. [Output Only] + optional InstantSnapshotGroupSourceInfo source_info = 451907154; + +} + +// +message InstantSnapshotGroupSourceInfo { + optional string consistency_group = 508183960; + + optional string consistency_group_id = 85599522; + +} + // Contains a list of InstantSnapshot resources. message InstantSnapshotList { // [Output Only] Unique identifier for the resource; defined by the server. @@ -34533,6 +35447,19 @@ message InstantSnapshotList { } +// Additional instant snapshot params. +message InstantSnapshotParams { + // Input only. Resource manager tags to be bound to the instant snapshot. Tag keys and + // values have the same definition as resource + // manager tags. Keys and values can be either in numeric format, + // such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in + // namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and + // `{tag_value_short_name}`. The field is ignored (both PUT & + // PATCH) when empty. + map resource_manager_tags = 377671164; + +} + // message InstantSnapshotResourceStatus { // [Output Only] The storage size of this instant snapshot. @@ -34688,8 +35615,7 @@ message Interconnect { } - // Specific subzone in the InterconnectLocation that represents where - // this connection is to be provisioned. + // To be deprecated. enum Subzone { // A value indicating that the enum field is not set. UNDEFINED_SUBZONE = 0; @@ -34907,8 +35833,7 @@ message Interconnect { // Check the State enum for the list of possible values. optional string state = 109757585; - // Specific subzone in the InterconnectLocation that represents where - // this connection is to be provisioned. + // To be deprecated. // Check the Subzone enum for the list of possible values. optional string subzone = 280084972; @@ -41869,6 +42794,141 @@ message ListInstancesRequest { } +// Contains a list of InstantSnapshotGroup resources. +message ListInstantSnapshotGroups { + optional string etag = 3123477; + + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of InstantSnapshotGroup resources. + repeated InstantSnapshotGroup items = 100526016; + + // Output only. Type of resource. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + optional string next_page_token = 79797525; + + // Output only. [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // Output only. [Output Only] Unreachable resources. + // end_interface: MixerListResponseWithEtagBuilder + repeated string unreachables = 243372063; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + +// A request message for InstantSnapshotGroups.List. See the method description for details. +message ListInstantSnapshotGroupsRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for InstantSnapshots.List. See the method description for details. message ListInstantSnapshotsRequest { // A filter expression that filters resources listed in the response. Most @@ -43091,6 +44151,113 @@ message ListManagedInstancesRegionInstanceGroupManagersRequest { } +// A request message for Routers.ListNamedSets. See the method description for details. +message ListNamedSetsRoutersRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + + // Name or id of the resource for this request. + // Name should conform to RFC1035. + string router = 148608841 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for NetworkAttachments.List. See the method description for details. message ListNetworkAttachmentsRequest { // A filter expression that filters resources listed in the response. Most @@ -47059,8 +48226,8 @@ message ListRegionInstanceTemplatesRequest { } -// A request message for RegionInstantSnapshots.List. See the method description for details. -message ListRegionInstantSnapshotsRequest { +// A request message for RegionInstantSnapshotGroups.List. See the method description for details. +message ListRegionInstantSnapshotGroupsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -47162,8 +48329,8 @@ message ListRegionInstantSnapshotsRequest { } -// A request message for RegionMultiMigMembers.List. See the method description for details. -message ListRegionMultiMigMembersRequest { +// A request message for RegionInstantSnapshots.List. See the method description for details. +message ListRegionInstantSnapshotsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -47231,10 +48398,6 @@ message ListRegionMultiMigMembersRequest { // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // The name of the multi-MIG. - // Name should conform to RFC1035 or be a resource ID. - string multi_mig = 403990085 [(google.api.field_behavior) = REQUIRED]; - // Sorts list results by a certain order. By default, results // are returned in alphanumerical order based on the resource name. // @@ -47256,7 +48419,7 @@ message ListRegionMultiMigMembersRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. Region name should conform to RFC1035. + // The name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -47269,8 +48432,115 @@ message ListRegionMultiMigMembersRequest { } -// A request message for RegionMultiMigs.List. See the method description for details. -message ListRegionMultiMigsRequest { +// A request message for RegionMultiMigMembers.List. See the method description for details. +message ListRegionMultiMigMembersRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // The name of the multi-MIG. + // Name should conform to RFC1035 or be a resource ID. + string multi_mig = 403990085 [(google.api.field_behavior) = REQUIRED]; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region for this request. Region name should conform to RFC1035. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + +} + +// A request message for RegionMultiMigs.List. See the method description for details. +message ListRegionMultiMigsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -49022,8 +50292,8 @@ message ListReservationBlocksRequest { } -// A request message for ReservationSubBlocks.List. See the method description for details. -message ListReservationSubBlocksRequest { +// A request message for ReservationSlots.List. See the method description for details. +message ListReservationSlotsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -49109,11 +50379,11 @@ message ListReservationSubBlocksRequest { // the next page of results. optional string page_token = 19994697; - // The name of the parent reservation and parent block. In the format of - // reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + // The name of the parent reservation and parent block, formatted as + // reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; - // Project ID for this request. + // The project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -49124,13 +50394,13 @@ message ListReservationSubBlocksRequest { // with an error code. optional bool return_partial_success = 517198390; - // Name of the zone for this request. Zone name should conform to RFC1035. + // The name of the zone for this request, formatted as RFC1035. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } -// A request message for Reservations.List. See the method description for details. -message ListReservationsRequest { +// A request message for ReservationSubBlocks.List. See the method description for details. +message ListReservationSubBlocksRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -49216,6 +50486,10 @@ message ListReservationsRequest { // the next page of results. optional string page_token = 19994697; + // The name of the parent reservation and parent block. In the format of + // reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; + // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; @@ -49227,13 +50501,13 @@ message ListReservationsRequest { // with an error code. optional bool return_partial_success = 517198390; - // Name of the zone for this request. + // Name of the zone for this request. Zone name should conform to RFC1035. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } -// A request message for ResourcePolicies.List. See the method description for details. -message ListResourcePoliciesRequest { +// A request message for Reservations.List. See the method description for details. +message ListReservationsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -49322,9 +50596,6 @@ message ListResourcePoliciesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -49333,10 +50604,13 @@ message ListResourcePoliciesRequest { // with an error code. optional bool return_partial_success = 517198390; + // Name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for RolloutPlans.List. See the method description for details. -message ListRolloutPlansRequest { +// A request message for ResourcePolicies.List. See the method description for details. +message ListResourcePoliciesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -49425,6 +50699,9 @@ message ListRolloutPlansRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -49435,8 +50712,8 @@ message ListRolloutPlansRequest { } -// A request message for Rollouts.List. See the method description for details. -message ListRolloutsRequest { +// A request message for RolloutPlans.List. See the method description for details. +message ListRolloutPlansRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -49535,8 +50812,8 @@ message ListRolloutsRequest { } -// A request message for Routers.ListRoutePolicies. See the method description for details. -message ListRoutePoliciesRoutersRequest { +// A request message for Rollouts.List. See the method description for details. +message ListRolloutsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -49625,9 +50902,6 @@ message ListRoutePoliciesRoutersRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -49636,14 +50910,10 @@ message ListRoutePoliciesRoutersRequest { // with an error code. optional bool return_partial_success = 517198390; - // Name or id of the resource for this request. - // Name should conform to RFC1035. - string router = 148608841 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for Routers.List. See the method description for details. -message ListRoutersRequest { +// A request message for Routers.ListRoutePolicies. See the method description for details. +message ListRoutePoliciesRoutersRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -49743,10 +51013,14 @@ message ListRoutersRequest { // with an error code. optional bool return_partial_success = 517198390; + // Name or id of the resource for this request. + // Name should conform to RFC1035. + string router = 148608841 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for Routes.List. See the method description for details. -message ListRoutesRequest { +// A request message for Routers.List. See the method description for details. +message ListRoutersRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -49835,6 +51109,9 @@ message ListRoutesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -49845,8 +51122,8 @@ message ListRoutesRequest { } -// A request message for SecurityPolicies.List. See the method description for details. -message ListSecurityPoliciesRequest { +// A request message for Routes.List. See the method description for details. +message ListRoutesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -49945,8 +51222,8 @@ message ListSecurityPoliciesRequest { } -// A request message for ServiceAttachments.List. See the method description for details. -message ListServiceAttachmentsRequest { +// A request message for SecurityPolicies.List. See the method description for details. +message ListSecurityPoliciesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -50035,9 +51312,6 @@ message ListServiceAttachmentsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region of this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -50048,8 +51322,8 @@ message ListServiceAttachmentsRequest { } -// A request message for Snapshots.List. See the method description for details. -message ListSnapshotsRequest { +// A request message for ServiceAttachments.List. See the method description for details. +message ListServiceAttachmentsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -50138,6 +51412,9 @@ message ListSnapshotsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region of this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -50148,8 +51425,40 @@ message ListSnapshotsRequest { } -// A request message for SslCertificates.List. See the method description for details. -message ListSslCertificatesRequest { +// Contains a list of SnapshotGroup resources. +message ListSnapshotGroups { + optional string etag = 3123477; + + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of SnapshotGroup resources. + repeated SnapshotGroup items = 100526016; + + // Output only. Type of resource. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + optional string next_page_token = 79797525; + + // Output only. [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // Output only. [Output Only] Unreachable resources. + // end_interface: MixerListResponseWithEtagBuilder + repeated string unreachables = 243372063; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + +// A request message for SnapshotGroups.List. See the method description for details. +message ListSnapshotGroupsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -50248,8 +51557,8 @@ message ListSslCertificatesRequest { } -// A request message for SslPolicies.List. See the method description for details. -message ListSslPoliciesRequest { +// A request message for Snapshots.List. See the method description for details. +message ListSnapshotsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -50348,8 +51657,8 @@ message ListSslPoliciesRequest { } -// A request message for StoragePoolTypes.List. See the method description for details. -message ListStoragePoolTypesRequest { +// A request message for SslCertificates.List. See the method description for details. +message ListSslCertificatesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -50446,13 +51755,10 @@ message ListStoragePoolTypesRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone for this request. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for StoragePools.List. See the method description for details. -message ListStoragePoolsRequest { +// A request message for SslPolicies.List. See the method description for details. +message ListSslPoliciesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -50549,29 +51855,10 @@ message ListStoragePoolsRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone for this request. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for Subnetworks.List. See the method description for details. -message ListSubnetworksRequest { - // Defines the extra views returned back in the subnetwork resource. - // Supported values: - // - // - WITH_UTILIZATION: Utilization data is included in the - // response. - enum Views { - // A value indicating that the enum field is not set. - UNDEFINED_VIEWS = 0; - - DEFAULT = 115302945; - - // Utilization data is included in the response. - WITH_UTILIZATION = 504090633; - - } - +// A request message for StoragePoolTypes.List. See the method description for details. +message ListStoragePoolTypesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -50660,8 +51947,108 @@ message ListSubnetworksRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for StoragePools.List. See the method description for details. +message ListStoragePoolsRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. @@ -50671,18 +52058,29 @@ message ListSubnetworksRequest { // with an error code. optional bool return_partial_success = 517198390; + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for Subnetworks.List. See the method description for details. +message ListSubnetworksRequest { // Defines the extra views returned back in the subnetwork resource. // Supported values: // // - WITH_UTILIZATION: Utilization data is included in the // response. - // Check the Views enum for the list of possible values. - optional string views = 112204398; + enum Views { + // A value indicating that the enum field is not set. + UNDEFINED_VIEWS = 0; -} + DEFAULT = 115302945; + + // Utilization data is included in the response. + WITH_UTILIZATION = 504090633; + + } -// A request message for TargetGrpcProxies.List. See the method description for details. -message ListTargetGrpcProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -50771,6 +52169,9 @@ message ListTargetGrpcProxiesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region scoping this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -50779,10 +52180,18 @@ message ListTargetGrpcProxiesRequest { // with an error code. optional bool return_partial_success = 517198390; + // Defines the extra views returned back in the subnetwork resource. + // Supported values: + // + // - WITH_UTILIZATION: Utilization data is included in the + // response. + // Check the Views enum for the list of possible values. + optional string views = 112204398; + } -// A request message for TargetHttpProxies.List. See the method description for details. -message ListTargetHttpProxiesRequest { +// A request message for TargetGrpcProxies.List. See the method description for details. +message ListTargetGrpcProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -50881,8 +52290,8 @@ message ListTargetHttpProxiesRequest { } -// A request message for TargetHttpsProxies.List. See the method description for details. -message ListTargetHttpsProxiesRequest { +// A request message for TargetHttpProxies.List. See the method description for details. +message ListTargetHttpProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -50981,8 +52390,8 @@ message ListTargetHttpsProxiesRequest { } -// A request message for TargetInstances.List. See the method description for details. -message ListTargetInstancesRequest { +// A request message for TargetHttpsProxies.List. See the method description for details. +message ListTargetHttpsProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -51079,13 +52488,10 @@ message ListTargetInstancesRequest { // with an error code. optional bool return_partial_success = 517198390; - // Name of the zone scoping this request. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for TargetPools.List. See the method description for details. -message ListTargetPoolsRequest { +// A request message for TargetInstances.List. See the method description for details. +message ListTargetInstancesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -51174,9 +52580,6 @@ message ListTargetPoolsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -51185,10 +52588,13 @@ message ListTargetPoolsRequest { // with an error code. optional bool return_partial_success = 517198390; + // Name of the zone scoping this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for TargetSslProxies.List. See the method description for details. -message ListTargetSslProxiesRequest { +// A request message for TargetPools.List. See the method description for details. +message ListTargetPoolsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -51277,6 +52683,9 @@ message ListTargetSslProxiesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region scoping this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -51287,8 +52696,8 @@ message ListTargetSslProxiesRequest { } -// A request message for TargetTcpProxies.List. See the method description for details. -message ListTargetTcpProxiesRequest { +// A request message for TargetSslProxies.List. See the method description for details. +message ListTargetSslProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -51387,8 +52796,8 @@ message ListTargetTcpProxiesRequest { } -// A request message for TargetVpnGateways.List. See the method description for details. -message ListTargetVpnGatewaysRequest { +// A request message for TargetTcpProxies.List. See the method description for details. +message ListTargetTcpProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -51477,9 +52886,6 @@ message ListTargetVpnGatewaysRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -51490,8 +52896,8 @@ message ListTargetVpnGatewaysRequest { } -// A request message for UrlMaps.List. See the method description for details. -message ListUrlMapsRequest { +// A request message for TargetVpnGateways.List. See the method description for details. +message ListTargetVpnGatewaysRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -51580,6 +52986,9 @@ message ListUrlMapsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -51590,8 +52999,8 @@ message ListUrlMapsRequest { } -// A request message for BackendBuckets.ListUsable. See the method description for details. -message ListUsableBackendBucketsRequest { +// A request message for UrlMaps.List. See the method description for details. +message ListUrlMapsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -51690,8 +53099,8 @@ message ListUsableBackendBucketsRequest { } -// A request message for BackendServices.ListUsable. See the method description for details. -message ListUsableBackendServicesRequest { +// A request message for BackendBuckets.ListUsable. See the method description for details. +message ListUsableBackendBucketsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -51790,8 +53199,8 @@ message ListUsableBackendServicesRequest { } -// A request message for RegionBackendBuckets.ListUsable. See the method description for details. -message ListUsableRegionBackendBucketsRequest { +// A request message for BackendServices.ListUsable. See the method description for details. +message ListUsableBackendServicesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -51880,10 +53289,6 @@ message ListUsableRegionBackendBucketsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. - // It must be a string that meets the requirements in RFC1035. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -51894,8 +53299,8 @@ message ListUsableRegionBackendBucketsRequest { } -// A request message for RegionBackendServices.ListUsable. See the method description for details. -message ListUsableRegionBackendServicesRequest { +// A request message for RegionBackendBuckets.ListUsable. See the method description for details. +message ListUsableRegionBackendBucketsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -51998,8 +53403,8 @@ message ListUsableRegionBackendServicesRequest { } -// A request message for Subnetworks.ListUsable. See the method description for details. -message ListUsableSubnetworksRequest { +// A request message for RegionBackendServices.ListUsable. See the method description for details. +message ListUsableRegionBackendServicesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -52088,6 +53493,10 @@ message ListUsableSubnetworksRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region scoping this request. + // It must be a string that meets the requirements in RFC1035. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -52096,15 +53505,10 @@ message ListUsableSubnetworksRequest { // with an error code. optional bool return_partial_success = 517198390; - // The project id or project number in which the subnetwork is intended to be - // used. Only applied for Shared VPC. See [Shared VPC - // documentation](https://cloud.google.com/vpc/docs/shared-vpc/) - optional string service_project = 530592655; - } -// A request message for VpnGateways.List. See the method description for details. -message ListVpnGatewaysRequest { +// A request message for Subnetworks.ListUsable. See the method description for details. +message ListUsableSubnetworksRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -52193,9 +53597,6 @@ message ListVpnGatewaysRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -52204,10 +53605,15 @@ message ListVpnGatewaysRequest { // with an error code. optional bool return_partial_success = 517198390; + // The project id or project number in which the subnetwork is intended to be + // used. Only applied for Shared VPC. See [Shared VPC + // documentation](https://cloud.google.com/vpc/docs/shared-vpc/) + optional string service_project = 530592655; + } -// A request message for VpnTunnels.List. See the method description for details. -message ListVpnTunnelsRequest { +// A request message for VpnGateways.List. See the method description for details. +message ListVpnGatewaysRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -52309,10 +53715,8 @@ message ListVpnTunnelsRequest { } -// A request message for WireGroups.List. See the method description for details. -message ListWireGroupsRequest { - string cross_site_network = 108192469 [(google.api.field_behavior) = REQUIRED]; - +// A request message for VpnTunnels.List. See the method description for details. +message ListVpnTunnelsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -52401,6 +53805,9 @@ message ListWireGroupsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -52411,8 +53818,10 @@ message ListWireGroupsRequest { } -// A request message for Projects.ListXpnHosts. See the method description for details. -message ListXpnHostsProjectsRequest { +// A request message for WireGroups.List. See the method description for details. +message ListWireGroupsRequest { + string cross_site_network = 108192469 [(google.api.field_behavior) = REQUIRED]; + // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -52501,9 +53910,6 @@ message ListXpnHostsProjectsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The body resource for this request - ProjectsListXpnHostsRequest projects_list_xpn_hosts_request_resource = 238266391 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -52514,8 +53920,111 @@ message ListXpnHostsProjectsRequest { } -// A request message for ZoneOperations.List. See the method description for details. -message ListZoneOperationsRequest { +// A request message for Projects.ListXpnHosts. See the method description for details. +message ListXpnHostsProjectsRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + ProjectsListXpnHostsRequest projects_list_xpn_hosts_request_resource = 238266391 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + +} + +// A request message for ZoneOperations.List. See the method description for details. +message ListZoneOperationsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -52880,12 +54389,24 @@ message LocationPolicy { // Location configurations mapped by location name. // Currently only zone names are supported and must be represented as valid // internal URLs, such as zones/us-central1-a. + // The bulkInsert operation doesn't create instances in an AI zone, even if + // an AI zone is available in the specified region. For example, if you set a + // DENY preference for us-central1-a, Compute Engine will consider + // us-central1-b and us-central1-c for instance creation, but not + // us-central1-ai1a. Also, you can't use the locations[] configuration to + // allow instance creation in an AI zone. To include an AI zone in bulkInsert + // operations, use the locationPolicy.zones[] field. map locations = 413423454; // Strategy for distributing VMs across zones in a region. // Check the TargetShape enum for the list of possible values. optional string target_shape = 338621299; + // The bulkInsert operation applies any preferences set in the locations + // field to the specific zones listed in the zones field if the same zones + // are specified in both fields. + repeated LocationPolicyZoneConfiguration zones = 116085319; + } // @@ -52924,6 +54445,16 @@ message LocationPolicyLocationConstraints { } +// +message LocationPolicyZoneConfiguration { + // The URL of the zone. + // The zone must exist in the region where the request is called. + // Zones must be represented as valid partial URLs, + // such as zones/us-central1-a. + optional string zone = 3744684; + +} + // Represents a machine image resource. // // A machine image is a Compute Engine resource that stores all the @@ -53008,6 +54539,10 @@ message MachineImage { // be a dash. optional string name = 3373707; + // Input only. [Input Only] Additional parameters that are passed in the request, but are + // not persisted in the resource. + optional MachineImageParams params = 78313862; + // Output only. Reserved for future use. optional bool satisfies_pzi = 480964257; @@ -53079,6 +54614,19 @@ message MachineImageList { } +// Machine Image parameters +message MachineImageParams { + // Input only. Resource manager tags to be bound to the machine image. Tag keys and values + // have the same definition as resource + // manager tags. Keys and values can be either in numeric format, + // such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in + // namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and + // `{tag_value_short_name}`. The field is ignored (both PUT & + // PATCH) when empty. + map resource_manager_tags = 377671164; + +} + // Represents a Machine Type resource. // // You can use specific machine types for your VM instances based on performance @@ -54096,6 +55644,49 @@ message NamedPort { } +// +message NamedSet { + // This named set's type + enum Type { + // A value indicating that the enum field is not set. + UNDEFINED_TYPE = 0; + + // The Named Set is a Community Named Set. + NAMED_SET_TYPE_COMMUNITY = 263444871; + + // The Named Set is a Prefix Named Set. + NAMED_SET_TYPE_PREFIX = 228038036; + + } + + // An optional description of named set. + optional string description = 422937596; + + // CEL expressions that are comparable to constructs of this set's type + // (see Policy Language). + repeated Expr elements = 528531703; + + // A fingerprint for the Named Set being applied to this Router, which is + // essentially a hash of the Named Set used for optimistic locking. + // The fingerprint is initially generated by Compute Engine and changes + // after every request to modify or update the Named Set. You must always + // provide an up-to-date fingerprint hash in order to update or change + // labels. + // + // To see the latest fingerprint, make a getNamedSet() request + // to retrieve a Named Set. + optional string fingerprint = 234678500; + + // This set's name, which must be a resource ID segment and unique within all + // named sets owned by the Router. Name should conform to RFC1035. + optional string name = 3373707; + + // This named set's type + // Check the Type enum for the list of possible values. + optional string type = 3575610; + +} + // Contains NAT IP information of a NAT config (i.e. usage status, mode). message NatIpInfo { // Output only. A list of all NAT IPs assigned to this NAT config. @@ -54635,6 +56226,20 @@ message NetworkEndpoint { // A network endpoint group (NEG) defines how a set of endpoints should be // reached, whether they are reachable, and where they are located. // For more information about using NEGs for different use cases, seeNetwork endpoint groups overview. +// +// Note: Use the following APIs to manage network endpoint groups: +// +// - +// To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity +// NEGs): zonal +// API +// - +// To manage NEGs with regional scope (such as regional internet NEGs, +// serverless NEGs, Private Service Connect NEGs): regional +// API +// - +// To manage NEGs with global scope (such as global internet NEGs):global +// API message NetworkEndpointGroup { // Type of network endpoints in this network endpoint group. Can be one ofGCE_VM_IP, GCE_VM_IP_PORT,NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT,INTERNET_IP_PORT, SERVERLESS,PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. enum NetworkEndpointType { @@ -55279,6 +56884,10 @@ message NetworkInterface { // You can only specify this field for network interfaces in VPC networks. repeated AliasIpRange alias_ip_ranges = 165085631; + // Optional. If true, DNS resolution will be enabled over this interface. Only valid + // with network_attachment. + optional bool enable_vpc_scoped_dns = 283425868; + // Fingerprint hash of contents stored in this network interface. // This field will be ignored when inserting an Instance or // adding a NetworkInterface. An up-to-date @@ -55457,9 +57066,7 @@ message NetworkPeering { } - // Output only. [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The - // peering is `ACTIVE` when there's a matching configuration in the peer - // network. + // Output only. [Output Only] State for the peering. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -55558,9 +57165,7 @@ message NetworkPeering { // Check the StackType enum for the list of possible values. optional string stack_type = 425908881; - // Output only. [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The - // peering is `ACTIVE` when there's a matching configuration in the peer - // network. + // Output only. [Output Only] State for the peering. // Check the State enum for the list of possible values. optional string state = 109757585; @@ -56443,8 +58048,12 @@ message NetworkProfileNetworkFeatures { // A value indicating that the enum field is not set. UNDEFINED_FIREWALL_POLICY_TYPES = 0; + RDMA_FALCON_POLICY = 66315047; + RDMA_ROCE_POLICY = 148757145; + ULL_POLICY = 100494364; + VPC_POLICY = 74319208; } @@ -59197,6 +60806,43 @@ message PatchInterconnectRequest { } +// A request message for Routers.PatchNamedSet. See the method description for details. +message PatchNamedSetRouterRequest { + // The body resource for this request + NamedSet named_set_resource = 408608401 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // Name of the Router resource where Named Set is defined. + string router = 148608841 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for NetworkAttachments.Patch. See the method description for details. message PatchNetworkAttachmentRequest { // Name of the NetworkAttachment resource to patch. @@ -65093,6 +66739,24 @@ message Reservation { } + // Indicates the early access maintenance for the reservation. + // If this field is absent or set to NO_EARLY_ACCESS, the reservation is not + // enrolled in early access maintenance and the standard notice applies. + enum EarlyAccessMaintenance { + // A value indicating that the enum field is not set. + UNDEFINED_EARLY_ACCESS_MAINTENANCE = 0; + + // No early access. + NO_EARLY_ACCESS = 220751774; + + // Wave 1: Fastest notification period + WAVE1 = 82367576; + + // Wave 2: Medium notification period + WAVE2 = 82367577; + + } + // Protection tier for the workload which specifies the workload expectations // in the event of infrastructure failures at data center (e.g. power // and/or cooling failures). @@ -65216,6 +66880,12 @@ message Reservation { // create the resource. optional string description = 422937596; + // Indicates the early access maintenance for the reservation. + // If this field is absent or set to NO_EARLY_ACCESS, the reservation is not + // enrolled in early access maintenance and the standard notice applies. + // Check the EarlyAccessMaintenance enum for the list of possible values. + optional string early_access_maintenance = 343918356; + // Indicates whether Compute Engine allows unplanned maintenance for your VMs; // for example, to fix hardware errors. optional bool enable_emergent_maintenance = 353759497; @@ -65241,6 +66911,10 @@ message Reservation { // be a dash. optional string name = 3373707; + // Input only. Additional params passed with the request, but not persisted + // as part of resource payload. + optional ReservationParams params = 78313862; + // Protection tier for the workload which specifies the workload expectations // in the event of infrastructure failures at data center (e.g. power // and/or cooling failures). @@ -65617,6 +67291,143 @@ message ReservationList { } +// Additional reservation params. +message ReservationParams { + // Input only. Resource manager tags to be bound to the reservation. Tag keys and + // values have the same definition as resource + // manager tags. Keys and values can be either in numeric format, + // such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in + // namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and + // `{tag_value_short_name}`. The field is ignored (both PUT & + // PATCH) when empty. + map resource_manager_tags = 377671164; + +} + +// Represents a reservation slot resource. +message ReservationSlot { + // Output only. [Output Only] The state of the reservation slot. + enum State { + // A value indicating that the enum field is not set. + UNDEFINED_STATE = 0; + + // The reservation slot has allocated all its resources. + ACTIVE = 314733318; + + // The resources are being allocated for the reservation slot. + CREATING = 455564985; + + // The reservation slot is currently being deleted. + DELETING = 528602024; + + STATE_UNSPECIFIED = 470755401; + + // The reservation slot is currently unavailable. + UNAVAILABLE = 413756464; + + } + + // Output only. [Output Only] The creation timestamp, formatted asRFC3339 text. + optional string creation_timestamp = 30525366; + + // Output only. [Output Only] The unique identifier for this resource. This identifier is + // defined by the server. + optional uint64 id = 3355; + + // Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation slots. + optional string kind = 3292052; + + // Output only. [Output Only] The name of the reservation slot. + optional string name = 3373707; + + // Output only. [Output Only] The physical topology of the reservation slot. + optional ReservationSlotPhysicalTopology physical_topology = 279778519; + + // Output only. [Output Only] A server-defined fully-qualified URL for this resource. + optional string self_link = 456214797; + + // Output only. [Output Only] A server-defined URL for this resource with the resource ID. + optional string self_link_with_id = 44520962; + + // Specify share settings to create a shared slot. Set to empty + // to inherit the share settings from a parent resource. + optional ShareSettings share_settings = 266668163; + + // Output only. [Output Only] The state of the reservation slot. + // Check the State enum for the list of possible values. + optional string state = 109757585; + + // Output only. [Output Only] The status of the reservation slot. + optional ReservationSlotStatus status = 181260274; + + // Output only. [Output Only] The zone in which the reservation slot resides. + optional string zone = 3744684; + +} + +// +message ReservationSlotPhysicalTopology { + // The unique identifier of the capacity block within the cluster. + optional string block = 93832333; + + // The cluster name of the reservation sub-block. + optional string cluster = 335221242; + + // The unique identifier of the capacity host within the capacity sub-block. + optional string host = 3208616; + + // The unique identifier of the capacity sub-block within the capacity + // block. + optional string sub_block = 478033358; + +} + +// +message ReservationSlotStatus { + // Output only. [Output Only] The physical topology of the reservation sub-block. + optional ReservationSlotPhysicalTopology physical_topology = 279778519; + + // Output only. The RDMA IP address of the physical host. + repeated string rdma_ip_addresses = 167842531; + + // Output only. The URIs of the instances currently running on this slot. + repeated string running_instances = 536292350; + +} + +// +message ReservationSlotsGetResponse { + optional ReservationSlot resource = 195806222; + +} + +// A list of reservation slots within a single reservation. +message ReservationSlotsListResponse { + // The unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of reservation slot resources. + repeated ReservationSlot items = 100526016; + + // The type of resource. Alwayscompute#reservationSlot for a list of reservation + // slots. + optional string kind = 3292052; + + // This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + optional string next_page_token = 79797525; + + // The server-defined URL for this resource. + optional string self_link = 456214797; + + // An informational warning message. + optional Warning warning = 50704284; + +} + // Represents a reservation subBlock resource. message ReservationSubBlock { // Output only. [Output Only] Status of the reservation subBlock. @@ -66843,6 +68654,9 @@ message ResourceStatusEffectiveInstanceMetadata { // Effective enable-oslogin value at Instance level. optional bool enable_oslogin_metadata_value = 216603159; + // Effective gce-container-declaration value at Instance level. + optional bool gce_container_declaration_metadata_value = 219617210; + // Effective serial-port-enable value at Instance level. optional bool serial_port_enable_metadata_value = 430536330; @@ -69247,6 +71061,15 @@ message RouterStatusResponse { } +// +message RoutersGetNamedSetResponse { + // end_interface: MixerGetResponseWithEtagBuilder + optional string etag = 3123477; + + optional NamedSet resource = 195806222; + +} + // message RoutersGetRoutePolicyResponse { optional RoutePolicy resource = 195806222; @@ -69285,6 +71108,38 @@ message RoutersListBgpRoutes { } +// +message RoutersListNamedSets { + optional string etag = 3123477; + + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. + optional string id = 3355; + + // Output only. [Output Only] Type of resource. Alwayscompute#routersListNamedSets for lists of named sets. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + optional string next_page_token = 79797525; + + // [Output Only] A list of named sets. + repeated NamedSet result = 139315229; + + // Output only. [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // Output only. [Output Only] Unreachable resources. + repeated string unreachables = 243372063; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + // message RoutersListRoutePolicies { optional string etag = 3123477; @@ -69832,6 +71687,12 @@ message Scheduling { // Cycle for more information on the possible instance states. optional bool preemptible = 324203169; + // Specifies the Metadata Service preemption notice duration before the GCE ACPI G2 Soft + // Off signal is triggered for Spot + // VMs only. If not specified, there will be no wait before the G2 Soft + // Off signal is triggered. + optional Duration preemption_notice_duration = 486176437; + // Specifies the provisioning model of the instance. // Check the ProvisioningModel enum for the list of possible values. optional string provisioning_model = 494423; @@ -72355,6 +74216,22 @@ message SetIamPolicyInstanceTemplateRequest { } +// A request message for InstantSnapshotGroups.SetIamPolicy. See the method description for details. +message SetIamPolicyInstantSnapshotGroupRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + ZoneSetPolicyRequest zone_set_policy_request_resource = 382082107 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for InstantSnapshots.SetIamPolicy. See the method description for details. message SetIamPolicyInstantSnapshotRequest { // Project ID for this request. @@ -72532,6 +74409,22 @@ message SetIamPolicyRegionDiskRequest { } +// A request message for RegionInstantSnapshotGroups.SetIamPolicy. See the method description for details. +message SetIamPolicyRegionInstantSnapshotGroupRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionInstantSnapshots.SetIamPolicy. See the method description for details. message SetIamPolicyRegionInstantSnapshotRequest { // Project ID for this request. @@ -72666,6 +74559,19 @@ message SetIamPolicyServiceAttachmentRequest { } +// A request message for SnapshotGroups.SetIamPolicy. See the method description for details. +message SetIamPolicySnapshotGroupRequest { + // The body resource for this request + GlobalSetPolicyRequest global_set_policy_request_resource = 337048498 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for Snapshots.SetIamPolicy. See the method description for details. message SetIamPolicySnapshotRequest { // The body resource for this request @@ -75133,6 +77039,13 @@ message Snapshot { // do not need to provide a key to use the snapshot later. optional CustomerEncryptionKey snapshot_encryption_key = 43334526; + // Output only. [Output Only] The unique ID of the snapshot group that this snapshot + // belongs to. + optional string snapshot_group_id = 255004406; + + // Output only. [Output only] The snapshot group that this snapshot belongs to. + optional string snapshot_group_name = 246247846; + // Indicates the type of the snapshot. // Check the SnapshotType enum for the list of possible values. optional string snapshot_type = 124349653; @@ -75205,8 +77118,6 @@ message Snapshot { // multi-regional). repeated string storage_locations = 328005274; - // [Output Only] A list of user provided licenses represented by a list of - // URLs to the license resource. repeated string user_licenses = 388193862; } @@ -75243,6 +77154,117 @@ message SnapshotAggregatedList { } +// Represents a SnapshotGroup resource. +// +// A snapshot group is a set of snapshots that represents a point in time state +// of a consistency group. +message SnapshotGroup { + // Output only. [Output Only] + enum Status { + // A value indicating that the enum field is not set. + UNDEFINED_STATUS = 0; + + CREATING = 455564985; + + DELETING = 528602024; + + FAILED = 455706685; + + INVALID = 530283991; + + READY = 77848963; + + UNKNOWN = 433141802; + + UPLOADING = 267603489; + + } + + // Output only. [Output Only] Creation timestamp inRFC3339 + // text format. + optional string creation_timestamp = 30525366; + + // Optional. An optional description of this resource. Provide this property when you + // create the resource. + optional string description = 422937596; + + // Output only. [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. + optional uint64 id = 3355; + + // Output only. [Output Only] Type of the resource. Alwayscompute#snapshotGroup for SnapshotGroup + // resources. + optional string kind = 3292052; + + // Identifier. Name of the resource; provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must be + // a dash, lowercase letter, or digit, except the last character, which cannot + // be a dash. + optional string name = 3373707; + + // Output only. [Output Only] Server-defined URL for the resource. + optional string self_link = 456214797; + + // Output only. [Output Only] Server-defined URL for this resource's resource id. + optional string self_link_with_id = 44520962; + + // Output only. [Output Only] + optional SnapshotGroupSourceInfo source_info = 451907154; + + // Input field for the source instant snapshot group. + optional string source_instant_snapshot_group = 525991686; + + // Output only. [Output Only] + optional SnapshotGroupSourceInstantSnapshotGroupInfo source_instant_snapshot_group_info = 62296647; + + // Output only. [Output Only] + // Check the Status enum for the list of possible values. + optional string status = 181260274; + +} + +// +message SnapshotGroupParameters { + // URLs of the zones where disks should be replicated to. Only applicable + // for regional resources. + repeated string replica_zones = 48438272; + + // The source snapshot group used to create disks. You can provide this as a + // partial or full URL to the resource. For example, the following are valid + // values: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup + // - projects/project/global/snapshotGroups/snapshotGroup + // - global/snapshotGroups/snapshotGroup + optional string source_snapshot_group = 225130728; + + // URL of the disk type resource describing which disk type to use to create + // disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk + // types. + optional string type = 3575610; + +} + +// +message SnapshotGroupSourceInfo { + optional string consistency_group = 508183960; + + optional string consistency_group_id = 85599522; + +} + +// +message SnapshotGroupSourceInstantSnapshotGroupInfo { + optional string instant_snapshot_group = 223180386; + + optional string instant_snapshot_group_id = 157599768; + +} + // Contains a list of Snapshot resources. message SnapshotList { // [Output Only] Unique identifier for the resource; defined by the server. @@ -75271,7 +77293,7 @@ message SnapshotList { // Additional snapshot params. message SnapshotParams { - // Resource manager tags to be bound to the snapshot. Tag keys and values have + // Input only. Resource manager tags to be bound to the snapshot. Tag keys and values have // the same definition as resource // manager tags. Keys and values can be either in numeric format, // such as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced @@ -76802,13 +78824,13 @@ message StoragePoolDisk { // Exapool provisioned capacities for each SKU type message StoragePoolExapoolProvisionedCapacityGb { - // Output only. Size, in GiB, of provisioned capacity-optimized capacity for this Exapool + // Size, in GiB, of provisioned capacity-optimized capacity for this Exapool optional int64 capacity_optimized = 251131874; - // Output only. Size, in GiB, of provisioned read-optimized capacity for this Exapool + // Size, in GiB, of provisioned read-optimized capacity for this Exapool optional int64 read_optimized = 389863870; - // Output only. Size, in GiB, of provisioned write-optimized capacity for this Exapool + // Size, in GiB, of provisioned write-optimized capacity for this Exapool optional int64 write_optimized = 492523719; } @@ -77261,9 +79283,9 @@ message Subnetwork { } - // Whether this subnetwork's ranges can conflict with existing static routes. + // Whether this subnetwork's ranges can conflict with existing custom routes. // Setting this to true allows this subnetwork's primary and secondary ranges - // to overlap with (and contain) static routes that have already been + // to overlap with (and contain) custom routes that have already been // configured on the corresponding network. // // For example if a static route has range 10.1.0.0/16, a subnet @@ -77279,8 +79301,6 @@ message Subnetwork { // // The default value is false and applies to all existing subnetworks and // automatically created subnetworks. - // - // This field cannot be set to true at resource creation time. optional bool allow_subnet_cidr_routes_overlap = 67856209; // Output only. [Output Only] Creation timestamp inRFC3339 @@ -77436,7 +79456,7 @@ message Subnetwork { // An array of configurations for secondary IP ranges for VM instances // contained in this subnetwork. The primary IP of such VM must belong to the // primary ipCidrRange of the subnetwork. The alias IPs may belong to either - // primary or secondary ranges. This field can be updated with apatch request. + // primary or secondary ranges. This field can be updated with apatch request. Supports both IPv4 and IPv6 ranges. repeated SubnetworkSecondaryRange secondary_ip_ranges = 136658915; // [Output Only] Server-defined URL for the resource. @@ -77631,18 +79651,31 @@ message SubnetworkSecondaryRange { // The range of IP addresses belonging to this subnetwork secondary range. // Provide this property when you create the subnetwork. Ranges must be // unique and non-overlapping with all primary and secondary IP ranges - // within a network. Only IPv4 is supported. The range can be any range - // listed in theValid + // within a network. Both IPv4 and IPv6 ranges are supported. For IPv4, + // the range can be any range listed in theValid // ranges list. + // + // For IPv6: + // The range must have a /64 prefix length. + // The range must be omitted, for auto-allocation from Google-defined ULA + // IPv6 range. + // For BYOGUA internal IPv6 secondary range, the range may be specified + // along with the `ipCollection` field. + // If an `ipCollection` is specified, the requested ip_cidr_range must lie + // within the range of the PDP referenced by the `ipCollection` field for + // allocation. + // If `ipCollection` field is specified, but ip_cidr_range is not, + // the range is auto-allocated from the PDP referenced by the `ipCollection` + // field. optional string ip_cidr_range = 98117322; // The name associated with this subnetwork secondary range, used when adding - // an alias IP range to a VM instance. + // an alias IP/IPv6 range to a VM instance. // The name must be 1-63 characters long, and comply withRFC1035. // The name must be unique within the subnetwork. optional string range_name = 332216397; - // The URL of the reserved internal range. + // The URL of the reserved internal range. Only IPv4 is supported. optional string reserved_internal_range = 286248754; } @@ -79556,6 +81589,10 @@ message TargetVpnGateway { // client when the VPN gateway is created. optional string network = 232872494; + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. + optional TargetVpnGatewayParams params = 78313862; + // [Output Only] URL of the region where the target VPN gateway resides. // You must specify this field as part of the HTTP request URL. It is // not settable as a field in the request body. @@ -79631,6 +81668,26 @@ message TargetVpnGatewayList { } +// +message TargetVpnGatewayParams { + // Tag keys/values directly bound to this resource. + // Tag keys and values have the same definition as resource + // manager tags. The field is allowed for INSERT + // only. The keys/values to set on the resource should be specified in + // either ID { : } or Namespaced format + // { : }. + // For example the following are valid inputs: + // * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} + // * {"123/environment" : "production", "345/abc" : "xyz"} + // Note: + // * Invalid combinations of ID & namespaced format is not supported. For + // instance: {"123/environment" : "tagValues/444"} is invalid. + // * Inconsistent format is not supported. For instance: + // {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + map resource_manager_tags = 377671164; + +} + // message TargetVpnGatewaysScopedList { // [Output Only] A list of target VPN gateways contained in this scope. @@ -79918,6 +81975,22 @@ message TestIamPermissionsInstanceTemplateRequest { } +// A request message for InstantSnapshotGroups.TestIamPermissions. See the method description for details. +message TestIamPermissionsInstantSnapshotGroupRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + TestPermissionsRequest test_permissions_request_resource = 439214758 [(google.api.field_behavior) = REQUIRED]; + + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for InstantSnapshots.TestIamPermissions. See the method description for details. message TestIamPermissionsInstantSnapshotRequest { // Project ID for this request. @@ -80326,6 +82399,22 @@ message TestIamPermissionsRegionInstanceGroupRequest { } +// A request message for RegionInstantSnapshotGroups.TestIamPermissions. See the method description for details. +message TestIamPermissionsRegionInstantSnapshotGroupRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + TestPermissionsRequest test_permissions_request_resource = 439214758 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionInstantSnapshots.TestIamPermissions. See the method description for details. message TestIamPermissionsRegionInstantSnapshotRequest { // Project ID for this request. @@ -80614,6 +82703,19 @@ message TestIamPermissionsServiceAttachmentRequest { } +// A request message for SnapshotGroups.TestIamPermissions. See the method description for details. +message TestIamPermissionsSnapshotGroupRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + TestPermissionsRequest test_permissions_request_resource = 439214758 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for Snapshots.TestIamPermissions. See the method description for details. message TestIamPermissionsSnapshotRequest { // Project ID for this request. @@ -81217,44 +83319,267 @@ message UpdateDisplayDeviceInstanceRequest { } -// A request message for Firewalls.Update. See the method description for details. -message UpdateFirewallRequest { - // Name of the firewall rule to update. - string firewall = 511016192 [(google.api.field_behavior) = REQUIRED]; - - // The body resource for this request - Firewall firewall_resource = 41425005 [(google.api.field_behavior) = REQUIRED]; - - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; - - // An optional request ID to identify requests. Specify a unique request ID so - // that if you must retry your request, the server will know to ignore the - // request if it has already been completed. - // - // For example, consider a situation where you make an initial request and - // the request times out. If you make the request again with the same - // request ID, the server can check if original operation with the same - // request ID was received, and if so, will ignore the second request. This - // prevents clients from accidentally creating duplicate commitments. - // - // The request ID must be - // a valid UUID with the exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). - optional string request_id = 37109963; - -} - -// A request message for FutureReservations.Update. See the method description for details. -message UpdateFutureReservationRequest { - // Name of the reservation to update. Name should conform to RFC1035. - string future_reservation = 56206160 [(google.api.field_behavior) = REQUIRED]; +// A request message for Firewalls.Update. See the method description for details. +message UpdateFirewallRequest { + // Name of the firewall rule to update. + string firewall = 511016192 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + Firewall firewall_resource = 41425005 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + +// A request message for FutureReservations.Update. See the method description for details. +message UpdateFutureReservationRequest { + // Name of the reservation to update. Name should conform to RFC1035. + string future_reservation = 56206160 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + FutureReservation future_reservation_resource = 466750493 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // update_mask indicates fields to be updated as part of this request. + optional string update_mask = 500079778; + + // Name of the zone for this request. Name should conform to RFC1035. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + +// A request message for GlobalVmExtensionPolicies.Update. See the method description for details. +message UpdateGlobalVmExtensionPolicyRequest { + // Name of the global VM extension policy to update. + string global_vm_extension_policy = 8334110 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + GlobalVmExtensionPolicy global_vm_extension_policy_resource = 101542927 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + +// A request message for HealthChecks.Update. See the method description for details. +message UpdateHealthCheckRequest { + // Name of the HealthCheck resource to update. + string health_check = 308876645 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + HealthCheck health_check_resource = 201925032 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + +// A request message for InstanceGroupManagers.Update. See the method description for details. +message UpdateInstanceGroupManagerRequest { + // The name of the instance group manager. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + InstanceGroupManager instance_group_manager_resource = 261063946 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The name of the zone + // where you want to create the managed instance group. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + +// A request message for Instances.Update. See the method description for details. +message UpdateInstanceRequest { + // Specifies the action to take when updating an instance even if the + // updated properties do not require it. If not specified, then + // Compute Engine acts based on the minimum action that the updated + // properties require. + // Additional supported values which may be not listed in the enum directly due to technical reasons: + // INVALID + // NO_EFFECT + // REFRESH + // RESTART + enum MinimalAction { + // A value indicating that the enum field is not set. + UNDEFINED_MINIMAL_ACTION = 0; + + } + + // Specifies the most disruptive action that can be taken on the instance + // as part of the update. Compute Engine returns an error if the + // instance properties require a more disruptive action as part of the + // instance update. Valid options from lowest to highest are + // NO_EFFECT, REFRESH, and RESTART. + // Additional supported values which may be not listed in the enum directly due to technical reasons: + // INVALID + // NO_EFFECT + // REFRESH + // RESTART + enum MostDisruptiveAllowedAction { + // A value indicating that the enum field is not set. + UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION = 0; + + } + + // Name of the instance resource to update. + string instance = 18257045 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + Instance instance_resource = 215988344 [(google.api.field_behavior) = REQUIRED]; + + // Specifies the action to take when updating an instance even if the + // updated properties do not require it. If not specified, then + // Compute Engine acts based on the minimum action that the updated + // properties require. + // Check the MinimalAction enum for the list of possible values. + optional string minimal_action = 270567060; + + // Specifies the most disruptive action that can be taken on the instance + // as part of the update. Compute Engine returns an error if the + // instance properties require a more disruptive action as part of the + // instance update. Valid options from lowest to highest are + // NO_EFFECT, REFRESH, and RESTART. + // Check the MostDisruptiveAllowedAction enum for the list of possible values. + optional string most_disruptive_allowed_action = 66103053; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + +// A request message for Licenses.Update. See the method description for details. +message UpdateLicenseRequest { + // The license name for this request. + string license = 166757441 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request - FutureReservation future_reservation_resource = 466750493 [(google.api.field_behavior) = REQUIRED]; + License license_resource = 437955148 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -81280,167 +83605,12 @@ message UpdateFutureReservationRequest { // update_mask indicates fields to be updated as part of this request. optional string update_mask = 500079778; - // Name of the zone for this request. Name should conform to RFC1035. - string zone = 3744684 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "zone" - ]; - -} - -// A request message for GlobalVmExtensionPolicies.Update. See the method description for details. -message UpdateGlobalVmExtensionPolicyRequest { - // Name of the global VM extension policy to update. - string global_vm_extension_policy = 8334110 [(google.api.field_behavior) = REQUIRED]; - - // The body resource for this request - GlobalVmExtensionPolicy global_vm_extension_policy_resource = 101542927 [(google.api.field_behavior) = REQUIRED]; - - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; - - // An optional request ID to identify requests. Specify a unique request ID so - // that if you must retry your request, the server will know to ignore the - // request if it has already been completed. - // - // For example, consider a situation where you make an initial request and - // the request times out. If you make the request again with the same - // request ID, the server can check if original operation with the same - // request ID was received, and if so, will ignore the second request. This - // prevents clients from accidentally creating duplicate commitments. - // - // The request ID must be - // a valid UUID with the exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). - optional string request_id = 37109963; - -} - -// A request message for HealthChecks.Update. See the method description for details. -message UpdateHealthCheckRequest { - // Name of the HealthCheck resource to update. - string health_check = 308876645 [(google.api.field_behavior) = REQUIRED]; - - // The body resource for this request - HealthCheck health_check_resource = 201925032 [(google.api.field_behavior) = REQUIRED]; - - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; - - // An optional request ID to identify requests. Specify a unique request ID so - // that if you must retry your request, the server will know to ignore the - // request if it has already been completed. - // - // For example, consider a situation where you make an initial request and - // the request times out. If you make the request again with the same - // request ID, the server can check if original operation with the same - // request ID was received, and if so, will ignore the second request. This - // prevents clients from accidentally creating duplicate commitments. - // - // The request ID must be - // a valid UUID with the exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). - optional string request_id = 37109963; - -} - -// A request message for InstanceGroupManagers.Update. See the method description for details. -message UpdateInstanceGroupManagerRequest { - // The name of the instance group manager. - string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; - - // The body resource for this request - InstanceGroupManager instance_group_manager_resource = 261063946 [(google.api.field_behavior) = REQUIRED]; - - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; - - // An optional request ID to identify requests. Specify a unique request ID so - // that if you must retry your request, the server will know to ignore the - // request if it has already been completed. - // - // For example, consider a situation where you make an initial request and - // the request times out. If you make the request again with the same - // request ID, the server can check if original operation with the same - // request ID was received, and if so, will ignore the second request. This - // prevents clients from accidentally creating duplicate commitments. - // - // The request ID must be - // a valid UUID with the exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). - optional string request_id = 37109963; - - // The name of the zone - // where you want to create the managed instance group. - string zone = 3744684 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "zone" - ]; - } -// A request message for Instances.Update. See the method description for details. -message UpdateInstanceRequest { - // Specifies the action to take when updating an instance even if the - // updated properties do not require it. If not specified, then - // Compute Engine acts based on the minimum action that the updated - // properties require. - // Additional supported values which may be not listed in the enum directly due to technical reasons: - // INVALID - // NO_EFFECT - // REFRESH - // RESTART - enum MinimalAction { - // A value indicating that the enum field is not set. - UNDEFINED_MINIMAL_ACTION = 0; - - } - - // Specifies the most disruptive action that can be taken on the instance - // as part of the update. Compute Engine returns an error if the - // instance properties require a more disruptive action as part of the - // instance update. Valid options from lowest to highest are - // NO_EFFECT, REFRESH, and RESTART. - // Additional supported values which may be not listed in the enum directly due to technical reasons: - // INVALID - // NO_EFFECT - // REFRESH - // RESTART - enum MostDisruptiveAllowedAction { - // A value indicating that the enum field is not set. - UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION = 0; - - } - - // Name of the instance resource to update. - string instance = 18257045 [(google.api.field_behavior) = REQUIRED]; - +// A request message for Routers.UpdateNamedSet. See the method description for details. +message UpdateNamedSetRouterRequest { // The body resource for this request - Instance instance_resource = 215988344 [(google.api.field_behavior) = REQUIRED]; - - // Specifies the action to take when updating an instance even if the - // updated properties do not require it. If not specified, then - // Compute Engine acts based on the minimum action that the updated - // properties require. - // Check the MinimalAction enum for the list of possible values. - optional string minimal_action = 270567060; - - // Specifies the most disruptive action that can be taken on the instance - // as part of the update. Compute Engine returns an error if the - // instance properties require a more disruptive action as part of the - // instance update. Valid options from lowest to highest are - // NO_EFFECT, REFRESH, and RESTART. - // Check the MostDisruptiveAllowedAction enum for the list of possible values. - optional string most_disruptive_allowed_action = 66103053; + NamedSet named_set_resource = 408608401 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -81448,41 +83618,10 @@ message UpdateInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so - // that if you must retry your request, the server will know to ignore the - // request if it has already been completed. - // - // For example, consider a situation where you make an initial request and - // the request times out. If you make the request again with the same - // request ID, the server can check if original operation with the same - // request ID was received, and if so, will ignore the second request. This - // prevents clients from accidentally creating duplicate commitments. - // - // The request ID must be - // a valid UUID with the exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). - optional string request_id = 37109963; - - // The name of the zone for this request. - string zone = 3744684 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "zone" - ]; - -} - -// A request message for Licenses.Update. See the method description for details. -message UpdateLicenseRequest { - // The license name for this request. - string license = 166757441 [(google.api.field_behavior) = REQUIRED]; - - // The body resource for this request - License license_resource = 437955148 [(google.api.field_behavior) = REQUIRED]; - - // Project ID for this request. - string project = 227560217 [ + // Name of the region for this request. + string region = 138946292 [ (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" + (google.cloud.operation_request_field) = "region" ]; // An optional request ID to identify requests. Specify a unique request ID so @@ -81500,8 +83639,8 @@ message UpdateLicenseRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // update_mask indicates fields to be updated as part of this request. - optional string update_mask = 500079778; + // Name of the Router resource where Named Set is defined. + string router = 148608841 [(google.api.field_behavior) = REQUIRED]; } @@ -81985,6 +84124,34 @@ message UpdateReservationRequest { } +// A request message for ReservationSlots.Update. See the method description for details. +message UpdateReservationSlotRequest { + // The name of the sub-block resource. + string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; + + // The project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The name of the slot resource. + string reservation_slot = 277470865 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + ReservationSlot reservation_slot_resource = 408545788 [(google.api.field_behavior) = REQUIRED]; + + // The fields to be updated as part of this request. + optional string update_mask = 500079778; + + // The name of the zone for this request, formatted as RFC1035. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + // A request message for RegionCommitments.UpdateReservations. See the method description for details. message UpdateReservationsRegionCommitmentRequest { // Name of the commitment for which the reservations are being updated. @@ -82843,6 +85010,7 @@ message UsableSubnetwork { // Secondary IP range of a usable subnetwork. message UsableSubnetworkSecondaryRange { // The range of IP addresses belonging to this subnetwork secondary range. + // Can be Ipv4 or Ipv6 range. optional string ip_cidr_range = 98117322; // The name associated with this subnetwork secondary range, used when adding @@ -83080,8 +85248,8 @@ message VmExtensionPolicy { // An optional description of this resource. optional string description = 422937596; - // Required. A map of extension names (e.g., "cloudops") to their corresponding policy - // configurations. + // Required. A map of extension names (for example, "ops-agent") to their corresponding + // policy configurations. map extension_policies = 227761488; // Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if @@ -83117,7 +85285,7 @@ message VmExtensionPolicy { // The policy priority is an integer from 0 to 65535, inclusive. Lower // integers indicate higher priorities. If you do not specify a priority when // creating a rule, it is assigned a priority of 1000. If priorities are - // equal, the policy with the more recent creation timestamp takes precedence. + // equal, the policy with the most recent creation timestamp takes precedence. optional int32 priority = 445151652; // Output only. [Output Only] Server-defined fully-qualified URL for this resource. @@ -83329,6 +85497,10 @@ message VpnGateway { // client when the VPN gateway is created. optional string network = 232872494; + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. + optional VpnGatewayParams params = 78313862; + // Output only. [Output Only] URL of the region where the VPN gateway resides. optional string region = 138946292; @@ -83402,6 +85574,26 @@ message VpnGatewayList { } +// +message VpnGatewayParams { + // Tag keys/values directly bound to this resource. + // Tag keys and values have the same definition as resource + // manager tags. The field is allowed for INSERT + // only. The keys/values to set on the resource should be specified in + // either ID { : } or Namespaced format + // { : }. + // For example the following are valid inputs: + // * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} + // * {"123/environment" : "production", "345/abc" : "xyz"} + // Note: + // * Invalid combinations of ID & namespaced format is not supported. For + // instance: {"123/environment" : "tagValues/444"} is invalid. + // * Inconsistent format is not supported. For instance: + // {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + map resource_manager_tags = 377671164; + +} + // message VpnGatewayStatus { // Output only. List of VPN connection for this VpnGateway. @@ -83707,6 +85899,10 @@ message VpnTunnel { // cannot be a dash. optional string name = 3373707; + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. + optional VpnTunnelParams params = 78313862; + // URL of the peer side external VPN gateway to which this VPN tunnel is // connected. // Provided by the client when the VPN tunnel is created. @@ -83874,6 +86070,26 @@ message VpnTunnelList { } +// +message VpnTunnelParams { + // Tag keys/values directly bound to this resource. + // Tag keys and values have the same definition as resource + // manager tags. The field is allowed for INSERT + // only. The keys/values to set on the resource should be specified in + // either ID { : } or Namespaced format + // { : }. + // For example the following are valid inputs: + // * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} + // * {"123/environment" : "production", "345/abc" : "xyz"} + // Note: + // * Invalid combinations of ID & namespaced format is not supported. For + // instance: {"123/environment" : "tagValues/444"} is invalid. + // * Inconsistent format is not supported. For instance: + // {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + map resource_manager_tags = 377671164; + +} + // message VpnTunnelPhase1Algorithms { repeated string dh = 3204; @@ -84690,6 +86906,14 @@ message WithdrawPublicDelegatedPrefixeRequest { } +// +message WorkloadIdentityConfig { + optional string identity = 401109182; + + optional bool identity_certificate_enabled = 342892440; + +} + // message XpnHostList { // [Output Only] Unique identifier for the resource; defined by the server. @@ -85793,7 +88017,7 @@ service Disks { // Updates the specified disk with the data included in the request. // The update is performed only on selected fields included as part - // of update-mask. Only the following fields can be modified: user_license. + // of update-mask. rpc Update(UpdateDiskRequest) returns (Operation) { option (google.api.http) = { body: "disk_resource" @@ -86574,6 +88798,20 @@ service GlobalNetworkEndpointGroups { // Creates a network endpoint group in the specified project using the // parameters that are included in the request. + // + // Note: Use the following APIs to manage network endpoint groups: + // + // - + // To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity + // NEGs): zonal + // API + // - + // To manage NEGs with regional scope (such as regional internet NEGs, + // serverless NEGs, Private Service Connect NEGs): regional + // API + // - + // To manage NEGs with global scope (such as global internet NEGs):global + // API rpc Insert(InsertGlobalNetworkEndpointGroupRequest) returns (Operation) { option (google.api.http) = { body: "network_endpoint_group_resource" @@ -87202,6 +89440,16 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } + // Updates the accelerator topologies configuration. + rpc ConfigureAcceleratorTopologies(ConfigureAcceleratorTopologiesInstanceGroupManagerRequest) returns (Operation) { + option (google.api.http) = { + body: "instance_group_managers_configure_accelerator_topologies_request_resource" + post: "/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/configureAcceleratorTopologies" + }; + option (google.api.method_signature) = "project,zone,instance_group_manager,instance_group_managers_configure_accelerator_topologies_request_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + // Creates instances with per-instance configurations in this managed instance // group. Instances are created using the current instance template. Thecreate instances operation is marked DONE if thecreateInstances request is successful. The underlying actions // take additional time. You must separately verify the status of thecreating or actions with the listmanagedinstances @@ -88530,6 +90778,81 @@ service Instances { } +// The InstantSnapshotGroups API. +service InstantSnapshotGroups { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // deletes a Zonal InstantSnapshotGroup resource + rpc Delete(DeleteInstantSnapshotGroupRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups/{instant_snapshot_group}" + }; + option (google.api.method_signature) = "project,zone,instant_snapshot_group"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + + // returns the specified InstantSnapshotGroup resource in the specified zone. + rpc Get(GetInstantSnapshotGroupRequest) returns (InstantSnapshotGroup) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups/{instant_snapshot_group}" + }; + option (google.api.method_signature) = "project,zone,instant_snapshot_group"; + } + + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. + rpc GetIamPolicy(GetIamPolicyInstantSnapshotGroupRequest) returns (Policy) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/getIamPolicy" + }; + option (google.api.method_signature) = "project,zone,resource"; + } + + // inserts a Zonal InstantSnapshotGroup resource + rpc Insert(InsertInstantSnapshotGroupRequest) returns (Operation) { + option (google.api.http) = { + body: "instant_snapshot_group_resource" + post: "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups" + }; + option (google.api.method_signature) = "project,zone,instant_snapshot_group_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + + // retrieves the list of InstantSnapshotGroup resources contained within + // the specified zone. + rpc List(ListInstantSnapshotGroupsRequest) returns (ListInstantSnapshotGroups) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups" + }; + option (google.api.method_signature) = "project,zone"; + } + + // Sets the access control policy on the specified resource. + // Replaces any existing policy. + rpc SetIamPolicy(SetIamPolicyInstantSnapshotGroupRequest) returns (Policy) { + option (google.api.http) = { + body: "zone_set_policy_request_resource" + post: "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/setIamPolicy" + }; + option (google.api.method_signature) = "project,zone,resource,zone_set_policy_request_resource"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsInstantSnapshotGroupRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,zone,resource,test_permissions_request_resource"; + } + +} + // The InstantSnapshots API. service InstantSnapshots { option (google.api.default_host) = @@ -89606,6 +91929,20 @@ service NetworkEndpointGroups { // Creates a network endpoint group in the specified project using the // parameters that are included in the request. + // + // Note: Use the following APIs to manage network endpoint groups: + // + // - + // To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity + // NEGs): zonal + // API + // - + // To manage NEGs with regional scope (such as regional internet NEGs, + // serverless NEGs, Private Service Connect NEGs): regional + // API + // - + // To manage NEGs with global scope (such as global internet NEGs):global + // API rpc Insert(InsertNetworkEndpointGroupRequest) returns (Operation) { option (google.api.http) = { body: "network_endpoint_group_resource" @@ -91734,8 +94071,7 @@ service RegionDisks { } // Update the specified disk with the data included in the request. Update is - // performed only on selected fields included as part of update-mask. Only the - // following fields can be modified: user_license. + // performed only on selected fields included as part of update-mask. rpc Update(UpdateRegionDiskRequest) returns (Operation) { option (google.api.http) = { body: "disk_resource" @@ -92738,6 +95074,82 @@ service RegionInstances { } +// The RegionInstantSnapshotGroups API. +service RegionInstantSnapshotGroups { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // deletes a Regional InstantSnapshotGroup resource + rpc Delete(DeleteRegionInstantSnapshotGroupRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups/{instant_snapshot_group}" + }; + option (google.api.method_signature) = "project,region,instant_snapshot_group"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // returns the specified InstantSnapshotGroup resource in the specified + // region. + rpc Get(GetRegionInstantSnapshotGroupRequest) returns (InstantSnapshotGroup) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups/{instant_snapshot_group}" + }; + option (google.api.method_signature) = "project,region,instant_snapshot_group"; + } + + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. + rpc GetIamPolicy(GetIamPolicyRegionInstantSnapshotGroupRequest) returns (Policy) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/getIamPolicy" + }; + option (google.api.method_signature) = "project,region,resource"; + } + + // creates a Regional InstantSnapshotGroup resource + rpc Insert(InsertRegionInstantSnapshotGroupRequest) returns (Operation) { + option (google.api.http) = { + body: "instant_snapshot_group_resource" + post: "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups" + }; + option (google.api.method_signature) = "project,region,instant_snapshot_group_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // retrieves the list of InstantSnapshotGroup resources contained within + // the specified region. + rpc List(ListRegionInstantSnapshotGroupsRequest) returns (ListInstantSnapshotGroups) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups" + }; + option (google.api.method_signature) = "project,region"; + } + + // Sets the access control policy on the specified resource. + // Replaces any existing policy. + rpc SetIamPolicy(SetIamPolicyRegionInstantSnapshotGroupRequest) returns (Policy) { + option (google.api.http) = { + body: "region_set_policy_request_resource" + post: "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/setIamPolicy" + }; + option (google.api.method_signature) = "project,region,resource,region_set_policy_request_resource"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsRegionInstantSnapshotGroupRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; + } + +} + // The RegionInstantSnapshots API. service RegionInstantSnapshots { option (google.api.default_host) = @@ -92955,6 +95367,20 @@ service RegionNetworkEndpointGroups { // Creates a network endpoint group in the specified project using the // parameters that are included in the request. + // + // Note: Use the following APIs to manage network endpoint groups: + // + // - + // To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity + // NEGs): zonal + // API + // - + // To manage NEGs with regional scope (such as regional internet NEGs, + // serverless NEGs, Private Service Connect NEGs): regional + // API + // - + // To manage NEGs with global scope (such as global internet NEGs):global + // API rpc Insert(InsertRegionNetworkEndpointGroupRequest) returns (Operation) { option (google.api.http) = { body: "network_endpoint_group_resource" @@ -94251,6 +96677,43 @@ service ReservationBlocks { } +// The ReservationSlots API. +service ReservationSlots { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Retrieves information about the specified reservation slot. + rpc Get(GetReservationSlotRequest) returns (ReservationSlotsGetResponse) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots/{reservation_slot}" + }; + option (google.api.method_signature) = "project,zone,parent_name,reservation_slot"; + } + + // Retrieves a list of reservation slots under a single reservation. + rpc List(ListReservationSlotsRequest) returns (ReservationSlotsListResponse) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots" + }; + option (google.api.method_signature) = "project,zone,parent_name"; + } + + // Update a reservation slot in the specified sub-block. + rpc Update(UpdateReservationSlotRequest) returns (Operation) { + option (google.api.http) = { + body: "reservation_slot_resource" + post: "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots/{reservation_slot}" + }; + option (google.api.method_signature) = "project,zone,parent_name,reservation_slot,reservation_slot_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + +} + // The ReservationSubBlocks API. service ReservationSubBlocks { option (google.api.default_host) = @@ -94263,7 +96726,7 @@ service ReservationSubBlocks { // Retrieves information about the specified reservation subBlock. rpc Get(GetReservationSubBlockRequest) returns (ReservationSubBlocksGetResponse) { option (google.api.http) = { - get: "/compute/beta/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}" + get: "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}" }; option (google.api.method_signature) = "project,zone,parent_name,reservation_sub_block"; } @@ -94272,7 +96735,7 @@ service ReservationSubBlocks { // policy or resource exists. rpc GetIamPolicy(GetIamPolicyReservationSubBlockRequest) returns (Policy) { option (google.api.http) = { - get: "/compute/beta/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/getIamPolicy" + get: "/compute/beta/projects/{project}/zones/{zone}/{parent_resource=reservations/*/reservationBlocks/*}/reservationSubBlocks/{resource}/getIamPolicy" }; option (google.api.method_signature) = "project,zone,parent_resource,resource"; } @@ -94280,7 +96743,7 @@ service ReservationSubBlocks { // Retrieves a list of reservation subBlocks under a single reservation. rpc List(ListReservationSubBlocksRequest) returns (ReservationSubBlocksListResponse) { option (google.api.http) = { - get: "/compute/beta/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks" + get: "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks" }; option (google.api.method_signature) = "project,zone,parent_name"; } @@ -94288,7 +96751,7 @@ service ReservationSubBlocks { // Allows customers to perform maintenance on a reservation subBlock rpc PerformMaintenance(PerformMaintenanceReservationSubBlockRequest) returns (Operation) { option (google.api.http) = { - post: "/compute/beta/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}/performMaintenance" + post: "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}/performMaintenance" }; option (google.api.method_signature) = "project,zone,parent_name,reservation_sub_block"; option (google.cloud.operation_service) = "ZoneOperations"; @@ -94298,7 +96761,7 @@ service ReservationSubBlocks { rpc ReportFaulty(ReportFaultyReservationSubBlockRequest) returns (Operation) { option (google.api.http) = { body: "reservation_sub_blocks_report_faulty_request_resource" - post: "/compute/beta/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}/reportFaulty" + post: "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}/reportFaulty" }; option (google.api.method_signature) = "project,zone,parent_name,reservation_sub_block,reservation_sub_blocks_report_faulty_request_resource"; option (google.cloud.operation_service) = "ZoneOperations"; @@ -94309,7 +96772,7 @@ service ReservationSubBlocks { rpc SetIamPolicy(SetIamPolicyReservationSubBlockRequest) returns (Policy) { option (google.api.http) = { body: "zone_set_nested_policy_request_resource" - post: "/compute/beta/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/setIamPolicy" + post: "/compute/beta/projects/{project}/zones/{zone}/{parent_resource=reservations/*/reservationBlocks/*}/reservationSubBlocks/{resource}/setIamPolicy" }; option (google.api.method_signature) = "project,zone,parent_resource,resource,zone_set_nested_policy_request_resource"; } @@ -94318,7 +96781,7 @@ service ReservationSubBlocks { rpc TestIamPermissions(TestIamPermissionsReservationSubBlockRequest) returns (TestPermissionsResponse) { option (google.api.http) = { body: "test_permissions_request_resource" - post: "/compute/beta/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/testIamPermissions" + post: "/compute/beta/projects/{project}/zones/{zone}/{parent_resource=reservations/*/reservationBlocks/*}/reservationSubBlocks/{resource}/testIamPermissions" }; option (google.api.method_signature) = "project,zone,parent_resource,resource,test_permissions_request_resource"; } @@ -94660,6 +97123,15 @@ service Routers { option (google.cloud.operation_service) = "RegionOperations"; } + // Deletes Named Set + rpc DeleteNamedSet(DeleteNamedSetRouterRequest) returns (Operation) { + option (google.api.http) = { + post: "/compute/beta/projects/{project}/regions/{region}/routers/{router}/deleteNamedSet" + }; + option (google.api.method_signature) = "project,region,router"; + option (google.cloud.operation_service) = "RegionOperations"; + } + // Deletes Route Policy rpc DeleteRoutePolicy(DeleteRoutePolicyRouterRequest) returns (Operation) { option (google.api.http) = { @@ -94677,6 +97149,14 @@ service Routers { option (google.api.method_signature) = "project,region,router"; } + // Returns specified Named Set + rpc GetNamedSet(GetNamedSetRouterRequest) returns (RoutersGetNamedSetResponse) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/regions/{region}/routers/{router}/getNamedSet" + }; + option (google.api.method_signature) = "project,region,router"; + } + // Retrieves runtime NAT IP information. rpc GetNatIpInfo(GetNatIpInfoRouterRequest) returns (NatIpInfoResponse) { option (google.api.http) = { @@ -94736,6 +97216,15 @@ service Routers { option (google.api.method_signature) = "project,region,router"; } + // Retrieves a list of router named set subresources available to the + // specified project. + rpc ListNamedSets(ListNamedSetsRoutersRequest) returns (RoutersListNamedSets) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/regions/{region}/routers/{router}/listNamedSets" + }; + option (google.api.method_signature) = "project,region,router"; + } + // Retrieves a list of router route policy subresources available to the // specified project. rpc ListRoutePolicies(ListRoutePoliciesRoutersRequest) returns (RoutersListRoutePolicies) { @@ -94758,6 +97247,16 @@ service Routers { option (google.cloud.operation_service) = "RegionOperations"; } + // Patches Named Set + rpc PatchNamedSet(PatchNamedSetRouterRequest) returns (Operation) { + option (google.api.http) = { + body: "named_set_resource" + post: "/compute/beta/projects/{project}/regions/{region}/routers/{router}/patchNamedSet" + }; + option (google.api.method_signature) = "project,region,router,named_set_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + // Patches Route Policy rpc PatchRoutePolicy(PatchRoutePolicyRouterRequest) returns (Operation) { option (google.api.http) = { @@ -94800,6 +97299,16 @@ service Routers { option (google.cloud.operation_service) = "RegionOperations"; } + // Updates or creates new Named Set + rpc UpdateNamedSet(UpdateNamedSetRouterRequest) returns (Operation) { + option (google.api.http) = { + body: "named_set_resource" + post: "/compute/beta/projects/{project}/regions/{region}/routers/{router}/updateNamedSet" + }; + option (google.api.method_signature) = "project,region,router,named_set_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + // Updates or creates new Route Policy rpc UpdateRoutePolicy(UpdateRoutePolicyRouterRequest) returns (Operation) { option (google.api.http) = { @@ -95109,6 +97618,82 @@ service ServiceAttachments { } +// The SnapshotGroups API. +service SnapshotGroups { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Deletes the specified SnapshotGroup resource + rpc Delete(DeleteSnapshotGroupRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/beta/projects/{project}/global/snapshotGroups/{snapshot_group}" + }; + option (google.api.method_signature) = "project,snapshot_group"; + option (google.cloud.operation_service) = "GlobalOperations"; + } + + // returns the specified SnapshotGroup resource. + rpc Get(GetSnapshotGroupRequest) returns (SnapshotGroup) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/global/snapshotGroups/{snapshot_group}" + }; + option (google.api.method_signature) = "project,snapshot_group"; + } + + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. + rpc GetIamPolicy(GetIamPolicySnapshotGroupRequest) returns (Policy) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/global/snapshotGroups/{resource}/getIamPolicy" + }; + option (google.api.method_signature) = "project,resource"; + } + + // Creates a snapshot group in the specified project using the data included + // in the request. + rpc Insert(InsertSnapshotGroupRequest) returns (Operation) { + option (google.api.http) = { + body: "snapshot_group_resource" + post: "/compute/beta/projects/{project}/global/snapshotGroups" + }; + option (google.api.method_signature) = "project,snapshot_group_resource"; + option (google.cloud.operation_service) = "GlobalOperations"; + } + + // retrieves the list of SnapshotGroup resources contained within + // the specified project. + rpc List(ListSnapshotGroupsRequest) returns (ListSnapshotGroups) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/global/snapshotGroups" + }; + option (google.api.method_signature) = "project"; + } + + // Sets the access control policy on the specified resource. + // Replaces any existing policy. + rpc SetIamPolicy(SetIamPolicySnapshotGroupRequest) returns (Policy) { + option (google.api.http) = { + body: "global_set_policy_request_resource" + post: "/compute/beta/projects/{project}/global/snapshotGroups/{resource}/setIamPolicy" + }; + option (google.api.method_signature) = "project,resource,global_set_policy_request_resource"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsSnapshotGroupRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/beta/projects/{project}/global/snapshotGroups/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,resource,test_permissions_request_resource"; + } + +} + // The SnapshotSettings API. service SnapshotSettingsService { option (google.api.default_host) = diff --git a/packages/google-cloud-compute/protos/protos.d.ts b/packages/google-cloud-compute/protos/protos.d.ts index 5ef046ac5d1..132209733f3 100644 --- a/packages/google-cloud-compute/protos/protos.d.ts +++ b/packages/google-cloud-compute/protos/protos.d.ts @@ -257920,6 +257920,9 @@ export namespace google { /** Backend maxUtilization */ maxUtilization?: (number|null); + /** Backend orchestrationInfo */ + orchestrationInfo?: (google.cloud.compute.v1beta.IBackendBackendOrchestrationInfo|null); + /** Backend preference */ preference?: (string|null); @@ -257984,6 +257987,9 @@ export namespace google { /** Backend maxUtilization. */ public maxUtilization?: (number|null); + /** Backend orchestrationInfo. */ + public orchestrationInfo?: (google.cloud.compute.v1beta.IBackendBackendOrchestrationInfo|null); + /** Backend preference. */ public preference?: (string|null); @@ -258097,6 +258103,103 @@ export namespace google { } } + /** Properties of a BackendBackendOrchestrationInfo. */ + interface IBackendBackendOrchestrationInfo { + + /** BackendBackendOrchestrationInfo resourceUri */ + resourceUri?: (string|null); + } + + /** Represents a BackendBackendOrchestrationInfo. */ + class BackendBackendOrchestrationInfo implements IBackendBackendOrchestrationInfo { + + /** + * Constructs a new BackendBackendOrchestrationInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IBackendBackendOrchestrationInfo); + + /** BackendBackendOrchestrationInfo resourceUri. */ + public resourceUri?: (string|null); + + /** + * Creates a new BackendBackendOrchestrationInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns BackendBackendOrchestrationInfo instance + */ + public static create(properties?: google.cloud.compute.v1beta.IBackendBackendOrchestrationInfo): google.cloud.compute.v1beta.BackendBackendOrchestrationInfo; + + /** + * Encodes the specified BackendBackendOrchestrationInfo message. Does not implicitly {@link google.cloud.compute.v1beta.BackendBackendOrchestrationInfo.verify|verify} messages. + * @param message BackendBackendOrchestrationInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IBackendBackendOrchestrationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackendBackendOrchestrationInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.BackendBackendOrchestrationInfo.verify|verify} messages. + * @param message BackendBackendOrchestrationInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IBackendBackendOrchestrationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackendBackendOrchestrationInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackendBackendOrchestrationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.BackendBackendOrchestrationInfo; + + /** + * Decodes a BackendBackendOrchestrationInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackendBackendOrchestrationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.BackendBackendOrchestrationInfo; + + /** + * Verifies a BackendBackendOrchestrationInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BackendBackendOrchestrationInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackendBackendOrchestrationInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.BackendBackendOrchestrationInfo; + + /** + * Creates a plain object from a BackendBackendOrchestrationInfo message. Also converts values to other types if specified. + * @param message BackendBackendOrchestrationInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.BackendBackendOrchestrationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackendBackendOrchestrationInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BackendBackendOrchestrationInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a BackendBucket. */ interface IBackendBucket { @@ -259674,6 +259777,9 @@ export namespace google { /** BackendService networkPassThroughLbTrafficPolicy */ networkPassThroughLbTrafficPolicy?: (google.cloud.compute.v1beta.IBackendServiceNetworkPassThroughLbTrafficPolicy|null); + /** BackendService orchestrationInfo */ + orchestrationInfo?: (google.cloud.compute.v1beta.IBackendServiceOrchestrationInfo|null); + /** BackendService outlierDetection */ outlierDetection?: (google.cloud.compute.v1beta.IOutlierDetection|null); @@ -259840,6 +259946,9 @@ export namespace google { /** BackendService networkPassThroughLbTrafficPolicy. */ public networkPassThroughLbTrafficPolicy?: (google.cloud.compute.v1beta.IBackendServiceNetworkPassThroughLbTrafficPolicy|null); + /** BackendService orchestrationInfo. */ + public orchestrationInfo?: (google.cloud.compute.v1beta.IBackendServiceOrchestrationInfo|null); + /** BackendService outlierDetection. */ public outlierDetection?: (google.cloud.compute.v1beta.IOutlierDetection|null); @@ -262656,6 +262765,103 @@ export namespace google { } } + /** Properties of a BackendServiceOrchestrationInfo. */ + interface IBackendServiceOrchestrationInfo { + + /** BackendServiceOrchestrationInfo resourceUri */ + resourceUri?: (string|null); + } + + /** Represents a BackendServiceOrchestrationInfo. */ + class BackendServiceOrchestrationInfo implements IBackendServiceOrchestrationInfo { + + /** + * Constructs a new BackendServiceOrchestrationInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IBackendServiceOrchestrationInfo); + + /** BackendServiceOrchestrationInfo resourceUri. */ + public resourceUri?: (string|null); + + /** + * Creates a new BackendServiceOrchestrationInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns BackendServiceOrchestrationInfo instance + */ + public static create(properties?: google.cloud.compute.v1beta.IBackendServiceOrchestrationInfo): google.cloud.compute.v1beta.BackendServiceOrchestrationInfo; + + /** + * Encodes the specified BackendServiceOrchestrationInfo message. Does not implicitly {@link google.cloud.compute.v1beta.BackendServiceOrchestrationInfo.verify|verify} messages. + * @param message BackendServiceOrchestrationInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IBackendServiceOrchestrationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackendServiceOrchestrationInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.BackendServiceOrchestrationInfo.verify|verify} messages. + * @param message BackendServiceOrchestrationInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IBackendServiceOrchestrationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackendServiceOrchestrationInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackendServiceOrchestrationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.BackendServiceOrchestrationInfo; + + /** + * Decodes a BackendServiceOrchestrationInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackendServiceOrchestrationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.BackendServiceOrchestrationInfo; + + /** + * Verifies a BackendServiceOrchestrationInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BackendServiceOrchestrationInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackendServiceOrchestrationInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.BackendServiceOrchestrationInfo; + + /** + * Creates a plain object from a BackendServiceOrchestrationInfo message. Also converts values to other types if specified. + * @param message BackendServiceOrchestrationInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.BackendServiceOrchestrationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackendServiceOrchestrationInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BackendServiceOrchestrationInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a BackendServiceParams. */ interface IBackendServiceParams { @@ -264469,6 +264675,12 @@ export namespace google { /** Properties of a BulkInsertDiskResource. */ interface IBulkInsertDiskResource { + /** BulkInsertDiskResource instantSnapshotGroupParameters */ + instantSnapshotGroupParameters?: (google.cloud.compute.v1beta.IInstantSnapshotGroupParameters|null); + + /** BulkInsertDiskResource snapshotGroupParameters */ + snapshotGroupParameters?: (google.cloud.compute.v1beta.ISnapshotGroupParameters|null); + /** BulkInsertDiskResource sourceConsistencyGroupPolicy */ sourceConsistencyGroupPolicy?: (string|null); } @@ -264482,6 +264694,12 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1beta.IBulkInsertDiskResource); + /** BulkInsertDiskResource instantSnapshotGroupParameters. */ + public instantSnapshotGroupParameters?: (google.cloud.compute.v1beta.IInstantSnapshotGroupParameters|null); + + /** BulkInsertDiskResource snapshotGroupParameters. */ + public snapshotGroupParameters?: (google.cloud.compute.v1beta.ISnapshotGroupParameters|null); + /** BulkInsertDiskResource sourceConsistencyGroupPolicy. */ public sourceConsistencyGroupPolicy?: (string|null); @@ -265949,6 +266167,404 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a CachePolicy. */ + interface ICachePolicy { + + /** CachePolicy cacheBypassRequestHeaderNames */ + cacheBypassRequestHeaderNames?: (string[]|null); + + /** CachePolicy cacheKeyPolicy */ + cacheKeyPolicy?: (google.cloud.compute.v1beta.ICachePolicyCacheKeyPolicy|null); + + /** CachePolicy cacheMode */ + cacheMode?: (string|null); + + /** CachePolicy clientTtl */ + clientTtl?: (google.cloud.compute.v1beta.IDuration|null); + + /** CachePolicy defaultTtl */ + defaultTtl?: (google.cloud.compute.v1beta.IDuration|null); + + /** CachePolicy maxTtl */ + maxTtl?: (google.cloud.compute.v1beta.IDuration|null); + + /** CachePolicy negativeCaching */ + negativeCaching?: (boolean|null); + + /** CachePolicy negativeCachingPolicy */ + negativeCachingPolicy?: (google.cloud.compute.v1beta.ICachePolicyNegativeCachingPolicy[]|null); + + /** CachePolicy requestCoalescing */ + requestCoalescing?: (boolean|null); + + /** CachePolicy serveWhileStale */ + serveWhileStale?: (google.cloud.compute.v1beta.IDuration|null); + } + + /** Represents a CachePolicy. */ + class CachePolicy implements ICachePolicy { + + /** + * Constructs a new CachePolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ICachePolicy); + + /** CachePolicy cacheBypassRequestHeaderNames. */ + public cacheBypassRequestHeaderNames: string[]; + + /** CachePolicy cacheKeyPolicy. */ + public cacheKeyPolicy?: (google.cloud.compute.v1beta.ICachePolicyCacheKeyPolicy|null); + + /** CachePolicy cacheMode. */ + public cacheMode?: (string|null); + + /** CachePolicy clientTtl. */ + public clientTtl?: (google.cloud.compute.v1beta.IDuration|null); + + /** CachePolicy defaultTtl. */ + public defaultTtl?: (google.cloud.compute.v1beta.IDuration|null); + + /** CachePolicy maxTtl. */ + public maxTtl?: (google.cloud.compute.v1beta.IDuration|null); + + /** CachePolicy negativeCaching. */ + public negativeCaching?: (boolean|null); + + /** CachePolicy negativeCachingPolicy. */ + public negativeCachingPolicy: google.cloud.compute.v1beta.ICachePolicyNegativeCachingPolicy[]; + + /** CachePolicy requestCoalescing. */ + public requestCoalescing?: (boolean|null); + + /** CachePolicy serveWhileStale. */ + public serveWhileStale?: (google.cloud.compute.v1beta.IDuration|null); + + /** + * Creates a new CachePolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns CachePolicy instance + */ + public static create(properties?: google.cloud.compute.v1beta.ICachePolicy): google.cloud.compute.v1beta.CachePolicy; + + /** + * Encodes the specified CachePolicy message. Does not implicitly {@link google.cloud.compute.v1beta.CachePolicy.verify|verify} messages. + * @param message CachePolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ICachePolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CachePolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CachePolicy.verify|verify} messages. + * @param message CachePolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ICachePolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CachePolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CachePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.CachePolicy; + + /** + * Decodes a CachePolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CachePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.CachePolicy; + + /** + * Verifies a CachePolicy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CachePolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CachePolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.CachePolicy; + + /** + * Creates a plain object from a CachePolicy message. Also converts values to other types if specified. + * @param message CachePolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.CachePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CachePolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CachePolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace CachePolicy { + + /** CacheMode enum. */ + enum CacheMode { + UNDEFINED_CACHE_MODE = 0, + CACHE_ALL_STATIC = 355027945, + FORCE_CACHE_ALL = 486026928, + USE_ORIGIN_HEADERS = 55380261 + } + } + + /** Properties of a CachePolicyCacheKeyPolicy. */ + interface ICachePolicyCacheKeyPolicy { + + /** CachePolicyCacheKeyPolicy excludedQueryParameters */ + excludedQueryParameters?: (string[]|null); + + /** CachePolicyCacheKeyPolicy includeHost */ + includeHost?: (boolean|null); + + /** CachePolicyCacheKeyPolicy includeProtocol */ + includeProtocol?: (boolean|null); + + /** CachePolicyCacheKeyPolicy includeQueryString */ + includeQueryString?: (boolean|null); + + /** CachePolicyCacheKeyPolicy includedCookieNames */ + includedCookieNames?: (string[]|null); + + /** CachePolicyCacheKeyPolicy includedHeaderNames */ + includedHeaderNames?: (string[]|null); + + /** CachePolicyCacheKeyPolicy includedQueryParameters */ + includedQueryParameters?: (string[]|null); + } + + /** Represents a CachePolicyCacheKeyPolicy. */ + class CachePolicyCacheKeyPolicy implements ICachePolicyCacheKeyPolicy { + + /** + * Constructs a new CachePolicyCacheKeyPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ICachePolicyCacheKeyPolicy); + + /** CachePolicyCacheKeyPolicy excludedQueryParameters. */ + public excludedQueryParameters: string[]; + + /** CachePolicyCacheKeyPolicy includeHost. */ + public includeHost?: (boolean|null); + + /** CachePolicyCacheKeyPolicy includeProtocol. */ + public includeProtocol?: (boolean|null); + + /** CachePolicyCacheKeyPolicy includeQueryString. */ + public includeQueryString?: (boolean|null); + + /** CachePolicyCacheKeyPolicy includedCookieNames. */ + public includedCookieNames: string[]; + + /** CachePolicyCacheKeyPolicy includedHeaderNames. */ + public includedHeaderNames: string[]; + + /** CachePolicyCacheKeyPolicy includedQueryParameters. */ + public includedQueryParameters: string[]; + + /** + * Creates a new CachePolicyCacheKeyPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns CachePolicyCacheKeyPolicy instance + */ + public static create(properties?: google.cloud.compute.v1beta.ICachePolicyCacheKeyPolicy): google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy; + + /** + * Encodes the specified CachePolicyCacheKeyPolicy message. Does not implicitly {@link google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy.verify|verify} messages. + * @param message CachePolicyCacheKeyPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ICachePolicyCacheKeyPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CachePolicyCacheKeyPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy.verify|verify} messages. + * @param message CachePolicyCacheKeyPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ICachePolicyCacheKeyPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CachePolicyCacheKeyPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CachePolicyCacheKeyPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy; + + /** + * Decodes a CachePolicyCacheKeyPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CachePolicyCacheKeyPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy; + + /** + * Verifies a CachePolicyCacheKeyPolicy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CachePolicyCacheKeyPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CachePolicyCacheKeyPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy; + + /** + * Creates a plain object from a CachePolicyCacheKeyPolicy message. Also converts values to other types if specified. + * @param message CachePolicyCacheKeyPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CachePolicyCacheKeyPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CachePolicyCacheKeyPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CachePolicyNegativeCachingPolicy. */ + interface ICachePolicyNegativeCachingPolicy { + + /** CachePolicyNegativeCachingPolicy code */ + code?: (number|null); + + /** CachePolicyNegativeCachingPolicy ttl */ + ttl?: (google.cloud.compute.v1beta.IDuration|null); + } + + /** Represents a CachePolicyNegativeCachingPolicy. */ + class CachePolicyNegativeCachingPolicy implements ICachePolicyNegativeCachingPolicy { + + /** + * Constructs a new CachePolicyNegativeCachingPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ICachePolicyNegativeCachingPolicy); + + /** CachePolicyNegativeCachingPolicy code. */ + public code?: (number|null); + + /** CachePolicyNegativeCachingPolicy ttl. */ + public ttl?: (google.cloud.compute.v1beta.IDuration|null); + + /** + * Creates a new CachePolicyNegativeCachingPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns CachePolicyNegativeCachingPolicy instance + */ + public static create(properties?: google.cloud.compute.v1beta.ICachePolicyNegativeCachingPolicy): google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy; + + /** + * Encodes the specified CachePolicyNegativeCachingPolicy message. Does not implicitly {@link google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy.verify|verify} messages. + * @param message CachePolicyNegativeCachingPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ICachePolicyNegativeCachingPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CachePolicyNegativeCachingPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy.verify|verify} messages. + * @param message CachePolicyNegativeCachingPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ICachePolicyNegativeCachingPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CachePolicyNegativeCachingPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CachePolicyNegativeCachingPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy; + + /** + * Decodes a CachePolicyNegativeCachingPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CachePolicyNegativeCachingPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy; + + /** + * Verifies a CachePolicyNegativeCachingPolicy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CachePolicyNegativeCachingPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CachePolicyNegativeCachingPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy; + + /** + * Creates a plain object from a CachePolicyNegativeCachingPolicy message. Also converts values to other types if specified. + * @param message CachePolicyNegativeCachingPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CachePolicyNegativeCachingPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CachePolicyNegativeCachingPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a CalendarModeAdviceRequest. */ interface ICalendarModeAdviceRequest { @@ -267687,6 +268303,7 @@ export namespace google { GENERAL_PURPOSE_N2 = 301912156, GENERAL_PURPOSE_N2D = 232471400, GENERAL_PURPOSE_N4 = 301912158, + GENERAL_PURPOSE_N4A = 232471459, GENERAL_PURPOSE_N4D = 232471462, GENERAL_PURPOSE_T2D = 232477166, GRAPHICS_OPTIMIZED = 68500563, @@ -268804,6 +269421,127 @@ export namespace google { } } + /** Properties of a ConfigureAcceleratorTopologiesInstanceGroupManagerRequest. */ + interface IConfigureAcceleratorTopologiesInstanceGroupManagerRequest { + + /** ConfigureAcceleratorTopologiesInstanceGroupManagerRequest instanceGroupManager */ + instanceGroupManager?: (string|null); + + /** ConfigureAcceleratorTopologiesInstanceGroupManagerRequest instanceGroupManagersConfigureAcceleratorTopologiesRequestResource */ + instanceGroupManagersConfigureAcceleratorTopologiesRequestResource?: (google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequest|null); + + /** ConfigureAcceleratorTopologiesInstanceGroupManagerRequest project */ + project?: (string|null); + + /** ConfigureAcceleratorTopologiesInstanceGroupManagerRequest requestId */ + requestId?: (string|null); + + /** ConfigureAcceleratorTopologiesInstanceGroupManagerRequest zone */ + zone?: (string|null); + } + + /** Represents a ConfigureAcceleratorTopologiesInstanceGroupManagerRequest. */ + class ConfigureAcceleratorTopologiesInstanceGroupManagerRequest implements IConfigureAcceleratorTopologiesInstanceGroupManagerRequest { + + /** + * Constructs a new ConfigureAcceleratorTopologiesInstanceGroupManagerRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest); + + /** ConfigureAcceleratorTopologiesInstanceGroupManagerRequest instanceGroupManager. */ + public instanceGroupManager: string; + + /** ConfigureAcceleratorTopologiesInstanceGroupManagerRequest instanceGroupManagersConfigureAcceleratorTopologiesRequestResource. */ + public instanceGroupManagersConfigureAcceleratorTopologiesRequestResource?: (google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequest|null); + + /** ConfigureAcceleratorTopologiesInstanceGroupManagerRequest project. */ + public project: string; + + /** ConfigureAcceleratorTopologiesInstanceGroupManagerRequest requestId. */ + public requestId?: (string|null); + + /** ConfigureAcceleratorTopologiesInstanceGroupManagerRequest zone. */ + public zone: string; + + /** + * Creates a new ConfigureAcceleratorTopologiesInstanceGroupManagerRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ConfigureAcceleratorTopologiesInstanceGroupManagerRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest): google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest; + + /** + * Encodes the specified ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.verify|verify} messages. + * @param message ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.verify|verify} messages. + * @param message ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest; + + /** + * Decodes a ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest; + + /** + * Verifies a ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest; + + /** + * Creates a plain object from a ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message. Also converts values to other types if specified. + * @param message ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConfigureAcceleratorTopologiesInstanceGroupManagerRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ConnectionDraining. */ interface IConnectionDraining { @@ -274210,6 +274948,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteInstantSnapshotGroupRequest. */ + interface IDeleteInstantSnapshotGroupRequest { + + /** DeleteInstantSnapshotGroupRequest instantSnapshotGroup */ + instantSnapshotGroup?: (string|null); + + /** DeleteInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** DeleteInstantSnapshotGroupRequest requestId */ + requestId?: (string|null); + + /** DeleteInstantSnapshotGroupRequest zone */ + zone?: (string|null); + } + + /** Represents a DeleteInstantSnapshotGroupRequest. */ + class DeleteInstantSnapshotGroupRequest implements IDeleteInstantSnapshotGroupRequest { + + /** + * Constructs a new DeleteInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest); + + /** DeleteInstantSnapshotGroupRequest instantSnapshotGroup. */ + public instantSnapshotGroup: string; + + /** DeleteInstantSnapshotGroupRequest project. */ + public project: string; + + /** DeleteInstantSnapshotGroupRequest requestId. */ + public requestId?: (string|null); + + /** DeleteInstantSnapshotGroupRequest zone. */ + public zone: string; + + /** + * Creates a new DeleteInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest): google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest; + + /** + * Encodes the specified DeleteInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest.verify|verify} messages. + * @param message DeleteInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest.verify|verify} messages. + * @param message DeleteInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest; + + /** + * Decodes a DeleteInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest; + + /** + * Verifies a DeleteInstantSnapshotGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a DeleteInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message DeleteInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DeleteInstantSnapshotRequest. */ interface IDeleteInstantSnapshotRequest { @@ -274985,6 +275838,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteNamedSetRouterRequest. */ + interface IDeleteNamedSetRouterRequest { + + /** DeleteNamedSetRouterRequest namedSet */ + namedSet?: (string|null); + + /** DeleteNamedSetRouterRequest project */ + project?: (string|null); + + /** DeleteNamedSetRouterRequest region */ + region?: (string|null); + + /** DeleteNamedSetRouterRequest requestId */ + requestId?: (string|null); + + /** DeleteNamedSetRouterRequest router */ + router?: (string|null); + } + + /** Represents a DeleteNamedSetRouterRequest. */ + class DeleteNamedSetRouterRequest implements IDeleteNamedSetRouterRequest { + + /** + * Constructs a new DeleteNamedSetRouterRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest); + + /** DeleteNamedSetRouterRequest namedSet. */ + public namedSet?: (string|null); + + /** DeleteNamedSetRouterRequest project. */ + public project: string; + + /** DeleteNamedSetRouterRequest region. */ + public region: string; + + /** DeleteNamedSetRouterRequest requestId. */ + public requestId?: (string|null); + + /** DeleteNamedSetRouterRequest router. */ + public router: string; + + /** + * Creates a new DeleteNamedSetRouterRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteNamedSetRouterRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest): google.cloud.compute.v1beta.DeleteNamedSetRouterRequest; + + /** + * Encodes the specified DeleteNamedSetRouterRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteNamedSetRouterRequest.verify|verify} messages. + * @param message DeleteNamedSetRouterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteNamedSetRouterRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteNamedSetRouterRequest.verify|verify} messages. + * @param message DeleteNamedSetRouterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteNamedSetRouterRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteNamedSetRouterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.DeleteNamedSetRouterRequest; + + /** + * Decodes a DeleteNamedSetRouterRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteNamedSetRouterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.DeleteNamedSetRouterRequest; + + /** + * Verifies a DeleteNamedSetRouterRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteNamedSetRouterRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteNamedSetRouterRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.DeleteNamedSetRouterRequest; + + /** + * Creates a plain object from a DeleteNamedSetRouterRequest message. Also converts values to other types if specified. + * @param message DeleteNamedSetRouterRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.DeleteNamedSetRouterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteNamedSetRouterRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteNamedSetRouterRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DeleteNetworkAttachmentRequest. */ interface IDeleteNetworkAttachmentRequest { @@ -278084,6 +279058,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteRegionInstantSnapshotGroupRequest. */ + interface IDeleteRegionInstantSnapshotGroupRequest { + + /** DeleteRegionInstantSnapshotGroupRequest instantSnapshotGroup */ + instantSnapshotGroup?: (string|null); + + /** DeleteRegionInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** DeleteRegionInstantSnapshotGroupRequest region */ + region?: (string|null); + + /** DeleteRegionInstantSnapshotGroupRequest requestId */ + requestId?: (string|null); + } + + /** Represents a DeleteRegionInstantSnapshotGroupRequest. */ + class DeleteRegionInstantSnapshotGroupRequest implements IDeleteRegionInstantSnapshotGroupRequest { + + /** + * Constructs a new DeleteRegionInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest); + + /** DeleteRegionInstantSnapshotGroupRequest instantSnapshotGroup. */ + public instantSnapshotGroup: string; + + /** DeleteRegionInstantSnapshotGroupRequest project. */ + public project: string; + + /** DeleteRegionInstantSnapshotGroupRequest region. */ + public region: string; + + /** DeleteRegionInstantSnapshotGroupRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new DeleteRegionInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteRegionInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest): google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest; + + /** + * Encodes the specified DeleteRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message DeleteRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message DeleteRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteRegionInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest; + + /** + * Decodes a DeleteRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest; + + /** + * Verifies a DeleteRegionInstantSnapshotGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteRegionInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a DeleteRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message DeleteRegionInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteRegionInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteRegionInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DeleteRegionInstantSnapshotRequest. */ interface IDeleteRegionInstantSnapshotRequest { @@ -281141,6 +282230,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteSnapshotGroupRequest. */ + interface IDeleteSnapshotGroupRequest { + + /** DeleteSnapshotGroupRequest project */ + project?: (string|null); + + /** DeleteSnapshotGroupRequest requestId */ + requestId?: (string|null); + + /** DeleteSnapshotGroupRequest snapshotGroup */ + snapshotGroup?: (string|null); + } + + /** Represents a DeleteSnapshotGroupRequest. */ + class DeleteSnapshotGroupRequest implements IDeleteSnapshotGroupRequest { + + /** + * Constructs a new DeleteSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest); + + /** DeleteSnapshotGroupRequest project. */ + public project: string; + + /** DeleteSnapshotGroupRequest requestId. */ + public requestId?: (string|null); + + /** DeleteSnapshotGroupRequest snapshotGroup. */ + public snapshotGroup: string; + + /** + * Creates a new DeleteSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest): google.cloud.compute.v1beta.DeleteSnapshotGroupRequest; + + /** + * Encodes the specified DeleteSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteSnapshotGroupRequest.verify|verify} messages. + * @param message DeleteSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteSnapshotGroupRequest.verify|verify} messages. + * @param message DeleteSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.DeleteSnapshotGroupRequest; + + /** + * Decodes a DeleteSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.DeleteSnapshotGroupRequest; + + /** + * Verifies a DeleteSnapshotGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.DeleteSnapshotGroupRequest; + + /** + * Creates a plain object from a DeleteSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message DeleteSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.DeleteSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DeleteSnapshotRequest. */ interface IDeleteSnapshotRequest { @@ -288890,6 +290088,9 @@ export namespace google { /** ExternalVpnGateway name */ name?: (string|null); + /** ExternalVpnGateway params */ + params?: (google.cloud.compute.v1beta.IExternalVpnGatewayParams|null); + /** ExternalVpnGateway redundancyType */ redundancyType?: (string|null); @@ -288930,6 +290131,9 @@ export namespace google { /** ExternalVpnGateway name. */ public name?: (string|null); + /** ExternalVpnGateway params. */ + public params?: (google.cloud.compute.v1beta.IExternalVpnGatewayParams|null); + /** ExternalVpnGateway redundancyType. */ public redundancyType?: (string|null); @@ -289267,6 +290471,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an ExternalVpnGatewayParams. */ + interface IExternalVpnGatewayParams { + + /** ExternalVpnGatewayParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents an ExternalVpnGatewayParams. */ + class ExternalVpnGatewayParams implements IExternalVpnGatewayParams { + + /** + * Constructs a new ExternalVpnGatewayParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IExternalVpnGatewayParams); + + /** ExternalVpnGatewayParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new ExternalVpnGatewayParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ExternalVpnGatewayParams instance + */ + public static create(properties?: google.cloud.compute.v1beta.IExternalVpnGatewayParams): google.cloud.compute.v1beta.ExternalVpnGatewayParams; + + /** + * Encodes the specified ExternalVpnGatewayParams message. Does not implicitly {@link google.cloud.compute.v1beta.ExternalVpnGatewayParams.verify|verify} messages. + * @param message ExternalVpnGatewayParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IExternalVpnGatewayParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExternalVpnGatewayParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ExternalVpnGatewayParams.verify|verify} messages. + * @param message ExternalVpnGatewayParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IExternalVpnGatewayParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExternalVpnGatewayParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExternalVpnGatewayParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ExternalVpnGatewayParams; + + /** + * Decodes an ExternalVpnGatewayParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExternalVpnGatewayParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ExternalVpnGatewayParams; + + /** + * Verifies an ExternalVpnGatewayParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExternalVpnGatewayParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExternalVpnGatewayParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ExternalVpnGatewayParams; + + /** + * Creates a plain object from an ExternalVpnGatewayParams message. Also converts values to other types if specified. + * @param message ExternalVpnGatewayParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ExternalVpnGatewayParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExternalVpnGatewayParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExternalVpnGatewayParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a FileContentBuffer. */ interface IFileContentBuffer { @@ -290362,7 +291663,9 @@ export namespace google { /** PolicyType enum. */ enum PolicyType { UNDEFINED_POLICY_TYPE = 0, + RDMA_FALCON_POLICY = 66315047, RDMA_ROCE_POLICY = 148757145, + ULL_POLICY = 100494364, VPC_POLICY = 74319208 } } @@ -292474,6 +293777,9 @@ export namespace google { /** Properties of a FutureReservation. */ interface IFutureReservation { + /** FutureReservation advancedDeploymentControl */ + advancedDeploymentControl?: (google.cloud.compute.v1beta.IReservationAdvancedDeploymentControl|null); + /** FutureReservation aggregateReservation */ aggregateReservation?: (google.cloud.compute.v1beta.IAllocationAggregateReservation|null); @@ -292562,6 +293868,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1beta.IFutureReservation); + /** FutureReservation advancedDeploymentControl. */ + public advancedDeploymentControl?: (google.cloud.compute.v1beta.IReservationAdvancedDeploymentControl|null); + /** FutureReservation aggregateReservation. */ public aggregateReservation?: (google.cloud.compute.v1beta.IAllocationAggregateReservation|null); @@ -300222,6 +301531,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetIamPolicyInstantSnapshotGroupRequest. */ + interface IGetIamPolicyInstantSnapshotGroupRequest { + + /** GetIamPolicyInstantSnapshotGroupRequest optionsRequestedPolicyVersion */ + optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** GetIamPolicyInstantSnapshotGroupRequest resource */ + resource?: (string|null); + + /** GetIamPolicyInstantSnapshotGroupRequest zone */ + zone?: (string|null); + } + + /** Represents a GetIamPolicyInstantSnapshotGroupRequest. */ + class GetIamPolicyInstantSnapshotGroupRequest implements IGetIamPolicyInstantSnapshotGroupRequest { + + /** + * Constructs a new GetIamPolicyInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest); + + /** GetIamPolicyInstantSnapshotGroupRequest optionsRequestedPolicyVersion. */ + public optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyInstantSnapshotGroupRequest project. */ + public project: string; + + /** GetIamPolicyInstantSnapshotGroupRequest resource. */ + public resource: string; + + /** GetIamPolicyInstantSnapshotGroupRequest zone. */ + public zone: string; + + /** + * Creates a new GetIamPolicyInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIamPolicyInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest): google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest; + + /** + * Encodes the specified GetIamPolicyInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest.verify|verify} messages. + * @param message GetIamPolicyInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetIamPolicyInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest.verify|verify} messages. + * @param message GetIamPolicyInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetIamPolicyInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetIamPolicyInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest; + + /** + * Decodes a GetIamPolicyInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetIamPolicyInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest; + + /** + * Verifies a GetIamPolicyInstantSnapshotGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetIamPolicyInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIamPolicyInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a GetIamPolicyInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message GetIamPolicyInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetIamPolicyInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetIamPolicyInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetIamPolicyInstantSnapshotRequest. */ interface IGetIamPolicyInstantSnapshotRequest { @@ -301572,6 +302996,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetIamPolicyRegionInstantSnapshotGroupRequest. */ + interface IGetIamPolicyRegionInstantSnapshotGroupRequest { + + /** GetIamPolicyRegionInstantSnapshotGroupRequest optionsRequestedPolicyVersion */ + optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyRegionInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** GetIamPolicyRegionInstantSnapshotGroupRequest region */ + region?: (string|null); + + /** GetIamPolicyRegionInstantSnapshotGroupRequest resource */ + resource?: (string|null); + } + + /** Represents a GetIamPolicyRegionInstantSnapshotGroupRequest. */ + class GetIamPolicyRegionInstantSnapshotGroupRequest implements IGetIamPolicyRegionInstantSnapshotGroupRequest { + + /** + * Constructs a new GetIamPolicyRegionInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest); + + /** GetIamPolicyRegionInstantSnapshotGroupRequest optionsRequestedPolicyVersion. */ + public optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyRegionInstantSnapshotGroupRequest project. */ + public project: string; + + /** GetIamPolicyRegionInstantSnapshotGroupRequest region. */ + public region: string; + + /** GetIamPolicyRegionInstantSnapshotGroupRequest resource. */ + public resource: string; + + /** + * Creates a new GetIamPolicyRegionInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIamPolicyRegionInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest): google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest; + + /** + * Encodes the specified GetIamPolicyRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message GetIamPolicyRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetIamPolicyRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message GetIamPolicyRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetIamPolicyRegionInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetIamPolicyRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest; + + /** + * Decodes a GetIamPolicyRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetIamPolicyRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest; + + /** + * Verifies a GetIamPolicyRegionInstantSnapshotGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetIamPolicyRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIamPolicyRegionInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a GetIamPolicyRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message GetIamPolicyRegionInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetIamPolicyRegionInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetIamPolicyRegionInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetIamPolicyRegionInstantSnapshotRequest. */ interface IGetIamPolicyRegionInstantSnapshotRequest { @@ -302504,6 +304043,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetIamPolicySnapshotGroupRequest. */ + interface IGetIamPolicySnapshotGroupRequest { + + /** GetIamPolicySnapshotGroupRequest optionsRequestedPolicyVersion */ + optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicySnapshotGroupRequest project */ + project?: (string|null); + + /** GetIamPolicySnapshotGroupRequest resource */ + resource?: (string|null); + } + + /** Represents a GetIamPolicySnapshotGroupRequest. */ + class GetIamPolicySnapshotGroupRequest implements IGetIamPolicySnapshotGroupRequest { + + /** + * Constructs a new GetIamPolicySnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest); + + /** GetIamPolicySnapshotGroupRequest optionsRequestedPolicyVersion. */ + public optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicySnapshotGroupRequest project. */ + public project: string; + + /** GetIamPolicySnapshotGroupRequest resource. */ + public resource: string; + + /** + * Creates a new GetIamPolicySnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIamPolicySnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest): google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest; + + /** + * Encodes the specified GetIamPolicySnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest.verify|verify} messages. + * @param message GetIamPolicySnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetIamPolicySnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest.verify|verify} messages. + * @param message GetIamPolicySnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetIamPolicySnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetIamPolicySnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest; + + /** + * Decodes a GetIamPolicySnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetIamPolicySnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest; + + /** + * Verifies a GetIamPolicySnapshotGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetIamPolicySnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIamPolicySnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest; + + /** + * Creates a plain object from a GetIamPolicySnapshotGroupRequest message. Also converts values to other types if specified. + * @param message GetIamPolicySnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetIamPolicySnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetIamPolicySnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetIamPolicySnapshotRequest. */ interface IGetIamPolicySnapshotRequest { @@ -303737,6 +305385,115 @@ export namespace google { } } + /** Properties of a GetInstantSnapshotGroupRequest. */ + interface IGetInstantSnapshotGroupRequest { + + /** GetInstantSnapshotGroupRequest instantSnapshotGroup */ + instantSnapshotGroup?: (string|null); + + /** GetInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** GetInstantSnapshotGroupRequest zone */ + zone?: (string|null); + } + + /** Represents a GetInstantSnapshotGroupRequest. */ + class GetInstantSnapshotGroupRequest implements IGetInstantSnapshotGroupRequest { + + /** + * Constructs a new GetInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest); + + /** GetInstantSnapshotGroupRequest instantSnapshotGroup. */ + public instantSnapshotGroup: string; + + /** GetInstantSnapshotGroupRequest project. */ + public project: string; + + /** GetInstantSnapshotGroupRequest zone. */ + public zone: string; + + /** + * Creates a new GetInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest): google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest; + + /** + * Encodes the specified GetInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest.verify|verify} messages. + * @param message GetInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest.verify|verify} messages. + * @param message GetInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest; + + /** + * Decodes a GetInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest; + + /** + * Verifies a GetInstantSnapshotGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a GetInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message GetInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetInstantSnapshotRequest. */ interface IGetInstantSnapshotRequest { @@ -304991,6 +306748,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetNamedSetRouterRequest. */ + interface IGetNamedSetRouterRequest { + + /** GetNamedSetRouterRequest namedSet */ + namedSet?: (string|null); + + /** GetNamedSetRouterRequest project */ + project?: (string|null); + + /** GetNamedSetRouterRequest region */ + region?: (string|null); + + /** GetNamedSetRouterRequest router */ + router?: (string|null); + } + + /** Represents a GetNamedSetRouterRequest. */ + class GetNamedSetRouterRequest implements IGetNamedSetRouterRequest { + + /** + * Constructs a new GetNamedSetRouterRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetNamedSetRouterRequest); + + /** GetNamedSetRouterRequest namedSet. */ + public namedSet?: (string|null); + + /** GetNamedSetRouterRequest project. */ + public project: string; + + /** GetNamedSetRouterRequest region. */ + public region: string; + + /** GetNamedSetRouterRequest router. */ + public router: string; + + /** + * Creates a new GetNamedSetRouterRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetNamedSetRouterRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetNamedSetRouterRequest): google.cloud.compute.v1beta.GetNamedSetRouterRequest; + + /** + * Encodes the specified GetNamedSetRouterRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetNamedSetRouterRequest.verify|verify} messages. + * @param message GetNamedSetRouterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetNamedSetRouterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetNamedSetRouterRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetNamedSetRouterRequest.verify|verify} messages. + * @param message GetNamedSetRouterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetNamedSetRouterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetNamedSetRouterRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetNamedSetRouterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GetNamedSetRouterRequest; + + /** + * Decodes a GetNamedSetRouterRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetNamedSetRouterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GetNamedSetRouterRequest; + + /** + * Verifies a GetNamedSetRouterRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetNamedSetRouterRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetNamedSetRouterRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetNamedSetRouterRequest; + + /** + * Creates a plain object from a GetNamedSetRouterRequest message. Also converts values to other types if specified. + * @param message GetNamedSetRouterRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetNamedSetRouterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetNamedSetRouterRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetNamedSetRouterRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetNatIpInfoRouterRequest. */ interface IGetNatIpInfoRouterRequest { @@ -309126,6 +310998,115 @@ export namespace google { } } + /** Properties of a GetRegionInstantSnapshotGroupRequest. */ + interface IGetRegionInstantSnapshotGroupRequest { + + /** GetRegionInstantSnapshotGroupRequest instantSnapshotGroup */ + instantSnapshotGroup?: (string|null); + + /** GetRegionInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** GetRegionInstantSnapshotGroupRequest region */ + region?: (string|null); + } + + /** Represents a GetRegionInstantSnapshotGroupRequest. */ + class GetRegionInstantSnapshotGroupRequest implements IGetRegionInstantSnapshotGroupRequest { + + /** + * Constructs a new GetRegionInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest); + + /** GetRegionInstantSnapshotGroupRequest instantSnapshotGroup. */ + public instantSnapshotGroup: string; + + /** GetRegionInstantSnapshotGroupRequest project. */ + public project: string; + + /** GetRegionInstantSnapshotGroupRequest region. */ + public region: string; + + /** + * Creates a new GetRegionInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRegionInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest): google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest; + + /** + * Encodes the specified GetRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message GetRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message GetRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRegionInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest; + + /** + * Decodes a GetRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest; + + /** + * Verifies a GetRegionInstantSnapshotGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRegionInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a GetRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message GetRegionInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRegionInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRegionInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetRegionInstantSnapshotRequest. */ interface IGetRegionInstantSnapshotRequest { @@ -311323,6 +313304,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetReservationSlotRequest. */ + interface IGetReservationSlotRequest { + + /** GetReservationSlotRequest parentName */ + parentName?: (string|null); + + /** GetReservationSlotRequest project */ + project?: (string|null); + + /** GetReservationSlotRequest reservationSlot */ + reservationSlot?: (string|null); + + /** GetReservationSlotRequest zone */ + zone?: (string|null); + } + + /** Represents a GetReservationSlotRequest. */ + class GetReservationSlotRequest implements IGetReservationSlotRequest { + + /** + * Constructs a new GetReservationSlotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetReservationSlotRequest); + + /** GetReservationSlotRequest parentName. */ + public parentName: string; + + /** GetReservationSlotRequest project. */ + public project: string; + + /** GetReservationSlotRequest reservationSlot. */ + public reservationSlot: string; + + /** GetReservationSlotRequest zone. */ + public zone: string; + + /** + * Creates a new GetReservationSlotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetReservationSlotRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetReservationSlotRequest): google.cloud.compute.v1beta.GetReservationSlotRequest; + + /** + * Encodes the specified GetReservationSlotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetReservationSlotRequest.verify|verify} messages. + * @param message GetReservationSlotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetReservationSlotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetReservationSlotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetReservationSlotRequest.verify|verify} messages. + * @param message GetReservationSlotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetReservationSlotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetReservationSlotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetReservationSlotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GetReservationSlotRequest; + + /** + * Decodes a GetReservationSlotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetReservationSlotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GetReservationSlotRequest; + + /** + * Verifies a GetReservationSlotRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetReservationSlotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetReservationSlotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetReservationSlotRequest; + + /** + * Creates a plain object from a GetReservationSlotRequest message. Also converts values to other types if specified. + * @param message GetReservationSlotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetReservationSlotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetReservationSlotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetReservationSlotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetReservationSubBlockRequest. */ interface IGetReservationSubBlockRequest { @@ -313526,6 +315622,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetSnapshotGroupRequest. */ + interface IGetSnapshotGroupRequest { + + /** GetSnapshotGroupRequest project */ + project?: (string|null); + + /** GetSnapshotGroupRequest snapshotGroup */ + snapshotGroup?: (string|null); + } + + /** Represents a GetSnapshotGroupRequest. */ + class GetSnapshotGroupRequest implements IGetSnapshotGroupRequest { + + /** + * Constructs a new GetSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetSnapshotGroupRequest); + + /** GetSnapshotGroupRequest project. */ + public project: string; + + /** GetSnapshotGroupRequest snapshotGroup. */ + public snapshotGroup: string; + + /** + * Creates a new GetSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetSnapshotGroupRequest): google.cloud.compute.v1beta.GetSnapshotGroupRequest; + + /** + * Encodes the specified GetSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetSnapshotGroupRequest.verify|verify} messages. + * @param message GetSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetSnapshotGroupRequest.verify|verify} messages. + * @param message GetSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GetSnapshotGroupRequest; + + /** + * Decodes a GetSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GetSnapshotGroupRequest; + + /** + * Verifies a GetSnapshotGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetSnapshotGroupRequest; + + /** + * Creates a plain object from a GetSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message GetSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetSnapshotRequest. */ interface IGetSnapshotRequest { @@ -323112,6 +325311,9 @@ export namespace google { /** Properties of a HttpRouteAction. */ interface IHttpRouteAction { + /** HttpRouteAction cachePolicy */ + cachePolicy?: (google.cloud.compute.v1beta.ICachePolicy|null); + /** HttpRouteAction corsPolicy */ corsPolicy?: (google.cloud.compute.v1beta.ICorsPolicy|null); @@ -323146,6 +325348,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1beta.IHttpRouteAction); + /** HttpRouteAction cachePolicy. */ + public cachePolicy?: (google.cloud.compute.v1beta.ICachePolicy|null); + /** HttpRouteAction corsPolicy. */ public corsPolicy?: (google.cloud.compute.v1beta.ICorsPolicy|null); @@ -326916,6 +329121,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InsertInstantSnapshotGroupRequest. */ + interface IInsertInstantSnapshotGroupRequest { + + /** InsertInstantSnapshotGroupRequest instantSnapshotGroupResource */ + instantSnapshotGroupResource?: (google.cloud.compute.v1beta.IInstantSnapshotGroup|null); + + /** InsertInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** InsertInstantSnapshotGroupRequest requestId */ + requestId?: (string|null); + + /** InsertInstantSnapshotGroupRequest sourceConsistencyGroup */ + sourceConsistencyGroup?: (string|null); + + /** InsertInstantSnapshotGroupRequest zone */ + zone?: (string|null); + } + + /** Represents an InsertInstantSnapshotGroupRequest. */ + class InsertInstantSnapshotGroupRequest implements IInsertInstantSnapshotGroupRequest { + + /** + * Constructs a new InsertInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest); + + /** InsertInstantSnapshotGroupRequest instantSnapshotGroupResource. */ + public instantSnapshotGroupResource?: (google.cloud.compute.v1beta.IInstantSnapshotGroup|null); + + /** InsertInstantSnapshotGroupRequest project. */ + public project: string; + + /** InsertInstantSnapshotGroupRequest requestId. */ + public requestId?: (string|null); + + /** InsertInstantSnapshotGroupRequest sourceConsistencyGroup. */ + public sourceConsistencyGroup?: (string|null); + + /** InsertInstantSnapshotGroupRequest zone. */ + public zone: string; + + /** + * Creates a new InsertInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest): google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest; + + /** + * Encodes the specified InsertInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest.verify|verify} messages. + * @param message InsertInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest.verify|verify} messages. + * @param message InsertInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest; + + /** + * Decodes an InsertInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest; + + /** + * Verifies an InsertInstantSnapshotGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InsertInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest; + + /** + * Creates a plain object from an InsertInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message InsertInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsertInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InsertInstantSnapshotRequest. */ interface IInsertInstantSnapshotRequest { @@ -330463,6 +332789,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InsertRegionInstantSnapshotGroupRequest. */ + interface IInsertRegionInstantSnapshotGroupRequest { + + /** InsertRegionInstantSnapshotGroupRequest instantSnapshotGroupResource */ + instantSnapshotGroupResource?: (google.cloud.compute.v1beta.IInstantSnapshotGroup|null); + + /** InsertRegionInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** InsertRegionInstantSnapshotGroupRequest region */ + region?: (string|null); + + /** InsertRegionInstantSnapshotGroupRequest requestId */ + requestId?: (string|null); + + /** InsertRegionInstantSnapshotGroupRequest sourceConsistencyGroup */ + sourceConsistencyGroup?: (string|null); + } + + /** Represents an InsertRegionInstantSnapshotGroupRequest. */ + class InsertRegionInstantSnapshotGroupRequest implements IInsertRegionInstantSnapshotGroupRequest { + + /** + * Constructs a new InsertRegionInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest); + + /** InsertRegionInstantSnapshotGroupRequest instantSnapshotGroupResource. */ + public instantSnapshotGroupResource?: (google.cloud.compute.v1beta.IInstantSnapshotGroup|null); + + /** InsertRegionInstantSnapshotGroupRequest project. */ + public project: string; + + /** InsertRegionInstantSnapshotGroupRequest region. */ + public region: string; + + /** InsertRegionInstantSnapshotGroupRequest requestId. */ + public requestId?: (string|null); + + /** InsertRegionInstantSnapshotGroupRequest sourceConsistencyGroup. */ + public sourceConsistencyGroup?: (string|null); + + /** + * Creates a new InsertRegionInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertRegionInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest): google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest; + + /** + * Encodes the specified InsertRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message InsertRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message InsertRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertRegionInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest; + + /** + * Decodes an InsertRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest; + + /** + * Verifies an InsertRegionInstantSnapshotGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InsertRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertRegionInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest; + + /** + * Creates a plain object from an InsertRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message InsertRegionInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertRegionInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsertRegionInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InsertRegionInstantSnapshotRequest. */ interface IInsertRegionInstantSnapshotRequest { @@ -332872,6 +335319,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InsertSnapshotGroupRequest. */ + interface IInsertSnapshotGroupRequest { + + /** InsertSnapshotGroupRequest project */ + project?: (string|null); + + /** InsertSnapshotGroupRequest requestId */ + requestId?: (string|null); + + /** InsertSnapshotGroupRequest snapshotGroupResource */ + snapshotGroupResource?: (google.cloud.compute.v1beta.ISnapshotGroup|null); + } + + /** Represents an InsertSnapshotGroupRequest. */ + class InsertSnapshotGroupRequest implements IInsertSnapshotGroupRequest { + + /** + * Constructs a new InsertSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInsertSnapshotGroupRequest); + + /** InsertSnapshotGroupRequest project. */ + public project: string; + + /** InsertSnapshotGroupRequest requestId. */ + public requestId?: (string|null); + + /** InsertSnapshotGroupRequest snapshotGroupResource. */ + public snapshotGroupResource?: (google.cloud.compute.v1beta.ISnapshotGroup|null); + + /** + * Creates a new InsertSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInsertSnapshotGroupRequest): google.cloud.compute.v1beta.InsertSnapshotGroupRequest; + + /** + * Encodes the specified InsertSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertSnapshotGroupRequest.verify|verify} messages. + * @param message InsertSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInsertSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertSnapshotGroupRequest.verify|verify} messages. + * @param message InsertSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInsertSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InsertSnapshotGroupRequest; + + /** + * Decodes an InsertSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InsertSnapshotGroupRequest; + + /** + * Verifies an InsertSnapshotGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InsertSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InsertSnapshotGroupRequest; + + /** + * Creates a plain object from an InsertSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message InsertSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InsertSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsertSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InsertSnapshotRequest. */ interface IInsertSnapshotRequest { @@ -335047,6 +337603,9 @@ export namespace google { /** Instance tags */ tags?: (google.cloud.compute.v1beta.ITags|null); + /** Instance workloadIdentityConfig */ + workloadIdentityConfig?: (google.cloud.compute.v1beta.IWorkloadIdentityConfig|null); + /** Instance zone */ zone?: (string|null); } @@ -335210,6 +337769,9 @@ export namespace google { /** Instance tags. */ public tags?: (google.cloud.compute.v1beta.ITags|null); + /** Instance workloadIdentityConfig. */ + public workloadIdentityConfig?: (google.cloud.compute.v1beta.IWorkloadIdentityConfig|null); + /** Instance zone. */ public zone?: (string|null); @@ -338695,6 +341257,9 @@ export namespace google { /** InstanceGroupManagerStatus bulkInstanceOperation */ bulkInstanceOperation?: (google.cloud.compute.v1beta.IInstanceGroupManagerStatusBulkInstanceOperation|null); + /** InstanceGroupManagerStatus currentInstanceStatuses */ + currentInstanceStatuses?: (google.cloud.compute.v1beta.IInstanceGroupManagerStatusInstanceStatusSummary|null); + /** InstanceGroupManagerStatus isStable */ isStable?: (boolean|null); @@ -338723,6 +341288,9 @@ export namespace google { /** InstanceGroupManagerStatus bulkInstanceOperation. */ public bulkInstanceOperation?: (google.cloud.compute.v1beta.IInstanceGroupManagerStatusBulkInstanceOperation|null); + /** InstanceGroupManagerStatus currentInstanceStatuses. */ + public currentInstanceStatuses?: (google.cloud.compute.v1beta.IInstanceGroupManagerStatusInstanceStatusSummary|null); + /** InstanceGroupManagerStatus isStable. */ public isStable?: (boolean|null); @@ -339119,6 +341687,175 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstanceGroupManagerStatusInstanceStatusSummary. */ + interface IInstanceGroupManagerStatusInstanceStatusSummary { + + /** InstanceGroupManagerStatusInstanceStatusSummary deprovisioning */ + deprovisioning?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary nonExistent */ + nonExistent?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary pending */ + pending?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary pendingStop */ + pendingStop?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary provisioning */ + provisioning?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary repairing */ + repairing?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary running */ + running?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary staging */ + staging?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary stopped */ + stopped?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary stopping */ + stopping?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary suspended */ + suspended?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary suspending */ + suspending?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary terminated */ + terminated?: (number|null); + } + + /** Represents an InstanceGroupManagerStatusInstanceStatusSummary. */ + class InstanceGroupManagerStatusInstanceStatusSummary implements IInstanceGroupManagerStatusInstanceStatusSummary { + + /** + * Constructs a new InstanceGroupManagerStatusInstanceStatusSummary. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInstanceGroupManagerStatusInstanceStatusSummary); + + /** InstanceGroupManagerStatusInstanceStatusSummary deprovisioning. */ + public deprovisioning?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary nonExistent. */ + public nonExistent?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary pending. */ + public pending?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary pendingStop. */ + public pendingStop?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary provisioning. */ + public provisioning?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary repairing. */ + public repairing?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary running. */ + public running?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary staging. */ + public staging?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary stopped. */ + public stopped?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary stopping. */ + public stopping?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary suspended. */ + public suspended?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary suspending. */ + public suspending?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary terminated. */ + public terminated?: (number|null); + + /** + * Creates a new InstanceGroupManagerStatusInstanceStatusSummary instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceGroupManagerStatusInstanceStatusSummary instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInstanceGroupManagerStatusInstanceStatusSummary): google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary; + + /** + * Encodes the specified InstanceGroupManagerStatusInstanceStatusSummary message. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary.verify|verify} messages. + * @param message InstanceGroupManagerStatusInstanceStatusSummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInstanceGroupManagerStatusInstanceStatusSummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceGroupManagerStatusInstanceStatusSummary message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary.verify|verify} messages. + * @param message InstanceGroupManagerStatusInstanceStatusSummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInstanceGroupManagerStatusInstanceStatusSummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceGroupManagerStatusInstanceStatusSummary message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceGroupManagerStatusInstanceStatusSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary; + + /** + * Decodes an InstanceGroupManagerStatusInstanceStatusSummary message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceGroupManagerStatusInstanceStatusSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary; + + /** + * Verifies an InstanceGroupManagerStatusInstanceStatusSummary message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InstanceGroupManagerStatusInstanceStatusSummary message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceGroupManagerStatusInstanceStatusSummary + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary; + + /** + * Creates a plain object from an InstanceGroupManagerStatusInstanceStatusSummary message. Also converts values to other types if specified. + * @param message InstanceGroupManagerStatusInstanceStatusSummary + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceGroupManagerStatusInstanceStatusSummary to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceGroupManagerStatusInstanceStatusSummary + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InstanceGroupManagerStatusStateful. */ interface IInstanceGroupManagerStatusStateful { @@ -340034,6 +342771,103 @@ export namespace google { } } + /** Properties of an InstanceGroupManagersConfigureAcceleratorTopologiesRequest. */ + interface IInstanceGroupManagersConfigureAcceleratorTopologiesRequest { + + /** InstanceGroupManagersConfigureAcceleratorTopologiesRequest acceleratorTopologyActions */ + acceleratorTopologyActions?: ({ [k: string]: string }|null); + } + + /** Represents an InstanceGroupManagersConfigureAcceleratorTopologiesRequest. */ + class InstanceGroupManagersConfigureAcceleratorTopologiesRequest implements IInstanceGroupManagersConfigureAcceleratorTopologiesRequest { + + /** + * Constructs a new InstanceGroupManagersConfigureAcceleratorTopologiesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequest); + + /** InstanceGroupManagersConfigureAcceleratorTopologiesRequest acceleratorTopologyActions. */ + public acceleratorTopologyActions: { [k: string]: string }; + + /** + * Creates a new InstanceGroupManagersConfigureAcceleratorTopologiesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceGroupManagersConfigureAcceleratorTopologiesRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequest): google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest; + + /** + * Encodes the specified InstanceGroupManagersConfigureAcceleratorTopologiesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest.verify|verify} messages. + * @param message InstanceGroupManagersConfigureAcceleratorTopologiesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceGroupManagersConfigureAcceleratorTopologiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest.verify|verify} messages. + * @param message InstanceGroupManagersConfigureAcceleratorTopologiesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceGroupManagersConfigureAcceleratorTopologiesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest; + + /** + * Decodes an InstanceGroupManagersConfigureAcceleratorTopologiesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest; + + /** + * Verifies an InstanceGroupManagersConfigureAcceleratorTopologiesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InstanceGroupManagersConfigureAcceleratorTopologiesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceGroupManagersConfigureAcceleratorTopologiesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest; + + /** + * Creates a plain object from an InstanceGroupManagersConfigureAcceleratorTopologiesRequest message. Also converts values to other types if specified. + * @param message InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceGroupManagersConfigureAcceleratorTopologiesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InstanceGroupManagersCreateInstancesRequest. */ interface IInstanceGroupManagersCreateInstancesRequest { @@ -340336,6 +343170,9 @@ export namespace google { /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse acceleratorTopologiesInfo */ acceleratorTopologiesInfo?: ({ [k: string]: google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo }|null); + + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse multiMig */ + multiMig?: (string|null); } /** Represents an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse. */ @@ -340350,6 +343187,9 @@ export namespace google { /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse acceleratorTopologiesInfo. */ public acceleratorTopologiesInfo: { [k: string]: google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo }; + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse multiMig. */ + public multiMig?: (string|null); + /** * Creates a new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse instance using the specified properties. * @param [properties] Properties to set @@ -340436,6 +343276,15 @@ export namespace google { /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo acceleratorTopologyHealth */ acceleratorTopologyHealth?: (string|null); + + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo acceleratorTopologyState */ + acceleratorTopologyState?: (google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState|null); + + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo instancesHealth */ + instancesHealth?: (string|null); + + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo parent */ + parent?: (string|null); } /** Represents an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo. */ @@ -340453,6 +343302,15 @@ export namespace google { /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo acceleratorTopologyHealth. */ public acceleratorTopologyHealth?: (string|null); + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo acceleratorTopologyState. */ + public acceleratorTopologyState?: (google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState|null); + + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo instancesHealth. */ + public instancesHealth?: (string|null); + + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo parent. */ + public parent?: (string|null); + /** * Creates a new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo instance using the specified properties. * @param [properties] Properties to set @@ -340538,7 +343396,139 @@ export namespace google { UNDEFINED_ACCELERATOR_TOPOLOGY_HEALTH = 0, DEGRADED = 396890926, HEALTHY = 439801213, - UNHEALTHY = 462118084 + UNHEALTHY = 462118084, + UNKNOWN = 433141802 + } + + /** InstancesHealth enum. */ + enum InstancesHealth { + UNDEFINED_INSTANCES_HEALTH = 0, + ALL_HEALTHY = 519465151, + UNHEALTHY_OR_MISSING = 59982149 + } + } + + /** Properties of an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState. */ + interface IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState { + + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState currentState */ + currentState?: (string|null); + + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState error */ + error?: (google.cloud.compute.v1beta.IError|null); + + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState errorTimestamp */ + errorTimestamp?: (string|null); + } + + /** Represents an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState. */ + class InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState implements IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState { + + /** + * Constructs a new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState); + + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState currentState. */ + public currentState?: (string|null); + + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState error. */ + public error?: (google.cloud.compute.v1beta.IError|null); + + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState errorTimestamp. */ + public errorTimestamp?: (string|null); + + /** + * Creates a new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState): google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState; + + /** + * Encodes the specified InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState message. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.verify|verify} messages. + * @param message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.verify|verify} messages. + * @param message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState; + + /** + * Decodes an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState; + + /** + * Verifies an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState; + + /** + * Creates a plain object from an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState message. Also converts values to other types if specified. + * @param message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState { + + /** CurrentState enum. */ + enum CurrentState { + UNDEFINED_CURRENT_STATE = 0, + ACTIVATING = 378825968, + ACTIVE = 314733318, + ACTIVE_DEGRADED = 471128135, + DEACTIVATING = 57182257, + FAILED = 455706685, + INACTIVE = 270421099, + INCOMPLETE = 11941214 } } @@ -343565,6 +346555,9 @@ export namespace google { /** InstanceProperties tags */ tags?: (google.cloud.compute.v1beta.ITags|null); + + /** InstanceProperties workloadIdentityConfig */ + workloadIdentityConfig?: (google.cloud.compute.v1beta.IWorkloadIdentityConfig|null); } /** Represents an InstanceProperties. */ @@ -343651,6 +346644,9 @@ export namespace google { /** InstanceProperties tags. */ public tags?: (google.cloud.compute.v1beta.ITags|null); + /** InstanceProperties workloadIdentityConfig. */ + public workloadIdentityConfig?: (google.cloud.compute.v1beta.IWorkloadIdentityConfig|null); + /** * Creates a new InstanceProperties instance using the specified properties. * @param [properties] Properties to set @@ -345684,6 +348680,7 @@ export namespace google { enum Behavior { UNDEFINED_BEHAVIOR = 0, BEHAVIOR_UNSPECIFIED = 85734570, + CHIP_ERROR = 263151669, PERFORMANCE = 135701520, SILENT_DATA_CORRUPTION = 111360678, UNRECOVERABLE_GPU_ERROR = 363710747 @@ -346726,6 +349723,9 @@ export namespace google { /** InstantSnapshot name */ name?: (string|null); + /** InstantSnapshot params */ + params?: (google.cloud.compute.v1beta.IInstantSnapshotParams|null); + /** InstantSnapshot region */ region?: (string|null); @@ -346750,6 +349750,12 @@ export namespace google { /** InstantSnapshot sourceDiskId */ sourceDiskId?: (string|null); + /** InstantSnapshot sourceInstantSnapshotGroup */ + sourceInstantSnapshotGroup?: (string|null); + + /** InstantSnapshot sourceInstantSnapshotGroupId */ + sourceInstantSnapshotGroupId?: (string|null); + /** InstantSnapshot status */ status?: (string|null); @@ -346793,6 +349799,9 @@ export namespace google { /** InstantSnapshot name. */ public name?: (string|null); + /** InstantSnapshot params. */ + public params?: (google.cloud.compute.v1beta.IInstantSnapshotParams|null); + /** InstantSnapshot region. */ public region?: (string|null); @@ -346817,6 +349826,12 @@ export namespace google { /** InstantSnapshot sourceDiskId. */ public sourceDiskId?: (string|null); + /** InstantSnapshot sourceInstantSnapshotGroup. */ + public sourceInstantSnapshotGroup?: (string|null); + + /** InstantSnapshot sourceInstantSnapshotGroupId. */ + public sourceInstantSnapshotGroupId?: (string|null); + /** InstantSnapshot status. */ public status?: (string|null); @@ -347055,6 +350070,486 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstantSnapshotGroup. */ + interface IInstantSnapshotGroup { + + /** InstantSnapshotGroup creationTimestamp */ + creationTimestamp?: (string|null); + + /** InstantSnapshotGroup description */ + description?: (string|null); + + /** InstantSnapshotGroup id */ + id?: (number|Long|string|null); + + /** InstantSnapshotGroup kind */ + kind?: (string|null); + + /** InstantSnapshotGroup name */ + name?: (string|null); + + /** InstantSnapshotGroup region */ + region?: (string|null); + + /** InstantSnapshotGroup resourceStatus */ + resourceStatus?: (google.cloud.compute.v1beta.IInstantSnapshotGroupResourceStatus|null); + + /** InstantSnapshotGroup selfLink */ + selfLink?: (string|null); + + /** InstantSnapshotGroup selfLinkWithId */ + selfLinkWithId?: (string|null); + + /** InstantSnapshotGroup sourceConsistencyGroup */ + sourceConsistencyGroup?: (string|null); + + /** InstantSnapshotGroup status */ + status?: (string|null); + + /** InstantSnapshotGroup zone */ + zone?: (string|null); + } + + /** Represents an InstantSnapshotGroup. */ + class InstantSnapshotGroup implements IInstantSnapshotGroup { + + /** + * Constructs a new InstantSnapshotGroup. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInstantSnapshotGroup); + + /** InstantSnapshotGroup creationTimestamp. */ + public creationTimestamp?: (string|null); + + /** InstantSnapshotGroup description. */ + public description?: (string|null); + + /** InstantSnapshotGroup id. */ + public id?: (number|Long|string|null); + + /** InstantSnapshotGroup kind. */ + public kind?: (string|null); + + /** InstantSnapshotGroup name. */ + public name?: (string|null); + + /** InstantSnapshotGroup region. */ + public region?: (string|null); + + /** InstantSnapshotGroup resourceStatus. */ + public resourceStatus?: (google.cloud.compute.v1beta.IInstantSnapshotGroupResourceStatus|null); + + /** InstantSnapshotGroup selfLink. */ + public selfLink?: (string|null); + + /** InstantSnapshotGroup selfLinkWithId. */ + public selfLinkWithId?: (string|null); + + /** InstantSnapshotGroup sourceConsistencyGroup. */ + public sourceConsistencyGroup?: (string|null); + + /** InstantSnapshotGroup status. */ + public status?: (string|null); + + /** InstantSnapshotGroup zone. */ + public zone?: (string|null); + + /** + * Creates a new InstantSnapshotGroup instance using the specified properties. + * @param [properties] Properties to set + * @returns InstantSnapshotGroup instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInstantSnapshotGroup): google.cloud.compute.v1beta.InstantSnapshotGroup; + + /** + * Encodes the specified InstantSnapshotGroup message. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotGroup.verify|verify} messages. + * @param message InstantSnapshotGroup message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInstantSnapshotGroup, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstantSnapshotGroup message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotGroup.verify|verify} messages. + * @param message InstantSnapshotGroup message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInstantSnapshotGroup, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstantSnapshotGroup message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstantSnapshotGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InstantSnapshotGroup; + + /** + * Decodes an InstantSnapshotGroup message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstantSnapshotGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InstantSnapshotGroup; + + /** + * Verifies an InstantSnapshotGroup message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InstantSnapshotGroup message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstantSnapshotGroup + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InstantSnapshotGroup; + + /** + * Creates a plain object from an InstantSnapshotGroup message. Also converts values to other types if specified. + * @param message InstantSnapshotGroup + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InstantSnapshotGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstantSnapshotGroup to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstantSnapshotGroup + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace InstantSnapshotGroup { + + /** Status enum. */ + enum Status { + UNDEFINED_STATUS = 0, + CREATING = 455564985, + DELETING = 528602024, + FAILED = 455706685, + INVALID = 530283991, + READY = 77848963, + UNKNOWN = 433141802 + } + } + + /** Properties of an InstantSnapshotGroupParameters. */ + interface IInstantSnapshotGroupParameters { + + /** InstantSnapshotGroupParameters sourceInstantSnapshotGroup */ + sourceInstantSnapshotGroup?: (string|null); + } + + /** Represents an InstantSnapshotGroupParameters. */ + class InstantSnapshotGroupParameters implements IInstantSnapshotGroupParameters { + + /** + * Constructs a new InstantSnapshotGroupParameters. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInstantSnapshotGroupParameters); + + /** InstantSnapshotGroupParameters sourceInstantSnapshotGroup. */ + public sourceInstantSnapshotGroup?: (string|null); + + /** + * Creates a new InstantSnapshotGroupParameters instance using the specified properties. + * @param [properties] Properties to set + * @returns InstantSnapshotGroupParameters instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInstantSnapshotGroupParameters): google.cloud.compute.v1beta.InstantSnapshotGroupParameters; + + /** + * Encodes the specified InstantSnapshotGroupParameters message. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotGroupParameters.verify|verify} messages. + * @param message InstantSnapshotGroupParameters message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInstantSnapshotGroupParameters, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstantSnapshotGroupParameters message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotGroupParameters.verify|verify} messages. + * @param message InstantSnapshotGroupParameters message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInstantSnapshotGroupParameters, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstantSnapshotGroupParameters message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstantSnapshotGroupParameters + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InstantSnapshotGroupParameters; + + /** + * Decodes an InstantSnapshotGroupParameters message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstantSnapshotGroupParameters + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InstantSnapshotGroupParameters; + + /** + * Verifies an InstantSnapshotGroupParameters message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InstantSnapshotGroupParameters message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstantSnapshotGroupParameters + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InstantSnapshotGroupParameters; + + /** + * Creates a plain object from an InstantSnapshotGroupParameters message. Also converts values to other types if specified. + * @param message InstantSnapshotGroupParameters + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InstantSnapshotGroupParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstantSnapshotGroupParameters to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstantSnapshotGroupParameters + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InstantSnapshotGroupResourceStatus. */ + interface IInstantSnapshotGroupResourceStatus { + + /** InstantSnapshotGroupResourceStatus consistencyMembershipResolutionTime */ + consistencyMembershipResolutionTime?: (string|null); + + /** InstantSnapshotGroupResourceStatus sourceInfo */ + sourceInfo?: (google.cloud.compute.v1beta.IInstantSnapshotGroupSourceInfo|null); + } + + /** Represents an InstantSnapshotGroupResourceStatus. */ + class InstantSnapshotGroupResourceStatus implements IInstantSnapshotGroupResourceStatus { + + /** + * Constructs a new InstantSnapshotGroupResourceStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInstantSnapshotGroupResourceStatus); + + /** InstantSnapshotGroupResourceStatus consistencyMembershipResolutionTime. */ + public consistencyMembershipResolutionTime?: (string|null); + + /** InstantSnapshotGroupResourceStatus sourceInfo. */ + public sourceInfo?: (google.cloud.compute.v1beta.IInstantSnapshotGroupSourceInfo|null); + + /** + * Creates a new InstantSnapshotGroupResourceStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns InstantSnapshotGroupResourceStatus instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInstantSnapshotGroupResourceStatus): google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus; + + /** + * Encodes the specified InstantSnapshotGroupResourceStatus message. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus.verify|verify} messages. + * @param message InstantSnapshotGroupResourceStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInstantSnapshotGroupResourceStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstantSnapshotGroupResourceStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus.verify|verify} messages. + * @param message InstantSnapshotGroupResourceStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInstantSnapshotGroupResourceStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstantSnapshotGroupResourceStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstantSnapshotGroupResourceStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus; + + /** + * Decodes an InstantSnapshotGroupResourceStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstantSnapshotGroupResourceStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus; + + /** + * Verifies an InstantSnapshotGroupResourceStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InstantSnapshotGroupResourceStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstantSnapshotGroupResourceStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus; + + /** + * Creates a plain object from an InstantSnapshotGroupResourceStatus message. Also converts values to other types if specified. + * @param message InstantSnapshotGroupResourceStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstantSnapshotGroupResourceStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstantSnapshotGroupResourceStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InstantSnapshotGroupSourceInfo. */ + interface IInstantSnapshotGroupSourceInfo { + + /** InstantSnapshotGroupSourceInfo consistencyGroup */ + consistencyGroup?: (string|null); + + /** InstantSnapshotGroupSourceInfo consistencyGroupId */ + consistencyGroupId?: (string|null); + } + + /** Represents an InstantSnapshotGroupSourceInfo. */ + class InstantSnapshotGroupSourceInfo implements IInstantSnapshotGroupSourceInfo { + + /** + * Constructs a new InstantSnapshotGroupSourceInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInstantSnapshotGroupSourceInfo); + + /** InstantSnapshotGroupSourceInfo consistencyGroup. */ + public consistencyGroup?: (string|null); + + /** InstantSnapshotGroupSourceInfo consistencyGroupId. */ + public consistencyGroupId?: (string|null); + + /** + * Creates a new InstantSnapshotGroupSourceInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns InstantSnapshotGroupSourceInfo instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInstantSnapshotGroupSourceInfo): google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo; + + /** + * Encodes the specified InstantSnapshotGroupSourceInfo message. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo.verify|verify} messages. + * @param message InstantSnapshotGroupSourceInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInstantSnapshotGroupSourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstantSnapshotGroupSourceInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo.verify|verify} messages. + * @param message InstantSnapshotGroupSourceInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInstantSnapshotGroupSourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstantSnapshotGroupSourceInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstantSnapshotGroupSourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo; + + /** + * Decodes an InstantSnapshotGroupSourceInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstantSnapshotGroupSourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo; + + /** + * Verifies an InstantSnapshotGroupSourceInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InstantSnapshotGroupSourceInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstantSnapshotGroupSourceInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo; + + /** + * Creates a plain object from an InstantSnapshotGroupSourceInfo message. Also converts values to other types if specified. + * @param message InstantSnapshotGroupSourceInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstantSnapshotGroupSourceInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstantSnapshotGroupSourceInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InstantSnapshotList. */ interface IInstantSnapshotList { @@ -347182,6 +350677,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstantSnapshotParams. */ + interface IInstantSnapshotParams { + + /** InstantSnapshotParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents an InstantSnapshotParams. */ + class InstantSnapshotParams implements IInstantSnapshotParams { + + /** + * Constructs a new InstantSnapshotParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInstantSnapshotParams); + + /** InstantSnapshotParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new InstantSnapshotParams instance using the specified properties. + * @param [properties] Properties to set + * @returns InstantSnapshotParams instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInstantSnapshotParams): google.cloud.compute.v1beta.InstantSnapshotParams; + + /** + * Encodes the specified InstantSnapshotParams message. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotParams.verify|verify} messages. + * @param message InstantSnapshotParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInstantSnapshotParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstantSnapshotParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotParams.verify|verify} messages. + * @param message InstantSnapshotParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInstantSnapshotParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstantSnapshotParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstantSnapshotParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InstantSnapshotParams; + + /** + * Decodes an InstantSnapshotParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstantSnapshotParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InstantSnapshotParams; + + /** + * Verifies an InstantSnapshotParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InstantSnapshotParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstantSnapshotParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InstantSnapshotParams; + + /** + * Creates a plain object from an InstantSnapshotParams message. Also converts values to other types if specified. + * @param message InstantSnapshotParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InstantSnapshotParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstantSnapshotParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstantSnapshotParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InstantSnapshotResourceStatus. */ interface IInstantSnapshotResourceStatus { @@ -363105,6 +366697,278 @@ export namespace google { } } + /** Properties of a ListInstantSnapshotGroups. */ + interface IListInstantSnapshotGroups { + + /** ListInstantSnapshotGroups etag */ + etag?: (string|null); + + /** ListInstantSnapshotGroups id */ + id?: (string|null); + + /** ListInstantSnapshotGroups items */ + items?: (google.cloud.compute.v1beta.IInstantSnapshotGroup[]|null); + + /** ListInstantSnapshotGroups kind */ + kind?: (string|null); + + /** ListInstantSnapshotGroups nextPageToken */ + nextPageToken?: (string|null); + + /** ListInstantSnapshotGroups selfLink */ + selfLink?: (string|null); + + /** ListInstantSnapshotGroups unreachables */ + unreachables?: (string[]|null); + + /** ListInstantSnapshotGroups warning */ + warning?: (google.cloud.compute.v1beta.IWarning|null); + } + + /** Represents a ListInstantSnapshotGroups. */ + class ListInstantSnapshotGroups implements IListInstantSnapshotGroups { + + /** + * Constructs a new ListInstantSnapshotGroups. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IListInstantSnapshotGroups); + + /** ListInstantSnapshotGroups etag. */ + public etag?: (string|null); + + /** ListInstantSnapshotGroups id. */ + public id?: (string|null); + + /** ListInstantSnapshotGroups items. */ + public items: google.cloud.compute.v1beta.IInstantSnapshotGroup[]; + + /** ListInstantSnapshotGroups kind. */ + public kind?: (string|null); + + /** ListInstantSnapshotGroups nextPageToken. */ + public nextPageToken?: (string|null); + + /** ListInstantSnapshotGroups selfLink. */ + public selfLink?: (string|null); + + /** ListInstantSnapshotGroups unreachables. */ + public unreachables: string[]; + + /** ListInstantSnapshotGroups warning. */ + public warning?: (google.cloud.compute.v1beta.IWarning|null); + + /** + * Creates a new ListInstantSnapshotGroups instance using the specified properties. + * @param [properties] Properties to set + * @returns ListInstantSnapshotGroups instance + */ + public static create(properties?: google.cloud.compute.v1beta.IListInstantSnapshotGroups): google.cloud.compute.v1beta.ListInstantSnapshotGroups; + + /** + * Encodes the specified ListInstantSnapshotGroups message. Does not implicitly {@link google.cloud.compute.v1beta.ListInstantSnapshotGroups.verify|verify} messages. + * @param message ListInstantSnapshotGroups message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IListInstantSnapshotGroups, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListInstantSnapshotGroups message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListInstantSnapshotGroups.verify|verify} messages. + * @param message ListInstantSnapshotGroups message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IListInstantSnapshotGroups, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListInstantSnapshotGroups message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListInstantSnapshotGroups + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ListInstantSnapshotGroups; + + /** + * Decodes a ListInstantSnapshotGroups message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListInstantSnapshotGroups + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ListInstantSnapshotGroups; + + /** + * Verifies a ListInstantSnapshotGroups message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListInstantSnapshotGroups message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListInstantSnapshotGroups + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ListInstantSnapshotGroups; + + /** + * Creates a plain object from a ListInstantSnapshotGroups message. Also converts values to other types if specified. + * @param message ListInstantSnapshotGroups + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ListInstantSnapshotGroups, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListInstantSnapshotGroups to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListInstantSnapshotGroups + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListInstantSnapshotGroupsRequest. */ + interface IListInstantSnapshotGroupsRequest { + + /** ListInstantSnapshotGroupsRequest filter */ + filter?: (string|null); + + /** ListInstantSnapshotGroupsRequest maxResults */ + maxResults?: (number|null); + + /** ListInstantSnapshotGroupsRequest orderBy */ + orderBy?: (string|null); + + /** ListInstantSnapshotGroupsRequest pageToken */ + pageToken?: (string|null); + + /** ListInstantSnapshotGroupsRequest project */ + project?: (string|null); + + /** ListInstantSnapshotGroupsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + + /** ListInstantSnapshotGroupsRequest zone */ + zone?: (string|null); + } + + /** Represents a ListInstantSnapshotGroupsRequest. */ + class ListInstantSnapshotGroupsRequest implements IListInstantSnapshotGroupsRequest { + + /** + * Constructs a new ListInstantSnapshotGroupsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest); + + /** ListInstantSnapshotGroupsRequest filter. */ + public filter?: (string|null); + + /** ListInstantSnapshotGroupsRequest maxResults. */ + public maxResults?: (number|null); + + /** ListInstantSnapshotGroupsRequest orderBy. */ + public orderBy?: (string|null); + + /** ListInstantSnapshotGroupsRequest pageToken. */ + public pageToken?: (string|null); + + /** ListInstantSnapshotGroupsRequest project. */ + public project: string; + + /** ListInstantSnapshotGroupsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** ListInstantSnapshotGroupsRequest zone. */ + public zone: string; + + /** + * Creates a new ListInstantSnapshotGroupsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListInstantSnapshotGroupsRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest): google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest; + + /** + * Encodes the specified ListInstantSnapshotGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest.verify|verify} messages. + * @param message ListInstantSnapshotGroupsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListInstantSnapshotGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest.verify|verify} messages. + * @param message ListInstantSnapshotGroupsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListInstantSnapshotGroupsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListInstantSnapshotGroupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest; + + /** + * Decodes a ListInstantSnapshotGroupsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListInstantSnapshotGroupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest; + + /** + * Verifies a ListInstantSnapshotGroupsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListInstantSnapshotGroupsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListInstantSnapshotGroupsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest; + + /** + * Creates a plain object from a ListInstantSnapshotGroupsRequest message. Also converts values to other types if specified. + * @param message ListInstantSnapshotGroupsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListInstantSnapshotGroupsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListInstantSnapshotGroupsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListInstantSnapshotsRequest. */ interface IListInstantSnapshotsRequest { @@ -364671,6 +368535,145 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListNamedSetsRoutersRequest. */ + interface IListNamedSetsRoutersRequest { + + /** ListNamedSetsRoutersRequest filter */ + filter?: (string|null); + + /** ListNamedSetsRoutersRequest maxResults */ + maxResults?: (number|null); + + /** ListNamedSetsRoutersRequest orderBy */ + orderBy?: (string|null); + + /** ListNamedSetsRoutersRequest pageToken */ + pageToken?: (string|null); + + /** ListNamedSetsRoutersRequest project */ + project?: (string|null); + + /** ListNamedSetsRoutersRequest region */ + region?: (string|null); + + /** ListNamedSetsRoutersRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + + /** ListNamedSetsRoutersRequest router */ + router?: (string|null); + } + + /** Represents a ListNamedSetsRoutersRequest. */ + class ListNamedSetsRoutersRequest implements IListNamedSetsRoutersRequest { + + /** + * Constructs a new ListNamedSetsRoutersRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IListNamedSetsRoutersRequest); + + /** ListNamedSetsRoutersRequest filter. */ + public filter?: (string|null); + + /** ListNamedSetsRoutersRequest maxResults. */ + public maxResults?: (number|null); + + /** ListNamedSetsRoutersRequest orderBy. */ + public orderBy?: (string|null); + + /** ListNamedSetsRoutersRequest pageToken. */ + public pageToken?: (string|null); + + /** ListNamedSetsRoutersRequest project. */ + public project: string; + + /** ListNamedSetsRoutersRequest region. */ + public region: string; + + /** ListNamedSetsRoutersRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** ListNamedSetsRoutersRequest router. */ + public router: string; + + /** + * Creates a new ListNamedSetsRoutersRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListNamedSetsRoutersRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IListNamedSetsRoutersRequest): google.cloud.compute.v1beta.ListNamedSetsRoutersRequest; + + /** + * Encodes the specified ListNamedSetsRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListNamedSetsRoutersRequest.verify|verify} messages. + * @param message ListNamedSetsRoutersRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IListNamedSetsRoutersRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListNamedSetsRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListNamedSetsRoutersRequest.verify|verify} messages. + * @param message ListNamedSetsRoutersRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IListNamedSetsRoutersRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListNamedSetsRoutersRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListNamedSetsRoutersRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ListNamedSetsRoutersRequest; + + /** + * Decodes a ListNamedSetsRoutersRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListNamedSetsRoutersRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ListNamedSetsRoutersRequest; + + /** + * Verifies a ListNamedSetsRoutersRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListNamedSetsRoutersRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListNamedSetsRoutersRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ListNamedSetsRoutersRequest; + + /** + * Creates a plain object from a ListNamedSetsRoutersRequest message. Also converts values to other types if specified. + * @param message ListNamedSetsRoutersRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ListNamedSetsRoutersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListNamedSetsRoutersRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListNamedSetsRoutersRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListNetworkAttachmentsRequest. */ interface IListNetworkAttachmentsRequest { @@ -369770,6 +373773,139 @@ export namespace google { } } + /** Properties of a ListRegionInstantSnapshotGroupsRequest. */ + interface IListRegionInstantSnapshotGroupsRequest { + + /** ListRegionInstantSnapshotGroupsRequest filter */ + filter?: (string|null); + + /** ListRegionInstantSnapshotGroupsRequest maxResults */ + maxResults?: (number|null); + + /** ListRegionInstantSnapshotGroupsRequest orderBy */ + orderBy?: (string|null); + + /** ListRegionInstantSnapshotGroupsRequest pageToken */ + pageToken?: (string|null); + + /** ListRegionInstantSnapshotGroupsRequest project */ + project?: (string|null); + + /** ListRegionInstantSnapshotGroupsRequest region */ + region?: (string|null); + + /** ListRegionInstantSnapshotGroupsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents a ListRegionInstantSnapshotGroupsRequest. */ + class ListRegionInstantSnapshotGroupsRequest implements IListRegionInstantSnapshotGroupsRequest { + + /** + * Constructs a new ListRegionInstantSnapshotGroupsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest); + + /** ListRegionInstantSnapshotGroupsRequest filter. */ + public filter?: (string|null); + + /** ListRegionInstantSnapshotGroupsRequest maxResults. */ + public maxResults?: (number|null); + + /** ListRegionInstantSnapshotGroupsRequest orderBy. */ + public orderBy?: (string|null); + + /** ListRegionInstantSnapshotGroupsRequest pageToken. */ + public pageToken?: (string|null); + + /** ListRegionInstantSnapshotGroupsRequest project. */ + public project: string; + + /** ListRegionInstantSnapshotGroupsRequest region. */ + public region: string; + + /** ListRegionInstantSnapshotGroupsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** + * Creates a new ListRegionInstantSnapshotGroupsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRegionInstantSnapshotGroupsRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest): google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest; + + /** + * Encodes the specified ListRegionInstantSnapshotGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest.verify|verify} messages. + * @param message ListRegionInstantSnapshotGroupsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRegionInstantSnapshotGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest.verify|verify} messages. + * @param message ListRegionInstantSnapshotGroupsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRegionInstantSnapshotGroupsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRegionInstantSnapshotGroupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest; + + /** + * Decodes a ListRegionInstantSnapshotGroupsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRegionInstantSnapshotGroupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest; + + /** + * Verifies a ListRegionInstantSnapshotGroupsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListRegionInstantSnapshotGroupsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRegionInstantSnapshotGroupsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest; + + /** + * Creates a plain object from a ListRegionInstantSnapshotGroupsRequest message. Also converts values to other types if specified. + * @param message ListRegionInstantSnapshotGroupsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRegionInstantSnapshotGroupsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRegionInstantSnapshotGroupsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListRegionInstantSnapshotsRequest. */ interface IListRegionInstantSnapshotsRequest { @@ -372303,6 +376439,145 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListReservationSlotsRequest. */ + interface IListReservationSlotsRequest { + + /** ListReservationSlotsRequest filter */ + filter?: (string|null); + + /** ListReservationSlotsRequest maxResults */ + maxResults?: (number|null); + + /** ListReservationSlotsRequest orderBy */ + orderBy?: (string|null); + + /** ListReservationSlotsRequest pageToken */ + pageToken?: (string|null); + + /** ListReservationSlotsRequest parentName */ + parentName?: (string|null); + + /** ListReservationSlotsRequest project */ + project?: (string|null); + + /** ListReservationSlotsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + + /** ListReservationSlotsRequest zone */ + zone?: (string|null); + } + + /** Represents a ListReservationSlotsRequest. */ + class ListReservationSlotsRequest implements IListReservationSlotsRequest { + + /** + * Constructs a new ListReservationSlotsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IListReservationSlotsRequest); + + /** ListReservationSlotsRequest filter. */ + public filter?: (string|null); + + /** ListReservationSlotsRequest maxResults. */ + public maxResults?: (number|null); + + /** ListReservationSlotsRequest orderBy. */ + public orderBy?: (string|null); + + /** ListReservationSlotsRequest pageToken. */ + public pageToken?: (string|null); + + /** ListReservationSlotsRequest parentName. */ + public parentName: string; + + /** ListReservationSlotsRequest project. */ + public project: string; + + /** ListReservationSlotsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** ListReservationSlotsRequest zone. */ + public zone: string; + + /** + * Creates a new ListReservationSlotsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListReservationSlotsRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IListReservationSlotsRequest): google.cloud.compute.v1beta.ListReservationSlotsRequest; + + /** + * Encodes the specified ListReservationSlotsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListReservationSlotsRequest.verify|verify} messages. + * @param message ListReservationSlotsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IListReservationSlotsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListReservationSlotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListReservationSlotsRequest.verify|verify} messages. + * @param message ListReservationSlotsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IListReservationSlotsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListReservationSlotsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListReservationSlotsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ListReservationSlotsRequest; + + /** + * Decodes a ListReservationSlotsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListReservationSlotsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ListReservationSlotsRequest; + + /** + * Verifies a ListReservationSlotsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListReservationSlotsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListReservationSlotsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ListReservationSlotsRequest; + + /** + * Creates a plain object from a ListReservationSlotsRequest message. Also converts values to other types if specified. + * @param message ListReservationSlotsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ListReservationSlotsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListReservationSlotsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListReservationSlotsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListReservationSubBlocksRequest. */ interface IListReservationSubBlocksRequest { @@ -373621,6 +377896,272 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListSnapshotGroups. */ + interface IListSnapshotGroups { + + /** ListSnapshotGroups etag */ + etag?: (string|null); + + /** ListSnapshotGroups id */ + id?: (string|null); + + /** ListSnapshotGroups items */ + items?: (google.cloud.compute.v1beta.ISnapshotGroup[]|null); + + /** ListSnapshotGroups kind */ + kind?: (string|null); + + /** ListSnapshotGroups nextPageToken */ + nextPageToken?: (string|null); + + /** ListSnapshotGroups selfLink */ + selfLink?: (string|null); + + /** ListSnapshotGroups unreachables */ + unreachables?: (string[]|null); + + /** ListSnapshotGroups warning */ + warning?: (google.cloud.compute.v1beta.IWarning|null); + } + + /** Represents a ListSnapshotGroups. */ + class ListSnapshotGroups implements IListSnapshotGroups { + + /** + * Constructs a new ListSnapshotGroups. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IListSnapshotGroups); + + /** ListSnapshotGroups etag. */ + public etag?: (string|null); + + /** ListSnapshotGroups id. */ + public id?: (string|null); + + /** ListSnapshotGroups items. */ + public items: google.cloud.compute.v1beta.ISnapshotGroup[]; + + /** ListSnapshotGroups kind. */ + public kind?: (string|null); + + /** ListSnapshotGroups nextPageToken. */ + public nextPageToken?: (string|null); + + /** ListSnapshotGroups selfLink. */ + public selfLink?: (string|null); + + /** ListSnapshotGroups unreachables. */ + public unreachables: string[]; + + /** ListSnapshotGroups warning. */ + public warning?: (google.cloud.compute.v1beta.IWarning|null); + + /** + * Creates a new ListSnapshotGroups instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSnapshotGroups instance + */ + public static create(properties?: google.cloud.compute.v1beta.IListSnapshotGroups): google.cloud.compute.v1beta.ListSnapshotGroups; + + /** + * Encodes the specified ListSnapshotGroups message. Does not implicitly {@link google.cloud.compute.v1beta.ListSnapshotGroups.verify|verify} messages. + * @param message ListSnapshotGroups message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IListSnapshotGroups, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListSnapshotGroups message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListSnapshotGroups.verify|verify} messages. + * @param message ListSnapshotGroups message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IListSnapshotGroups, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListSnapshotGroups message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListSnapshotGroups + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ListSnapshotGroups; + + /** + * Decodes a ListSnapshotGroups message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListSnapshotGroups + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ListSnapshotGroups; + + /** + * Verifies a ListSnapshotGroups message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListSnapshotGroups message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSnapshotGroups + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ListSnapshotGroups; + + /** + * Creates a plain object from a ListSnapshotGroups message. Also converts values to other types if specified. + * @param message ListSnapshotGroups + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ListSnapshotGroups, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListSnapshotGroups to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListSnapshotGroups + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListSnapshotGroupsRequest. */ + interface IListSnapshotGroupsRequest { + + /** ListSnapshotGroupsRequest filter */ + filter?: (string|null); + + /** ListSnapshotGroupsRequest maxResults */ + maxResults?: (number|null); + + /** ListSnapshotGroupsRequest orderBy */ + orderBy?: (string|null); + + /** ListSnapshotGroupsRequest pageToken */ + pageToken?: (string|null); + + /** ListSnapshotGroupsRequest project */ + project?: (string|null); + + /** ListSnapshotGroupsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents a ListSnapshotGroupsRequest. */ + class ListSnapshotGroupsRequest implements IListSnapshotGroupsRequest { + + /** + * Constructs a new ListSnapshotGroupsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IListSnapshotGroupsRequest); + + /** ListSnapshotGroupsRequest filter. */ + public filter?: (string|null); + + /** ListSnapshotGroupsRequest maxResults. */ + public maxResults?: (number|null); + + /** ListSnapshotGroupsRequest orderBy. */ + public orderBy?: (string|null); + + /** ListSnapshotGroupsRequest pageToken. */ + public pageToken?: (string|null); + + /** ListSnapshotGroupsRequest project. */ + public project: string; + + /** ListSnapshotGroupsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** + * Creates a new ListSnapshotGroupsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSnapshotGroupsRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IListSnapshotGroupsRequest): google.cloud.compute.v1beta.ListSnapshotGroupsRequest; + + /** + * Encodes the specified ListSnapshotGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListSnapshotGroupsRequest.verify|verify} messages. + * @param message ListSnapshotGroupsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IListSnapshotGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListSnapshotGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListSnapshotGroupsRequest.verify|verify} messages. + * @param message ListSnapshotGroupsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IListSnapshotGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListSnapshotGroupsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListSnapshotGroupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ListSnapshotGroupsRequest; + + /** + * Decodes a ListSnapshotGroupsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListSnapshotGroupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ListSnapshotGroupsRequest; + + /** + * Verifies a ListSnapshotGroupsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListSnapshotGroupsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSnapshotGroupsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ListSnapshotGroupsRequest; + + /** + * Creates a plain object from a ListSnapshotGroupsRequest message. Also converts values to other types if specified. + * @param message ListSnapshotGroupsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ListSnapshotGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListSnapshotGroupsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListSnapshotGroupsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListSnapshotsRequest. */ interface IListSnapshotsRequest { @@ -377376,6 +381917,9 @@ export namespace google { /** LocationPolicy targetShape */ targetShape?: (string|null); + + /** LocationPolicy zones */ + zones?: (google.cloud.compute.v1beta.ILocationPolicyZoneConfiguration[]|null); } /** Represents a LocationPolicy. */ @@ -377393,6 +381937,9 @@ export namespace google { /** LocationPolicy targetShape. */ public targetShape?: (string|null); + /** LocationPolicy zones. */ + public zones: google.cloud.compute.v1beta.ILocationPolicyZoneConfiguration[]; + /** * Creates a new LocationPolicy instance using the specified properties. * @param [properties] Properties to set @@ -377693,6 +382240,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a LocationPolicyZoneConfiguration. */ + interface ILocationPolicyZoneConfiguration { + + /** LocationPolicyZoneConfiguration zone */ + zone?: (string|null); + } + + /** Represents a LocationPolicyZoneConfiguration. */ + class LocationPolicyZoneConfiguration implements ILocationPolicyZoneConfiguration { + + /** + * Constructs a new LocationPolicyZoneConfiguration. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ILocationPolicyZoneConfiguration); + + /** LocationPolicyZoneConfiguration zone. */ + public zone?: (string|null); + + /** + * Creates a new LocationPolicyZoneConfiguration instance using the specified properties. + * @param [properties] Properties to set + * @returns LocationPolicyZoneConfiguration instance + */ + public static create(properties?: google.cloud.compute.v1beta.ILocationPolicyZoneConfiguration): google.cloud.compute.v1beta.LocationPolicyZoneConfiguration; + + /** + * Encodes the specified LocationPolicyZoneConfiguration message. Does not implicitly {@link google.cloud.compute.v1beta.LocationPolicyZoneConfiguration.verify|verify} messages. + * @param message LocationPolicyZoneConfiguration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ILocationPolicyZoneConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LocationPolicyZoneConfiguration message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.LocationPolicyZoneConfiguration.verify|verify} messages. + * @param message LocationPolicyZoneConfiguration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ILocationPolicyZoneConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LocationPolicyZoneConfiguration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LocationPolicyZoneConfiguration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.LocationPolicyZoneConfiguration; + + /** + * Decodes a LocationPolicyZoneConfiguration message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LocationPolicyZoneConfiguration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.LocationPolicyZoneConfiguration; + + /** + * Verifies a LocationPolicyZoneConfiguration message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LocationPolicyZoneConfiguration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LocationPolicyZoneConfiguration + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.LocationPolicyZoneConfiguration; + + /** + * Creates a plain object from a LocationPolicyZoneConfiguration message. Also converts values to other types if specified. + * @param message LocationPolicyZoneConfiguration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.LocationPolicyZoneConfiguration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LocationPolicyZoneConfiguration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LocationPolicyZoneConfiguration + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a MachineImage. */ interface IMachineImage { @@ -377726,6 +382370,9 @@ export namespace google { /** MachineImage name */ name?: (string|null); + /** MachineImage params */ + params?: (google.cloud.compute.v1beta.IMachineImageParams|null); + /** MachineImage satisfiesPzi */ satisfiesPzi?: (boolean|null); @@ -377796,6 +382443,9 @@ export namespace google { /** MachineImage name. */ public name?: (string|null); + /** MachineImage params. */ + public params?: (google.cloud.compute.v1beta.IMachineImageParams|null); + /** MachineImage satisfiesPzi. */ public satisfiesPzi?: (boolean|null); @@ -378044,6 +382694,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a MachineImageParams. */ + interface IMachineImageParams { + + /** MachineImageParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents a MachineImageParams. */ + class MachineImageParams implements IMachineImageParams { + + /** + * Constructs a new MachineImageParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IMachineImageParams); + + /** MachineImageParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new MachineImageParams instance using the specified properties. + * @param [properties] Properties to set + * @returns MachineImageParams instance + */ + public static create(properties?: google.cloud.compute.v1beta.IMachineImageParams): google.cloud.compute.v1beta.MachineImageParams; + + /** + * Encodes the specified MachineImageParams message. Does not implicitly {@link google.cloud.compute.v1beta.MachineImageParams.verify|verify} messages. + * @param message MachineImageParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IMachineImageParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MachineImageParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.MachineImageParams.verify|verify} messages. + * @param message MachineImageParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IMachineImageParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MachineImageParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MachineImageParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.MachineImageParams; + + /** + * Decodes a MachineImageParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MachineImageParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.MachineImageParams; + + /** + * Verifies a MachineImageParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MachineImageParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MachineImageParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.MachineImageParams; + + /** + * Creates a plain object from a MachineImageParams message. Also converts values to other types if specified. + * @param message MachineImageParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.MachineImageParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MachineImageParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MachineImageParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a MachineType. */ interface IMachineType { @@ -381732,6 +386479,137 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a NamedSet. */ + interface INamedSet { + + /** NamedSet description */ + description?: (string|null); + + /** NamedSet elements */ + elements?: (google.cloud.compute.v1beta.IExpr[]|null); + + /** NamedSet fingerprint */ + fingerprint?: (string|null); + + /** NamedSet name */ + name?: (string|null); + + /** NamedSet type */ + type?: (string|null); + } + + /** Represents a NamedSet. */ + class NamedSet implements INamedSet { + + /** + * Constructs a new NamedSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.INamedSet); + + /** NamedSet description. */ + public description?: (string|null); + + /** NamedSet elements. */ + public elements: google.cloud.compute.v1beta.IExpr[]; + + /** NamedSet fingerprint. */ + public fingerprint?: (string|null); + + /** NamedSet name. */ + public name?: (string|null); + + /** NamedSet type. */ + public type?: (string|null); + + /** + * Creates a new NamedSet instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedSet instance + */ + public static create(properties?: google.cloud.compute.v1beta.INamedSet): google.cloud.compute.v1beta.NamedSet; + + /** + * Encodes the specified NamedSet message. Does not implicitly {@link google.cloud.compute.v1beta.NamedSet.verify|verify} messages. + * @param message NamedSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.INamedSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NamedSet message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.NamedSet.verify|verify} messages. + * @param message NamedSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.INamedSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.NamedSet; + + /** + * Decodes a NamedSet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NamedSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.NamedSet; + + /** + * Verifies a NamedSet message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NamedSet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NamedSet + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.NamedSet; + + /** + * Creates a plain object from a NamedSet message. Also converts values to other types if specified. + * @param message NamedSet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.NamedSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NamedSet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NamedSet + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace NamedSet { + + /** Type enum. */ + enum Type { + UNDEFINED_TYPE = 0, + NAMED_SET_TYPE_COMMUNITY = 263444871, + NAMED_SET_TYPE_PREFIX = 228038036 + } + } + /** Properties of a NatIpInfo. */ interface INatIpInfo { @@ -385547,6 +390425,9 @@ export namespace google { /** NetworkInterface aliasIpRanges */ aliasIpRanges?: (google.cloud.compute.v1beta.IAliasIpRange[]|null); + /** NetworkInterface enableVpcScopedDns */ + enableVpcScopedDns?: (boolean|null); + /** NetworkInterface fingerprint */ fingerprint?: (string|null); @@ -385617,6 +390498,9 @@ export namespace google { /** NetworkInterface aliasIpRanges. */ public aliasIpRanges: google.cloud.compute.v1beta.IAliasIpRange[]; + /** NetworkInterface enableVpcScopedDns. */ + public enableVpcScopedDns?: (boolean|null); + /** NetworkInterface fingerprint. */ public fingerprint?: (string|null); @@ -388721,7 +393605,9 @@ export namespace google { /** FirewallPolicyTypes enum. */ enum FirewallPolicyTypes { UNDEFINED_FIREWALL_POLICY_TYPES = 0, + RDMA_FALCON_POLICY = 66315047, RDMA_ROCE_POLICY = 148757145, + ULL_POLICY = 100494364, VPC_POLICY = 74319208 } @@ -397972,6 +402858,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a PatchNamedSetRouterRequest. */ + interface IPatchNamedSetRouterRequest { + + /** PatchNamedSetRouterRequest namedSetResource */ + namedSetResource?: (google.cloud.compute.v1beta.INamedSet|null); + + /** PatchNamedSetRouterRequest project */ + project?: (string|null); + + /** PatchNamedSetRouterRequest region */ + region?: (string|null); + + /** PatchNamedSetRouterRequest requestId */ + requestId?: (string|null); + + /** PatchNamedSetRouterRequest router */ + router?: (string|null); + } + + /** Represents a PatchNamedSetRouterRequest. */ + class PatchNamedSetRouterRequest implements IPatchNamedSetRouterRequest { + + /** + * Constructs a new PatchNamedSetRouterRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IPatchNamedSetRouterRequest); + + /** PatchNamedSetRouterRequest namedSetResource. */ + public namedSetResource?: (google.cloud.compute.v1beta.INamedSet|null); + + /** PatchNamedSetRouterRequest project. */ + public project: string; + + /** PatchNamedSetRouterRequest region. */ + public region: string; + + /** PatchNamedSetRouterRequest requestId. */ + public requestId?: (string|null); + + /** PatchNamedSetRouterRequest router. */ + public router: string; + + /** + * Creates a new PatchNamedSetRouterRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PatchNamedSetRouterRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IPatchNamedSetRouterRequest): google.cloud.compute.v1beta.PatchNamedSetRouterRequest; + + /** + * Encodes the specified PatchNamedSetRouterRequest message. Does not implicitly {@link google.cloud.compute.v1beta.PatchNamedSetRouterRequest.verify|verify} messages. + * @param message PatchNamedSetRouterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IPatchNamedSetRouterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PatchNamedSetRouterRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.PatchNamedSetRouterRequest.verify|verify} messages. + * @param message PatchNamedSetRouterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IPatchNamedSetRouterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PatchNamedSetRouterRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PatchNamedSetRouterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.PatchNamedSetRouterRequest; + + /** + * Decodes a PatchNamedSetRouterRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PatchNamedSetRouterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.PatchNamedSetRouterRequest; + + /** + * Verifies a PatchNamedSetRouterRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PatchNamedSetRouterRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PatchNamedSetRouterRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.PatchNamedSetRouterRequest; + + /** + * Creates a plain object from a PatchNamedSetRouterRequest message. Also converts values to other types if specified. + * @param message PatchNamedSetRouterRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.PatchNamedSetRouterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PatchNamedSetRouterRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PatchNamedSetRouterRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a PatchNetworkAttachmentRequest. */ interface IPatchNetworkAttachmentRequest { @@ -417595,6 +422602,9 @@ export namespace google { /** Reservation description */ description?: (string|null); + /** Reservation earlyAccessMaintenance */ + earlyAccessMaintenance?: (string|null); + /** Reservation enableEmergentMaintenance */ enableEmergentMaintenance?: (boolean|null); @@ -417610,6 +422620,9 @@ export namespace google { /** Reservation name */ name?: (string|null); + /** Reservation params */ + params?: (google.cloud.compute.v1beta.IReservationParams|null); + /** Reservation protectionTier */ protectionTier?: (string|null); @@ -417683,6 +422696,9 @@ export namespace google { /** Reservation description. */ public description?: (string|null); + /** Reservation earlyAccessMaintenance. */ + public earlyAccessMaintenance?: (string|null); + /** Reservation enableEmergentMaintenance. */ public enableEmergentMaintenance?: (boolean|null); @@ -417698,6 +422714,9 @@ export namespace google { /** Reservation name. */ public name?: (string|null); + /** Reservation params. */ + public params?: (google.cloud.compute.v1beta.IReservationParams|null); + /** Reservation protectionTier. */ public protectionTier?: (string|null); @@ -417825,6 +422844,14 @@ export namespace google { FLEXIBLE = 379880395 } + /** EarlyAccessMaintenance enum. */ + enum EarlyAccessMaintenance { + UNDEFINED_EARLY_ACCESS_MAINTENANCE = 0, + NO_EARLY_ACCESS = 220751774, + WAVE1 = 82367576, + WAVE2 = 82367577 + } + /** ProtectionTier enum. */ enum ProtectionTier { UNDEFINED_PROTECTION_TIER = 0, @@ -419215,6 +424242,721 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ReservationParams. */ + interface IReservationParams { + + /** ReservationParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents a ReservationParams. */ + class ReservationParams implements IReservationParams { + + /** + * Constructs a new ReservationParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IReservationParams); + + /** ReservationParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new ReservationParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservationParams instance + */ + public static create(properties?: google.cloud.compute.v1beta.IReservationParams): google.cloud.compute.v1beta.ReservationParams; + + /** + * Encodes the specified ReservationParams message. Does not implicitly {@link google.cloud.compute.v1beta.ReservationParams.verify|verify} messages. + * @param message ReservationParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IReservationParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservationParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ReservationParams.verify|verify} messages. + * @param message ReservationParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IReservationParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservationParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservationParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ReservationParams; + + /** + * Decodes a ReservationParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservationParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ReservationParams; + + /** + * Verifies a ReservationParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservationParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservationParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ReservationParams; + + /** + * Creates a plain object from a ReservationParams message. Also converts values to other types if specified. + * @param message ReservationParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ReservationParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservationParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservationParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReservationSlot. */ + interface IReservationSlot { + + /** ReservationSlot creationTimestamp */ + creationTimestamp?: (string|null); + + /** ReservationSlot id */ + id?: (number|Long|string|null); + + /** ReservationSlot kind */ + kind?: (string|null); + + /** ReservationSlot name */ + name?: (string|null); + + /** ReservationSlot physicalTopology */ + physicalTopology?: (google.cloud.compute.v1beta.IReservationSlotPhysicalTopology|null); + + /** ReservationSlot selfLink */ + selfLink?: (string|null); + + /** ReservationSlot selfLinkWithId */ + selfLinkWithId?: (string|null); + + /** ReservationSlot shareSettings */ + shareSettings?: (google.cloud.compute.v1beta.IShareSettings|null); + + /** ReservationSlot state */ + state?: (string|null); + + /** ReservationSlot status */ + status?: (google.cloud.compute.v1beta.IReservationSlotStatus|null); + + /** ReservationSlot zone */ + zone?: (string|null); + } + + /** Represents a ReservationSlot. */ + class ReservationSlot implements IReservationSlot { + + /** + * Constructs a new ReservationSlot. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IReservationSlot); + + /** ReservationSlot creationTimestamp. */ + public creationTimestamp?: (string|null); + + /** ReservationSlot id. */ + public id?: (number|Long|string|null); + + /** ReservationSlot kind. */ + public kind?: (string|null); + + /** ReservationSlot name. */ + public name?: (string|null); + + /** ReservationSlot physicalTopology. */ + public physicalTopology?: (google.cloud.compute.v1beta.IReservationSlotPhysicalTopology|null); + + /** ReservationSlot selfLink. */ + public selfLink?: (string|null); + + /** ReservationSlot selfLinkWithId. */ + public selfLinkWithId?: (string|null); + + /** ReservationSlot shareSettings. */ + public shareSettings?: (google.cloud.compute.v1beta.IShareSettings|null); + + /** ReservationSlot state. */ + public state?: (string|null); + + /** ReservationSlot status. */ + public status?: (google.cloud.compute.v1beta.IReservationSlotStatus|null); + + /** ReservationSlot zone. */ + public zone?: (string|null); + + /** + * Creates a new ReservationSlot instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservationSlot instance + */ + public static create(properties?: google.cloud.compute.v1beta.IReservationSlot): google.cloud.compute.v1beta.ReservationSlot; + + /** + * Encodes the specified ReservationSlot message. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlot.verify|verify} messages. + * @param message ReservationSlot message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IReservationSlot, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservationSlot message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlot.verify|verify} messages. + * @param message ReservationSlot message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IReservationSlot, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservationSlot message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservationSlot + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ReservationSlot; + + /** + * Decodes a ReservationSlot message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservationSlot + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ReservationSlot; + + /** + * Verifies a ReservationSlot message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservationSlot message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservationSlot + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ReservationSlot; + + /** + * Creates a plain object from a ReservationSlot message. Also converts values to other types if specified. + * @param message ReservationSlot + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ReservationSlot, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservationSlot to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservationSlot + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ReservationSlot { + + /** State enum. */ + enum State { + UNDEFINED_STATE = 0, + ACTIVE = 314733318, + CREATING = 455564985, + DELETING = 528602024, + STATE_UNSPECIFIED = 470755401, + UNAVAILABLE = 413756464 + } + } + + /** Properties of a ReservationSlotPhysicalTopology. */ + interface IReservationSlotPhysicalTopology { + + /** ReservationSlotPhysicalTopology block */ + block?: (string|null); + + /** ReservationSlotPhysicalTopology cluster */ + cluster?: (string|null); + + /** ReservationSlotPhysicalTopology host */ + host?: (string|null); + + /** ReservationSlotPhysicalTopology subBlock */ + subBlock?: (string|null); + } + + /** Represents a ReservationSlotPhysicalTopology. */ + class ReservationSlotPhysicalTopology implements IReservationSlotPhysicalTopology { + + /** + * Constructs a new ReservationSlotPhysicalTopology. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IReservationSlotPhysicalTopology); + + /** ReservationSlotPhysicalTopology block. */ + public block?: (string|null); + + /** ReservationSlotPhysicalTopology cluster. */ + public cluster?: (string|null); + + /** ReservationSlotPhysicalTopology host. */ + public host?: (string|null); + + /** ReservationSlotPhysicalTopology subBlock. */ + public subBlock?: (string|null); + + /** + * Creates a new ReservationSlotPhysicalTopology instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservationSlotPhysicalTopology instance + */ + public static create(properties?: google.cloud.compute.v1beta.IReservationSlotPhysicalTopology): google.cloud.compute.v1beta.ReservationSlotPhysicalTopology; + + /** + * Encodes the specified ReservationSlotPhysicalTopology message. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotPhysicalTopology.verify|verify} messages. + * @param message ReservationSlotPhysicalTopology message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IReservationSlotPhysicalTopology, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservationSlotPhysicalTopology message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotPhysicalTopology.verify|verify} messages. + * @param message ReservationSlotPhysicalTopology message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IReservationSlotPhysicalTopology, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservationSlotPhysicalTopology message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservationSlotPhysicalTopology + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ReservationSlotPhysicalTopology; + + /** + * Decodes a ReservationSlotPhysicalTopology message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservationSlotPhysicalTopology + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ReservationSlotPhysicalTopology; + + /** + * Verifies a ReservationSlotPhysicalTopology message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservationSlotPhysicalTopology message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservationSlotPhysicalTopology + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ReservationSlotPhysicalTopology; + + /** + * Creates a plain object from a ReservationSlotPhysicalTopology message. Also converts values to other types if specified. + * @param message ReservationSlotPhysicalTopology + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ReservationSlotPhysicalTopology, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservationSlotPhysicalTopology to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservationSlotPhysicalTopology + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReservationSlotStatus. */ + interface IReservationSlotStatus { + + /** ReservationSlotStatus physicalTopology */ + physicalTopology?: (google.cloud.compute.v1beta.IReservationSlotPhysicalTopology|null); + + /** ReservationSlotStatus rdmaIpAddresses */ + rdmaIpAddresses?: (string[]|null); + + /** ReservationSlotStatus runningInstances */ + runningInstances?: (string[]|null); + } + + /** Represents a ReservationSlotStatus. */ + class ReservationSlotStatus implements IReservationSlotStatus { + + /** + * Constructs a new ReservationSlotStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IReservationSlotStatus); + + /** ReservationSlotStatus physicalTopology. */ + public physicalTopology?: (google.cloud.compute.v1beta.IReservationSlotPhysicalTopology|null); + + /** ReservationSlotStatus rdmaIpAddresses. */ + public rdmaIpAddresses: string[]; + + /** ReservationSlotStatus runningInstances. */ + public runningInstances: string[]; + + /** + * Creates a new ReservationSlotStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservationSlotStatus instance + */ + public static create(properties?: google.cloud.compute.v1beta.IReservationSlotStatus): google.cloud.compute.v1beta.ReservationSlotStatus; + + /** + * Encodes the specified ReservationSlotStatus message. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotStatus.verify|verify} messages. + * @param message ReservationSlotStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IReservationSlotStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservationSlotStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotStatus.verify|verify} messages. + * @param message ReservationSlotStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IReservationSlotStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservationSlotStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservationSlotStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ReservationSlotStatus; + + /** + * Decodes a ReservationSlotStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservationSlotStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ReservationSlotStatus; + + /** + * Verifies a ReservationSlotStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservationSlotStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservationSlotStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ReservationSlotStatus; + + /** + * Creates a plain object from a ReservationSlotStatus message. Also converts values to other types if specified. + * @param message ReservationSlotStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ReservationSlotStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservationSlotStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservationSlotStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReservationSlotsGetResponse. */ + interface IReservationSlotsGetResponse { + + /** ReservationSlotsGetResponse resource */ + resource?: (google.cloud.compute.v1beta.IReservationSlot|null); + } + + /** Represents a ReservationSlotsGetResponse. */ + class ReservationSlotsGetResponse implements IReservationSlotsGetResponse { + + /** + * Constructs a new ReservationSlotsGetResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IReservationSlotsGetResponse); + + /** ReservationSlotsGetResponse resource. */ + public resource?: (google.cloud.compute.v1beta.IReservationSlot|null); + + /** + * Creates a new ReservationSlotsGetResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservationSlotsGetResponse instance + */ + public static create(properties?: google.cloud.compute.v1beta.IReservationSlotsGetResponse): google.cloud.compute.v1beta.ReservationSlotsGetResponse; + + /** + * Encodes the specified ReservationSlotsGetResponse message. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotsGetResponse.verify|verify} messages. + * @param message ReservationSlotsGetResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IReservationSlotsGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservationSlotsGetResponse message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotsGetResponse.verify|verify} messages. + * @param message ReservationSlotsGetResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IReservationSlotsGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservationSlotsGetResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservationSlotsGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ReservationSlotsGetResponse; + + /** + * Decodes a ReservationSlotsGetResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservationSlotsGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ReservationSlotsGetResponse; + + /** + * Verifies a ReservationSlotsGetResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservationSlotsGetResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservationSlotsGetResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ReservationSlotsGetResponse; + + /** + * Creates a plain object from a ReservationSlotsGetResponse message. Also converts values to other types if specified. + * @param message ReservationSlotsGetResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ReservationSlotsGetResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservationSlotsGetResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservationSlotsGetResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReservationSlotsListResponse. */ + interface IReservationSlotsListResponse { + + /** ReservationSlotsListResponse id */ + id?: (string|null); + + /** ReservationSlotsListResponse items */ + items?: (google.cloud.compute.v1beta.IReservationSlot[]|null); + + /** ReservationSlotsListResponse kind */ + kind?: (string|null); + + /** ReservationSlotsListResponse nextPageToken */ + nextPageToken?: (string|null); + + /** ReservationSlotsListResponse selfLink */ + selfLink?: (string|null); + + /** ReservationSlotsListResponse warning */ + warning?: (google.cloud.compute.v1beta.IWarning|null); + } + + /** Represents a ReservationSlotsListResponse. */ + class ReservationSlotsListResponse implements IReservationSlotsListResponse { + + /** + * Constructs a new ReservationSlotsListResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IReservationSlotsListResponse); + + /** ReservationSlotsListResponse id. */ + public id?: (string|null); + + /** ReservationSlotsListResponse items. */ + public items: google.cloud.compute.v1beta.IReservationSlot[]; + + /** ReservationSlotsListResponse kind. */ + public kind?: (string|null); + + /** ReservationSlotsListResponse nextPageToken. */ + public nextPageToken?: (string|null); + + /** ReservationSlotsListResponse selfLink. */ + public selfLink?: (string|null); + + /** ReservationSlotsListResponse warning. */ + public warning?: (google.cloud.compute.v1beta.IWarning|null); + + /** + * Creates a new ReservationSlotsListResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservationSlotsListResponse instance + */ + public static create(properties?: google.cloud.compute.v1beta.IReservationSlotsListResponse): google.cloud.compute.v1beta.ReservationSlotsListResponse; + + /** + * Encodes the specified ReservationSlotsListResponse message. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotsListResponse.verify|verify} messages. + * @param message ReservationSlotsListResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IReservationSlotsListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservationSlotsListResponse message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotsListResponse.verify|verify} messages. + * @param message ReservationSlotsListResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IReservationSlotsListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservationSlotsListResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservationSlotsListResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ReservationSlotsListResponse; + + /** + * Decodes a ReservationSlotsListResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservationSlotsListResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ReservationSlotsListResponse; + + /** + * Verifies a ReservationSlotsListResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservationSlotsListResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservationSlotsListResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ReservationSlotsListResponse; + + /** + * Creates a plain object from a ReservationSlotsListResponse message. Also converts values to other types if specified. + * @param message ReservationSlotsListResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ReservationSlotsListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservationSlotsListResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservationSlotsListResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ReservationSubBlock. */ interface IReservationSubBlock { @@ -424127,6 +429869,9 @@ export namespace google { /** ResourceStatusEffectiveInstanceMetadata enableOsloginMetadataValue */ enableOsloginMetadataValue?: (boolean|null); + /** ResourceStatusEffectiveInstanceMetadata gceContainerDeclarationMetadataValue */ + gceContainerDeclarationMetadataValue?: (boolean|null); + /** ResourceStatusEffectiveInstanceMetadata serialPortEnableMetadataValue */ serialPortEnableMetadataValue?: (boolean|null); @@ -424161,6 +429906,9 @@ export namespace google { /** ResourceStatusEffectiveInstanceMetadata enableOsloginMetadataValue. */ public enableOsloginMetadataValue?: (boolean|null); + /** ResourceStatusEffectiveInstanceMetadata gceContainerDeclarationMetadataValue. */ + public gceContainerDeclarationMetadataValue?: (boolean|null); + /** ResourceStatusEffectiveInstanceMetadata serialPortEnableMetadataValue. */ public serialPortEnableMetadataValue?: (boolean|null); @@ -431051,6 +436799,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a RoutersGetNamedSetResponse. */ + interface IRoutersGetNamedSetResponse { + + /** RoutersGetNamedSetResponse etag */ + etag?: (string|null); + + /** RoutersGetNamedSetResponse resource */ + resource?: (google.cloud.compute.v1beta.INamedSet|null); + } + + /** Represents a RoutersGetNamedSetResponse. */ + class RoutersGetNamedSetResponse implements IRoutersGetNamedSetResponse { + + /** + * Constructs a new RoutersGetNamedSetResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IRoutersGetNamedSetResponse); + + /** RoutersGetNamedSetResponse etag. */ + public etag?: (string|null); + + /** RoutersGetNamedSetResponse resource. */ + public resource?: (google.cloud.compute.v1beta.INamedSet|null); + + /** + * Creates a new RoutersGetNamedSetResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RoutersGetNamedSetResponse instance + */ + public static create(properties?: google.cloud.compute.v1beta.IRoutersGetNamedSetResponse): google.cloud.compute.v1beta.RoutersGetNamedSetResponse; + + /** + * Encodes the specified RoutersGetNamedSetResponse message. Does not implicitly {@link google.cloud.compute.v1beta.RoutersGetNamedSetResponse.verify|verify} messages. + * @param message RoutersGetNamedSetResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IRoutersGetNamedSetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RoutersGetNamedSetResponse message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.RoutersGetNamedSetResponse.verify|verify} messages. + * @param message RoutersGetNamedSetResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IRoutersGetNamedSetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RoutersGetNamedSetResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RoutersGetNamedSetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.RoutersGetNamedSetResponse; + + /** + * Decodes a RoutersGetNamedSetResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RoutersGetNamedSetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.RoutersGetNamedSetResponse; + + /** + * Verifies a RoutersGetNamedSetResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RoutersGetNamedSetResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RoutersGetNamedSetResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.RoutersGetNamedSetResponse; + + /** + * Creates a plain object from a RoutersGetNamedSetResponse message. Also converts values to other types if specified. + * @param message RoutersGetNamedSetResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.RoutersGetNamedSetResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RoutersGetNamedSetResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RoutersGetNamedSetResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a RoutersGetRoutePolicyResponse. */ interface IRoutersGetRoutePolicyResponse { @@ -431287,6 +437138,145 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a RoutersListNamedSets. */ + interface IRoutersListNamedSets { + + /** RoutersListNamedSets etag */ + etag?: (string|null); + + /** RoutersListNamedSets id */ + id?: (string|null); + + /** RoutersListNamedSets kind */ + kind?: (string|null); + + /** RoutersListNamedSets nextPageToken */ + nextPageToken?: (string|null); + + /** RoutersListNamedSets result */ + result?: (google.cloud.compute.v1beta.INamedSet[]|null); + + /** RoutersListNamedSets selfLink */ + selfLink?: (string|null); + + /** RoutersListNamedSets unreachables */ + unreachables?: (string[]|null); + + /** RoutersListNamedSets warning */ + warning?: (google.cloud.compute.v1beta.IWarning|null); + } + + /** Represents a RoutersListNamedSets. */ + class RoutersListNamedSets implements IRoutersListNamedSets { + + /** + * Constructs a new RoutersListNamedSets. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IRoutersListNamedSets); + + /** RoutersListNamedSets etag. */ + public etag?: (string|null); + + /** RoutersListNamedSets id. */ + public id?: (string|null); + + /** RoutersListNamedSets kind. */ + public kind?: (string|null); + + /** RoutersListNamedSets nextPageToken. */ + public nextPageToken?: (string|null); + + /** RoutersListNamedSets result. */ + public result: google.cloud.compute.v1beta.INamedSet[]; + + /** RoutersListNamedSets selfLink. */ + public selfLink?: (string|null); + + /** RoutersListNamedSets unreachables. */ + public unreachables: string[]; + + /** RoutersListNamedSets warning. */ + public warning?: (google.cloud.compute.v1beta.IWarning|null); + + /** + * Creates a new RoutersListNamedSets instance using the specified properties. + * @param [properties] Properties to set + * @returns RoutersListNamedSets instance + */ + public static create(properties?: google.cloud.compute.v1beta.IRoutersListNamedSets): google.cloud.compute.v1beta.RoutersListNamedSets; + + /** + * Encodes the specified RoutersListNamedSets message. Does not implicitly {@link google.cloud.compute.v1beta.RoutersListNamedSets.verify|verify} messages. + * @param message RoutersListNamedSets message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IRoutersListNamedSets, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RoutersListNamedSets message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.RoutersListNamedSets.verify|verify} messages. + * @param message RoutersListNamedSets message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IRoutersListNamedSets, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RoutersListNamedSets message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RoutersListNamedSets + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.RoutersListNamedSets; + + /** + * Decodes a RoutersListNamedSets message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RoutersListNamedSets + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.RoutersListNamedSets; + + /** + * Verifies a RoutersListNamedSets message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RoutersListNamedSets message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RoutersListNamedSets + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.RoutersListNamedSets; + + /** + * Creates a plain object from a RoutersListNamedSets message. Also converts values to other types if specified. + * @param message RoutersListNamedSets + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.RoutersListNamedSets, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RoutersListNamedSets to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RoutersListNamedSets + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a RoutersListRoutePolicies. */ interface IRoutersListRoutePolicies { @@ -432297,6 +438287,9 @@ export namespace google { /** Scheduling preemptible */ preemptible?: (boolean|null); + /** Scheduling preemptionNoticeDuration */ + preemptionNoticeDuration?: (google.cloud.compute.v1beta.IDuration|null); + /** Scheduling provisioningModel */ provisioningModel?: (string|null); @@ -432361,6 +438354,9 @@ export namespace google { /** Scheduling preemptible. */ public preemptible?: (boolean|null); + /** Scheduling preemptionNoticeDuration. */ + public preemptionNoticeDuration?: (google.cloud.compute.v1beta.IDuration|null); + /** Scheduling provisioningModel. */ public provisioningModel?: (string|null); @@ -441413,6 +447409,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SetIamPolicyInstantSnapshotGroupRequest. */ + interface ISetIamPolicyInstantSnapshotGroupRequest { + + /** SetIamPolicyInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** SetIamPolicyInstantSnapshotGroupRequest resource */ + resource?: (string|null); + + /** SetIamPolicyInstantSnapshotGroupRequest zone */ + zone?: (string|null); + + /** SetIamPolicyInstantSnapshotGroupRequest zoneSetPolicyRequestResource */ + zoneSetPolicyRequestResource?: (google.cloud.compute.v1beta.IZoneSetPolicyRequest|null); + } + + /** Represents a SetIamPolicyInstantSnapshotGroupRequest. */ + class SetIamPolicyInstantSnapshotGroupRequest implements ISetIamPolicyInstantSnapshotGroupRequest { + + /** + * Constructs a new SetIamPolicyInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest); + + /** SetIamPolicyInstantSnapshotGroupRequest project. */ + public project: string; + + /** SetIamPolicyInstantSnapshotGroupRequest resource. */ + public resource: string; + + /** SetIamPolicyInstantSnapshotGroupRequest zone. */ + public zone: string; + + /** SetIamPolicyInstantSnapshotGroupRequest zoneSetPolicyRequestResource. */ + public zoneSetPolicyRequestResource?: (google.cloud.compute.v1beta.IZoneSetPolicyRequest|null); + + /** + * Creates a new SetIamPolicyInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetIamPolicyInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest): google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest; + + /** + * Encodes the specified SetIamPolicyInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest.verify|verify} messages. + * @param message SetIamPolicyInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetIamPolicyInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest.verify|verify} messages. + * @param message SetIamPolicyInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetIamPolicyInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetIamPolicyInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest; + + /** + * Decodes a SetIamPolicyInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetIamPolicyInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest; + + /** + * Verifies a SetIamPolicyInstantSnapshotGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetIamPolicyInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetIamPolicyInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a SetIamPolicyInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message SetIamPolicyInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetIamPolicyInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetIamPolicyInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SetIamPolicyInstantSnapshotRequest. */ interface ISetIamPolicyInstantSnapshotRequest { @@ -442763,6 +448874,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SetIamPolicyRegionInstantSnapshotGroupRequest. */ + interface ISetIamPolicyRegionInstantSnapshotGroupRequest { + + /** SetIamPolicyRegionInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** SetIamPolicyRegionInstantSnapshotGroupRequest region */ + region?: (string|null); + + /** SetIamPolicyRegionInstantSnapshotGroupRequest regionSetPolicyRequestResource */ + regionSetPolicyRequestResource?: (google.cloud.compute.v1beta.IRegionSetPolicyRequest|null); + + /** SetIamPolicyRegionInstantSnapshotGroupRequest resource */ + resource?: (string|null); + } + + /** Represents a SetIamPolicyRegionInstantSnapshotGroupRequest. */ + class SetIamPolicyRegionInstantSnapshotGroupRequest implements ISetIamPolicyRegionInstantSnapshotGroupRequest { + + /** + * Constructs a new SetIamPolicyRegionInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest); + + /** SetIamPolicyRegionInstantSnapshotGroupRequest project. */ + public project: string; + + /** SetIamPolicyRegionInstantSnapshotGroupRequest region. */ + public region: string; + + /** SetIamPolicyRegionInstantSnapshotGroupRequest regionSetPolicyRequestResource. */ + public regionSetPolicyRequestResource?: (google.cloud.compute.v1beta.IRegionSetPolicyRequest|null); + + /** SetIamPolicyRegionInstantSnapshotGroupRequest resource. */ + public resource: string; + + /** + * Creates a new SetIamPolicyRegionInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetIamPolicyRegionInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest): google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest; + + /** + * Encodes the specified SetIamPolicyRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message SetIamPolicyRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetIamPolicyRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message SetIamPolicyRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetIamPolicyRegionInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetIamPolicyRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest; + + /** + * Decodes a SetIamPolicyRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetIamPolicyRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest; + + /** + * Verifies a SetIamPolicyRegionInstantSnapshotGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetIamPolicyRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetIamPolicyRegionInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a SetIamPolicyRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message SetIamPolicyRegionInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetIamPolicyRegionInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetIamPolicyRegionInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SetIamPolicyRegionInstantSnapshotRequest. */ interface ISetIamPolicyRegionInstantSnapshotRequest { @@ -443695,6 +449921,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SetIamPolicySnapshotGroupRequest. */ + interface ISetIamPolicySnapshotGroupRequest { + + /** SetIamPolicySnapshotGroupRequest globalSetPolicyRequestResource */ + globalSetPolicyRequestResource?: (google.cloud.compute.v1beta.IGlobalSetPolicyRequest|null); + + /** SetIamPolicySnapshotGroupRequest project */ + project?: (string|null); + + /** SetIamPolicySnapshotGroupRequest resource */ + resource?: (string|null); + } + + /** Represents a SetIamPolicySnapshotGroupRequest. */ + class SetIamPolicySnapshotGroupRequest implements ISetIamPolicySnapshotGroupRequest { + + /** + * Constructs a new SetIamPolicySnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest); + + /** SetIamPolicySnapshotGroupRequest globalSetPolicyRequestResource. */ + public globalSetPolicyRequestResource?: (google.cloud.compute.v1beta.IGlobalSetPolicyRequest|null); + + /** SetIamPolicySnapshotGroupRequest project. */ + public project: string; + + /** SetIamPolicySnapshotGroupRequest resource. */ + public resource: string; + + /** + * Creates a new SetIamPolicySnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetIamPolicySnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest): google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest; + + /** + * Encodes the specified SetIamPolicySnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest.verify|verify} messages. + * @param message SetIamPolicySnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetIamPolicySnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest.verify|verify} messages. + * @param message SetIamPolicySnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetIamPolicySnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetIamPolicySnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest; + + /** + * Decodes a SetIamPolicySnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetIamPolicySnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest; + + /** + * Verifies a SetIamPolicySnapshotGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetIamPolicySnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetIamPolicySnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest; + + /** + * Creates a plain object from a SetIamPolicySnapshotGroupRequest message. Also converts values to other types if specified. + * @param message SetIamPolicySnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetIamPolicySnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetIamPolicySnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SetIamPolicySnapshotRequest. */ interface ISetIamPolicySnapshotRequest { @@ -452597,6 +458932,12 @@ export namespace google { /** Snapshot snapshotEncryptionKey */ snapshotEncryptionKey?: (google.cloud.compute.v1beta.ICustomerEncryptionKey|null); + /** Snapshot snapshotGroupId */ + snapshotGroupId?: (string|null); + + /** Snapshot snapshotGroupName */ + snapshotGroupName?: (string|null); + /** Snapshot snapshotType */ snapshotType?: (string|null); @@ -452727,6 +459068,12 @@ export namespace google { /** Snapshot snapshotEncryptionKey. */ public snapshotEncryptionKey?: (google.cloud.compute.v1beta.ICustomerEncryptionKey|null); + /** Snapshot snapshotGroupId. */ + public snapshotGroupId?: (string|null); + + /** Snapshot snapshotGroupName. */ + public snapshotGroupName?: (string|null); + /** Snapshot snapshotType. */ public snapshotType?: (string|null); @@ -453024,6 +459371,493 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SnapshotGroup. */ + interface ISnapshotGroup { + + /** SnapshotGroup creationTimestamp */ + creationTimestamp?: (string|null); + + /** SnapshotGroup description */ + description?: (string|null); + + /** SnapshotGroup id */ + id?: (number|Long|string|null); + + /** SnapshotGroup kind */ + kind?: (string|null); + + /** SnapshotGroup name */ + name?: (string|null); + + /** SnapshotGroup selfLink */ + selfLink?: (string|null); + + /** SnapshotGroup selfLinkWithId */ + selfLinkWithId?: (string|null); + + /** SnapshotGroup sourceInfo */ + sourceInfo?: (google.cloud.compute.v1beta.ISnapshotGroupSourceInfo|null); + + /** SnapshotGroup sourceInstantSnapshotGroup */ + sourceInstantSnapshotGroup?: (string|null); + + /** SnapshotGroup sourceInstantSnapshotGroupInfo */ + sourceInstantSnapshotGroupInfo?: (google.cloud.compute.v1beta.ISnapshotGroupSourceInstantSnapshotGroupInfo|null); + + /** SnapshotGroup status */ + status?: (string|null); + } + + /** Represents a SnapshotGroup. */ + class SnapshotGroup implements ISnapshotGroup { + + /** + * Constructs a new SnapshotGroup. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ISnapshotGroup); + + /** SnapshotGroup creationTimestamp. */ + public creationTimestamp?: (string|null); + + /** SnapshotGroup description. */ + public description?: (string|null); + + /** SnapshotGroup id. */ + public id?: (number|Long|string|null); + + /** SnapshotGroup kind. */ + public kind?: (string|null); + + /** SnapshotGroup name. */ + public name?: (string|null); + + /** SnapshotGroup selfLink. */ + public selfLink?: (string|null); + + /** SnapshotGroup selfLinkWithId. */ + public selfLinkWithId?: (string|null); + + /** SnapshotGroup sourceInfo. */ + public sourceInfo?: (google.cloud.compute.v1beta.ISnapshotGroupSourceInfo|null); + + /** SnapshotGroup sourceInstantSnapshotGroup. */ + public sourceInstantSnapshotGroup?: (string|null); + + /** SnapshotGroup sourceInstantSnapshotGroupInfo. */ + public sourceInstantSnapshotGroupInfo?: (google.cloud.compute.v1beta.ISnapshotGroupSourceInstantSnapshotGroupInfo|null); + + /** SnapshotGroup status. */ + public status?: (string|null); + + /** + * Creates a new SnapshotGroup instance using the specified properties. + * @param [properties] Properties to set + * @returns SnapshotGroup instance + */ + public static create(properties?: google.cloud.compute.v1beta.ISnapshotGroup): google.cloud.compute.v1beta.SnapshotGroup; + + /** + * Encodes the specified SnapshotGroup message. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotGroup.verify|verify} messages. + * @param message SnapshotGroup message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ISnapshotGroup, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SnapshotGroup message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotGroup.verify|verify} messages. + * @param message SnapshotGroup message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ISnapshotGroup, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SnapshotGroup message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SnapshotGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.SnapshotGroup; + + /** + * Decodes a SnapshotGroup message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SnapshotGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.SnapshotGroup; + + /** + * Verifies a SnapshotGroup message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SnapshotGroup message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SnapshotGroup + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.SnapshotGroup; + + /** + * Creates a plain object from a SnapshotGroup message. Also converts values to other types if specified. + * @param message SnapshotGroup + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.SnapshotGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SnapshotGroup to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SnapshotGroup + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace SnapshotGroup { + + /** Status enum. */ + enum Status { + UNDEFINED_STATUS = 0, + CREATING = 455564985, + DELETING = 528602024, + FAILED = 455706685, + INVALID = 530283991, + READY = 77848963, + UNKNOWN = 433141802, + UPLOADING = 267603489 + } + } + + /** Properties of a SnapshotGroupParameters. */ + interface ISnapshotGroupParameters { + + /** SnapshotGroupParameters replicaZones */ + replicaZones?: (string[]|null); + + /** SnapshotGroupParameters sourceSnapshotGroup */ + sourceSnapshotGroup?: (string|null); + + /** SnapshotGroupParameters type */ + type?: (string|null); + } + + /** Represents a SnapshotGroupParameters. */ + class SnapshotGroupParameters implements ISnapshotGroupParameters { + + /** + * Constructs a new SnapshotGroupParameters. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ISnapshotGroupParameters); + + /** SnapshotGroupParameters replicaZones. */ + public replicaZones: string[]; + + /** SnapshotGroupParameters sourceSnapshotGroup. */ + public sourceSnapshotGroup?: (string|null); + + /** SnapshotGroupParameters type. */ + public type?: (string|null); + + /** + * Creates a new SnapshotGroupParameters instance using the specified properties. + * @param [properties] Properties to set + * @returns SnapshotGroupParameters instance + */ + public static create(properties?: google.cloud.compute.v1beta.ISnapshotGroupParameters): google.cloud.compute.v1beta.SnapshotGroupParameters; + + /** + * Encodes the specified SnapshotGroupParameters message. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotGroupParameters.verify|verify} messages. + * @param message SnapshotGroupParameters message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ISnapshotGroupParameters, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SnapshotGroupParameters message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotGroupParameters.verify|verify} messages. + * @param message SnapshotGroupParameters message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ISnapshotGroupParameters, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SnapshotGroupParameters message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SnapshotGroupParameters + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.SnapshotGroupParameters; + + /** + * Decodes a SnapshotGroupParameters message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SnapshotGroupParameters + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.SnapshotGroupParameters; + + /** + * Verifies a SnapshotGroupParameters message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SnapshotGroupParameters message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SnapshotGroupParameters + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.SnapshotGroupParameters; + + /** + * Creates a plain object from a SnapshotGroupParameters message. Also converts values to other types if specified. + * @param message SnapshotGroupParameters + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.SnapshotGroupParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SnapshotGroupParameters to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SnapshotGroupParameters + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SnapshotGroupSourceInfo. */ + interface ISnapshotGroupSourceInfo { + + /** SnapshotGroupSourceInfo consistencyGroup */ + consistencyGroup?: (string|null); + + /** SnapshotGroupSourceInfo consistencyGroupId */ + consistencyGroupId?: (string|null); + } + + /** Represents a SnapshotGroupSourceInfo. */ + class SnapshotGroupSourceInfo implements ISnapshotGroupSourceInfo { + + /** + * Constructs a new SnapshotGroupSourceInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ISnapshotGroupSourceInfo); + + /** SnapshotGroupSourceInfo consistencyGroup. */ + public consistencyGroup?: (string|null); + + /** SnapshotGroupSourceInfo consistencyGroupId. */ + public consistencyGroupId?: (string|null); + + /** + * Creates a new SnapshotGroupSourceInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SnapshotGroupSourceInfo instance + */ + public static create(properties?: google.cloud.compute.v1beta.ISnapshotGroupSourceInfo): google.cloud.compute.v1beta.SnapshotGroupSourceInfo; + + /** + * Encodes the specified SnapshotGroupSourceInfo message. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotGroupSourceInfo.verify|verify} messages. + * @param message SnapshotGroupSourceInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ISnapshotGroupSourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SnapshotGroupSourceInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotGroupSourceInfo.verify|verify} messages. + * @param message SnapshotGroupSourceInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ISnapshotGroupSourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SnapshotGroupSourceInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SnapshotGroupSourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.SnapshotGroupSourceInfo; + + /** + * Decodes a SnapshotGroupSourceInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SnapshotGroupSourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.SnapshotGroupSourceInfo; + + /** + * Verifies a SnapshotGroupSourceInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SnapshotGroupSourceInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SnapshotGroupSourceInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.SnapshotGroupSourceInfo; + + /** + * Creates a plain object from a SnapshotGroupSourceInfo message. Also converts values to other types if specified. + * @param message SnapshotGroupSourceInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.SnapshotGroupSourceInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SnapshotGroupSourceInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SnapshotGroupSourceInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SnapshotGroupSourceInstantSnapshotGroupInfo. */ + interface ISnapshotGroupSourceInstantSnapshotGroupInfo { + + /** SnapshotGroupSourceInstantSnapshotGroupInfo instantSnapshotGroup */ + instantSnapshotGroup?: (string|null); + + /** SnapshotGroupSourceInstantSnapshotGroupInfo instantSnapshotGroupId */ + instantSnapshotGroupId?: (string|null); + } + + /** Represents a SnapshotGroupSourceInstantSnapshotGroupInfo. */ + class SnapshotGroupSourceInstantSnapshotGroupInfo implements ISnapshotGroupSourceInstantSnapshotGroupInfo { + + /** + * Constructs a new SnapshotGroupSourceInstantSnapshotGroupInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ISnapshotGroupSourceInstantSnapshotGroupInfo); + + /** SnapshotGroupSourceInstantSnapshotGroupInfo instantSnapshotGroup. */ + public instantSnapshotGroup?: (string|null); + + /** SnapshotGroupSourceInstantSnapshotGroupInfo instantSnapshotGroupId. */ + public instantSnapshotGroupId?: (string|null); + + /** + * Creates a new SnapshotGroupSourceInstantSnapshotGroupInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SnapshotGroupSourceInstantSnapshotGroupInfo instance + */ + public static create(properties?: google.cloud.compute.v1beta.ISnapshotGroupSourceInstantSnapshotGroupInfo): google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo; + + /** + * Encodes the specified SnapshotGroupSourceInstantSnapshotGroupInfo message. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo.verify|verify} messages. + * @param message SnapshotGroupSourceInstantSnapshotGroupInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ISnapshotGroupSourceInstantSnapshotGroupInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SnapshotGroupSourceInstantSnapshotGroupInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo.verify|verify} messages. + * @param message SnapshotGroupSourceInstantSnapshotGroupInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ISnapshotGroupSourceInstantSnapshotGroupInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SnapshotGroupSourceInstantSnapshotGroupInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SnapshotGroupSourceInstantSnapshotGroupInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo; + + /** + * Decodes a SnapshotGroupSourceInstantSnapshotGroupInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SnapshotGroupSourceInstantSnapshotGroupInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo; + + /** + * Verifies a SnapshotGroupSourceInstantSnapshotGroupInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SnapshotGroupSourceInstantSnapshotGroupInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SnapshotGroupSourceInstantSnapshotGroupInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo; + + /** + * Creates a plain object from a SnapshotGroupSourceInstantSnapshotGroupInfo message. Also converts values to other types if specified. + * @param message SnapshotGroupSourceInstantSnapshotGroupInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SnapshotGroupSourceInstantSnapshotGroupInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SnapshotGroupSourceInstantSnapshotGroupInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SnapshotList. */ interface ISnapshotList { @@ -467211,6 +474045,9 @@ export namespace google { /** TargetVpnGateway network */ network?: (string|null); + /** TargetVpnGateway params */ + params?: (google.cloud.compute.v1beta.ITargetVpnGatewayParams|null); + /** TargetVpnGateway region */ region?: (string|null); @@ -467260,6 +474097,9 @@ export namespace google { /** TargetVpnGateway network. */ public network?: (string|null); + /** TargetVpnGateway params. */ + public params?: (google.cloud.compute.v1beta.ITargetVpnGatewayParams|null); + /** TargetVpnGateway region. */ public region?: (string|null); @@ -467622,6 +474462,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TargetVpnGatewayParams. */ + interface ITargetVpnGatewayParams { + + /** TargetVpnGatewayParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents a TargetVpnGatewayParams. */ + class TargetVpnGatewayParams implements ITargetVpnGatewayParams { + + /** + * Constructs a new TargetVpnGatewayParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ITargetVpnGatewayParams); + + /** TargetVpnGatewayParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new TargetVpnGatewayParams instance using the specified properties. + * @param [properties] Properties to set + * @returns TargetVpnGatewayParams instance + */ + public static create(properties?: google.cloud.compute.v1beta.ITargetVpnGatewayParams): google.cloud.compute.v1beta.TargetVpnGatewayParams; + + /** + * Encodes the specified TargetVpnGatewayParams message. Does not implicitly {@link google.cloud.compute.v1beta.TargetVpnGatewayParams.verify|verify} messages. + * @param message TargetVpnGatewayParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ITargetVpnGatewayParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TargetVpnGatewayParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TargetVpnGatewayParams.verify|verify} messages. + * @param message TargetVpnGatewayParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ITargetVpnGatewayParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TargetVpnGatewayParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TargetVpnGatewayParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.TargetVpnGatewayParams; + + /** + * Decodes a TargetVpnGatewayParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TargetVpnGatewayParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.TargetVpnGatewayParams; + + /** + * Verifies a TargetVpnGatewayParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TargetVpnGatewayParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TargetVpnGatewayParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.TargetVpnGatewayParams; + + /** + * Creates a plain object from a TargetVpnGatewayParams message. Also converts values to other types if specified. + * @param message TargetVpnGatewayParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.TargetVpnGatewayParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TargetVpnGatewayParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TargetVpnGatewayParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TargetVpnGatewaysScopedList. */ interface ITargetVpnGatewaysScopedList { @@ -469759,6 +476696,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TestIamPermissionsInstantSnapshotGroupRequest. */ + interface ITestIamPermissionsInstantSnapshotGroupRequest { + + /** TestIamPermissionsInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** TestIamPermissionsInstantSnapshotGroupRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsInstantSnapshotGroupRequest testPermissionsRequestResource */ + testPermissionsRequestResource?: (google.cloud.compute.v1beta.ITestPermissionsRequest|null); + + /** TestIamPermissionsInstantSnapshotGroupRequest zone */ + zone?: (string|null); + } + + /** Represents a TestIamPermissionsInstantSnapshotGroupRequest. */ + class TestIamPermissionsInstantSnapshotGroupRequest implements ITestIamPermissionsInstantSnapshotGroupRequest { + + /** + * Constructs a new TestIamPermissionsInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest); + + /** TestIamPermissionsInstantSnapshotGroupRequest project. */ + public project: string; + + /** TestIamPermissionsInstantSnapshotGroupRequest resource. */ + public resource: string; + + /** TestIamPermissionsInstantSnapshotGroupRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1beta.ITestPermissionsRequest|null); + + /** TestIamPermissionsInstantSnapshotGroupRequest zone. */ + public zone: string; + + /** + * Creates a new TestIamPermissionsInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest): google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest; + + /** + * Encodes the specified TestIamPermissionsInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest.verify|verify} messages. + * @param message TestIamPermissionsInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest.verify|verify} messages. + * @param message TestIamPermissionsInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest; + + /** + * Decodes a TestIamPermissionsInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest; + + /** + * Verifies a TestIamPermissionsInstantSnapshotGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TestIamPermissionsInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a TestIamPermissionsInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TestIamPermissionsInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TestIamPermissionsInstantSnapshotRequest. */ interface ITestIamPermissionsInstantSnapshotRequest { @@ -472816,6 +479868,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TestIamPermissionsRegionInstantSnapshotGroupRequest. */ + interface ITestIamPermissionsRegionInstantSnapshotGroupRequest { + + /** TestIamPermissionsRegionInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** TestIamPermissionsRegionInstantSnapshotGroupRequest region */ + region?: (string|null); + + /** TestIamPermissionsRegionInstantSnapshotGroupRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsRegionInstantSnapshotGroupRequest testPermissionsRequestResource */ + testPermissionsRequestResource?: (google.cloud.compute.v1beta.ITestPermissionsRequest|null); + } + + /** Represents a TestIamPermissionsRegionInstantSnapshotGroupRequest. */ + class TestIamPermissionsRegionInstantSnapshotGroupRequest implements ITestIamPermissionsRegionInstantSnapshotGroupRequest { + + /** + * Constructs a new TestIamPermissionsRegionInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest); + + /** TestIamPermissionsRegionInstantSnapshotGroupRequest project. */ + public project: string; + + /** TestIamPermissionsRegionInstantSnapshotGroupRequest region. */ + public region: string; + + /** TestIamPermissionsRegionInstantSnapshotGroupRequest resource. */ + public resource: string; + + /** TestIamPermissionsRegionInstantSnapshotGroupRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1beta.ITestPermissionsRequest|null); + + /** + * Creates a new TestIamPermissionsRegionInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsRegionInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest): google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest; + + /** + * Encodes the specified TestIamPermissionsRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsRegionInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest; + + /** + * Decodes a TestIamPermissionsRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest; + + /** + * Verifies a TestIamPermissionsRegionInstantSnapshotGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TestIamPermissionsRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsRegionInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a TestIamPermissionsRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsRegionInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsRegionInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TestIamPermissionsRegionInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TestIamPermissionsRegionInstantSnapshotRequest. */ interface ITestIamPermissionsRegionInstantSnapshotRequest { @@ -474886,6 +482053,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TestIamPermissionsSnapshotGroupRequest. */ + interface ITestIamPermissionsSnapshotGroupRequest { + + /** TestIamPermissionsSnapshotGroupRequest project */ + project?: (string|null); + + /** TestIamPermissionsSnapshotGroupRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsSnapshotGroupRequest testPermissionsRequestResource */ + testPermissionsRequestResource?: (google.cloud.compute.v1beta.ITestPermissionsRequest|null); + } + + /** Represents a TestIamPermissionsSnapshotGroupRequest. */ + class TestIamPermissionsSnapshotGroupRequest implements ITestIamPermissionsSnapshotGroupRequest { + + /** + * Constructs a new TestIamPermissionsSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest); + + /** TestIamPermissionsSnapshotGroupRequest project. */ + public project: string; + + /** TestIamPermissionsSnapshotGroupRequest resource. */ + public resource: string; + + /** TestIamPermissionsSnapshotGroupRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1beta.ITestPermissionsRequest|null); + + /** + * Creates a new TestIamPermissionsSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest): google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest; + + /** + * Encodes the specified TestIamPermissionsSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest.verify|verify} messages. + * @param message TestIamPermissionsSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest.verify|verify} messages. + * @param message TestIamPermissionsSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest; + + /** + * Decodes a TestIamPermissionsSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest; + + /** + * Verifies a TestIamPermissionsSnapshotGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TestIamPermissionsSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest; + + /** + * Creates a plain object from a TestIamPermissionsSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TestIamPermissionsSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TestIamPermissionsSnapshotRequest. */ interface ITestIamPermissionsSnapshotRequest { @@ -478742,6 +486018,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an UpdateNamedSetRouterRequest. */ + interface IUpdateNamedSetRouterRequest { + + /** UpdateNamedSetRouterRequest namedSetResource */ + namedSetResource?: (google.cloud.compute.v1beta.INamedSet|null); + + /** UpdateNamedSetRouterRequest project */ + project?: (string|null); + + /** UpdateNamedSetRouterRequest region */ + region?: (string|null); + + /** UpdateNamedSetRouterRequest requestId */ + requestId?: (string|null); + + /** UpdateNamedSetRouterRequest router */ + router?: (string|null); + } + + /** Represents an UpdateNamedSetRouterRequest. */ + class UpdateNamedSetRouterRequest implements IUpdateNamedSetRouterRequest { + + /** + * Constructs a new UpdateNamedSetRouterRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest); + + /** UpdateNamedSetRouterRequest namedSetResource. */ + public namedSetResource?: (google.cloud.compute.v1beta.INamedSet|null); + + /** UpdateNamedSetRouterRequest project. */ + public project: string; + + /** UpdateNamedSetRouterRequest region. */ + public region: string; + + /** UpdateNamedSetRouterRequest requestId. */ + public requestId?: (string|null); + + /** UpdateNamedSetRouterRequest router. */ + public router: string; + + /** + * Creates a new UpdateNamedSetRouterRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateNamedSetRouterRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest): google.cloud.compute.v1beta.UpdateNamedSetRouterRequest; + + /** + * Encodes the specified UpdateNamedSetRouterRequest message. Does not implicitly {@link google.cloud.compute.v1beta.UpdateNamedSetRouterRequest.verify|verify} messages. + * @param message UpdateNamedSetRouterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateNamedSetRouterRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UpdateNamedSetRouterRequest.verify|verify} messages. + * @param message UpdateNamedSetRouterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateNamedSetRouterRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateNamedSetRouterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.UpdateNamedSetRouterRequest; + + /** + * Decodes an UpdateNamedSetRouterRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateNamedSetRouterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.UpdateNamedSetRouterRequest; + + /** + * Verifies an UpdateNamedSetRouterRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateNamedSetRouterRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateNamedSetRouterRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.UpdateNamedSetRouterRequest; + + /** + * Creates a plain object from an UpdateNamedSetRouterRequest message. Also converts values to other types if specified. + * @param message UpdateNamedSetRouterRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.UpdateNamedSetRouterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateNamedSetRouterRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateNamedSetRouterRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an UpdateNetworkInterfaceInstanceRequest. */ interface IUpdateNetworkInterfaceInstanceRequest { @@ -480345,6 +487742,133 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an UpdateReservationSlotRequest. */ + interface IUpdateReservationSlotRequest { + + /** UpdateReservationSlotRequest parentName */ + parentName?: (string|null); + + /** UpdateReservationSlotRequest project */ + project?: (string|null); + + /** UpdateReservationSlotRequest reservationSlot */ + reservationSlot?: (string|null); + + /** UpdateReservationSlotRequest reservationSlotResource */ + reservationSlotResource?: (google.cloud.compute.v1beta.IReservationSlot|null); + + /** UpdateReservationSlotRequest updateMask */ + updateMask?: (string|null); + + /** UpdateReservationSlotRequest zone */ + zone?: (string|null); + } + + /** Represents an UpdateReservationSlotRequest. */ + class UpdateReservationSlotRequest implements IUpdateReservationSlotRequest { + + /** + * Constructs a new UpdateReservationSlotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IUpdateReservationSlotRequest); + + /** UpdateReservationSlotRequest parentName. */ + public parentName: string; + + /** UpdateReservationSlotRequest project. */ + public project: string; + + /** UpdateReservationSlotRequest reservationSlot. */ + public reservationSlot: string; + + /** UpdateReservationSlotRequest reservationSlotResource. */ + public reservationSlotResource?: (google.cloud.compute.v1beta.IReservationSlot|null); + + /** UpdateReservationSlotRequest updateMask. */ + public updateMask?: (string|null); + + /** UpdateReservationSlotRequest zone. */ + public zone: string; + + /** + * Creates a new UpdateReservationSlotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateReservationSlotRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IUpdateReservationSlotRequest): google.cloud.compute.v1beta.UpdateReservationSlotRequest; + + /** + * Encodes the specified UpdateReservationSlotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.UpdateReservationSlotRequest.verify|verify} messages. + * @param message UpdateReservationSlotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IUpdateReservationSlotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateReservationSlotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UpdateReservationSlotRequest.verify|verify} messages. + * @param message UpdateReservationSlotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IUpdateReservationSlotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateReservationSlotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateReservationSlotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.UpdateReservationSlotRequest; + + /** + * Decodes an UpdateReservationSlotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateReservationSlotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.UpdateReservationSlotRequest; + + /** + * Verifies an UpdateReservationSlotRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateReservationSlotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateReservationSlotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.UpdateReservationSlotRequest; + + /** + * Creates a plain object from an UpdateReservationSlotRequest message. Also converts values to other types if specified. + * @param message UpdateReservationSlotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.UpdateReservationSlotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateReservationSlotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateReservationSlotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an UpdateReservationsRegionCommitmentRequest. */ interface IUpdateReservationsRegionCommitmentRequest { @@ -484767,6 +492291,9 @@ export namespace google { /** VpnGateway network */ network?: (string|null); + /** VpnGateway params */ + params?: (google.cloud.compute.v1beta.IVpnGatewayParams|null); + /** VpnGateway region */ region?: (string|null); @@ -484816,6 +492343,9 @@ export namespace google { /** VpnGateway network. */ public network?: (string|null); + /** VpnGateway params. */ + public params?: (google.cloud.compute.v1beta.IVpnGatewayParams|null); + /** VpnGateway region. */ public region?: (string|null); @@ -485184,6 +492714,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a VpnGatewayParams. */ + interface IVpnGatewayParams { + + /** VpnGatewayParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents a VpnGatewayParams. */ + class VpnGatewayParams implements IVpnGatewayParams { + + /** + * Constructs a new VpnGatewayParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IVpnGatewayParams); + + /** VpnGatewayParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new VpnGatewayParams instance using the specified properties. + * @param [properties] Properties to set + * @returns VpnGatewayParams instance + */ + public static create(properties?: google.cloud.compute.v1beta.IVpnGatewayParams): google.cloud.compute.v1beta.VpnGatewayParams; + + /** + * Encodes the specified VpnGatewayParams message. Does not implicitly {@link google.cloud.compute.v1beta.VpnGatewayParams.verify|verify} messages. + * @param message VpnGatewayParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IVpnGatewayParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VpnGatewayParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.VpnGatewayParams.verify|verify} messages. + * @param message VpnGatewayParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IVpnGatewayParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VpnGatewayParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VpnGatewayParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.VpnGatewayParams; + + /** + * Decodes a VpnGatewayParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VpnGatewayParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.VpnGatewayParams; + + /** + * Verifies a VpnGatewayParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VpnGatewayParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VpnGatewayParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.VpnGatewayParams; + + /** + * Creates a plain object from a VpnGatewayParams message. Also converts values to other types if specified. + * @param message VpnGatewayParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.VpnGatewayParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VpnGatewayParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VpnGatewayParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a VpnGatewayStatus. */ interface IVpnGatewayStatus { @@ -485978,6 +493605,9 @@ export namespace google { /** VpnTunnel name */ name?: (string|null); + /** VpnTunnel params */ + params?: (google.cloud.compute.v1beta.IVpnTunnelParams|null); + /** VpnTunnel peerExternalGateway */ peerExternalGateway?: (string|null); @@ -486066,6 +493696,9 @@ export namespace google { /** VpnTunnel name. */ public name?: (string|null); + /** VpnTunnel params. */ + public params?: (google.cloud.compute.v1beta.IVpnTunnelParams|null); + /** VpnTunnel peerExternalGateway. */ public peerExternalGateway?: (string|null); @@ -486577,6 +494210,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a VpnTunnelParams. */ + interface IVpnTunnelParams { + + /** VpnTunnelParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents a VpnTunnelParams. */ + class VpnTunnelParams implements IVpnTunnelParams { + + /** + * Constructs a new VpnTunnelParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IVpnTunnelParams); + + /** VpnTunnelParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new VpnTunnelParams instance using the specified properties. + * @param [properties] Properties to set + * @returns VpnTunnelParams instance + */ + public static create(properties?: google.cloud.compute.v1beta.IVpnTunnelParams): google.cloud.compute.v1beta.VpnTunnelParams; + + /** + * Encodes the specified VpnTunnelParams message. Does not implicitly {@link google.cloud.compute.v1beta.VpnTunnelParams.verify|verify} messages. + * @param message VpnTunnelParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IVpnTunnelParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VpnTunnelParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.VpnTunnelParams.verify|verify} messages. + * @param message VpnTunnelParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IVpnTunnelParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VpnTunnelParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VpnTunnelParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.VpnTunnelParams; + + /** + * Decodes a VpnTunnelParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VpnTunnelParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.VpnTunnelParams; + + /** + * Verifies a VpnTunnelParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VpnTunnelParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VpnTunnelParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.VpnTunnelParams; + + /** + * Creates a plain object from a VpnTunnelParams message. Also converts values to other types if specified. + * @param message VpnTunnelParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.VpnTunnelParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VpnTunnelParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VpnTunnelParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a VpnTunnelPhase1Algorithms. */ interface IVpnTunnelPhase1Algorithms { @@ -489222,6 +496952,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a WorkloadIdentityConfig. */ + interface IWorkloadIdentityConfig { + + /** WorkloadIdentityConfig identity */ + identity?: (string|null); + + /** WorkloadIdentityConfig identityCertificateEnabled */ + identityCertificateEnabled?: (boolean|null); + } + + /** Represents a WorkloadIdentityConfig. */ + class WorkloadIdentityConfig implements IWorkloadIdentityConfig { + + /** + * Constructs a new WorkloadIdentityConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IWorkloadIdentityConfig); + + /** WorkloadIdentityConfig identity. */ + public identity?: (string|null); + + /** WorkloadIdentityConfig identityCertificateEnabled. */ + public identityCertificateEnabled?: (boolean|null); + + /** + * Creates a new WorkloadIdentityConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkloadIdentityConfig instance + */ + public static create(properties?: google.cloud.compute.v1beta.IWorkloadIdentityConfig): google.cloud.compute.v1beta.WorkloadIdentityConfig; + + /** + * Encodes the specified WorkloadIdentityConfig message. Does not implicitly {@link google.cloud.compute.v1beta.WorkloadIdentityConfig.verify|verify} messages. + * @param message WorkloadIdentityConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IWorkloadIdentityConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkloadIdentityConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.WorkloadIdentityConfig.verify|verify} messages. + * @param message WorkloadIdentityConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IWorkloadIdentityConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkloadIdentityConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkloadIdentityConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.WorkloadIdentityConfig; + + /** + * Decodes a WorkloadIdentityConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkloadIdentityConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.WorkloadIdentityConfig; + + /** + * Verifies a WorkloadIdentityConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkloadIdentityConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkloadIdentityConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.WorkloadIdentityConfig; + + /** + * Creates a plain object from a WorkloadIdentityConfig message. Also converts values to other types if specified. + * @param message WorkloadIdentityConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.WorkloadIdentityConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkloadIdentityConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkloadIdentityConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a XpnHostList. */ interface IXpnHostList { @@ -494900,6 +502733,20 @@ export namespace google { */ public applyUpdatesToInstances(request: google.cloud.compute.v1beta.IApplyUpdatesToInstancesInstanceGroupManagerRequest): Promise; + /** + * Calls ConfigureAcceleratorTopologies. + * @param request ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public configureAcceleratorTopologies(request: google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest, callback: google.cloud.compute.v1beta.InstanceGroupManagers.ConfigureAcceleratorTopologiesCallback): void; + + /** + * Calls ConfigureAcceleratorTopologies. + * @param request ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message or plain object + * @returns Promise + */ + public configureAcceleratorTopologies(request: google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest): Promise; + /** * Calls CreateInstances. * @param request CreateInstancesInstanceGroupManagerRequest message or plain object @@ -495288,6 +503135,13 @@ export namespace google { */ type ApplyUpdatesToInstancesCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + /** + * Callback as used by {@link google.cloud.compute.v1beta.InstanceGroupManagers|configureAcceleratorTopologies}. + * @param error Error, if any + * @param [response] Operation + */ + type ConfigureAcceleratorTopologiesCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + /** * Callback as used by {@link google.cloud.compute.v1beta.InstanceGroupManagers|createInstances}. * @param error Error, if any @@ -497163,6 +505017,177 @@ export namespace google { type UpdateShieldedVmConfigCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; } + /** Represents an InstantSnapshotGroups */ + class InstantSnapshotGroups extends $protobuf.rpc.Service { + + /** + * Constructs a new InstantSnapshotGroups service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new InstantSnapshotGroups service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): InstantSnapshotGroups; + + /** + * Calls Delete. + * @param request DeleteInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public delete(request: google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest, callback: google.cloud.compute.v1beta.InstantSnapshotGroups.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest): Promise; + + /** + * Calls Get. + * @param request GetInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and InstantSnapshotGroup + */ + public get(request: google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest, callback: google.cloud.compute.v1beta.InstantSnapshotGroups.GetCallback): void; + + /** + * Calls Get. + * @param request GetInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest): Promise; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public getIamPolicy(request: google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest, callback: google.cloud.compute.v1beta.InstantSnapshotGroups.GetIamPolicyCallback): void; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public getIamPolicy(request: google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest): Promise; + + /** + * Calls Insert. + * @param request InsertInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest, callback: google.cloud.compute.v1beta.InstantSnapshotGroups.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest): Promise; + + /** + * Calls List. + * @param request ListInstantSnapshotGroupsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListInstantSnapshotGroups + */ + public list(request: google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest, callback: google.cloud.compute.v1beta.InstantSnapshotGroups.ListCallback): void; + + /** + * Calls List. + * @param request ListInstantSnapshotGroupsRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest): Promise; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public setIamPolicy(request: google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest, callback: google.cloud.compute.v1beta.InstantSnapshotGroups.SetIamPolicyCallback): void; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public setIamPolicy(request: google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestPermissionsResponse + */ + public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest, callback: google.cloud.compute.v1beta.InstantSnapshotGroups.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest): Promise; + } + + namespace InstantSnapshotGroups { + + /** + * Callback as used by {@link google.cloud.compute.v1beta.InstantSnapshotGroups|delete_}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.InstantSnapshotGroups|get}. + * @param error Error, if any + * @param [response] InstantSnapshotGroup + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.InstantSnapshotGroup) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.InstantSnapshotGroups|getIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type GetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.InstantSnapshotGroups|insert}. + * @param error Error, if any + * @param [response] Operation + */ + type InsertCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.InstantSnapshotGroups|list}. + * @param error Error, if any + * @param [response] ListInstantSnapshotGroups + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.ListInstantSnapshotGroups) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.InstantSnapshotGroups|setIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type SetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.InstantSnapshotGroups|testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.TestPermissionsResponse) => void; + } + /** Represents an InstantSnapshots */ class InstantSnapshots extends $protobuf.rpc.Service { @@ -505440,6 +513465,177 @@ export namespace google { type BulkInsertCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; } + /** Represents a RegionInstantSnapshotGroups */ + class RegionInstantSnapshotGroups extends $protobuf.rpc.Service { + + /** + * Constructs a new RegionInstantSnapshotGroups service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new RegionInstantSnapshotGroups service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RegionInstantSnapshotGroups; + + /** + * Calls Delete. + * @param request DeleteRegionInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public delete(request: google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest, callback: google.cloud.compute.v1beta.RegionInstantSnapshotGroups.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteRegionInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest): Promise; + + /** + * Calls Get. + * @param request GetRegionInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and InstantSnapshotGroup + */ + public get(request: google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest, callback: google.cloud.compute.v1beta.RegionInstantSnapshotGroups.GetCallback): void; + + /** + * Calls Get. + * @param request GetRegionInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest): Promise; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyRegionInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public getIamPolicy(request: google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest, callback: google.cloud.compute.v1beta.RegionInstantSnapshotGroups.GetIamPolicyCallback): void; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyRegionInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public getIamPolicy(request: google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest): Promise; + + /** + * Calls Insert. + * @param request InsertRegionInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest, callback: google.cloud.compute.v1beta.RegionInstantSnapshotGroups.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertRegionInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest): Promise; + + /** + * Calls List. + * @param request ListRegionInstantSnapshotGroupsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListInstantSnapshotGroups + */ + public list(request: google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest, callback: google.cloud.compute.v1beta.RegionInstantSnapshotGroups.ListCallback): void; + + /** + * Calls List. + * @param request ListRegionInstantSnapshotGroupsRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest): Promise; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyRegionInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public setIamPolicy(request: google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest, callback: google.cloud.compute.v1beta.RegionInstantSnapshotGroups.SetIamPolicyCallback): void; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyRegionInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public setIamPolicy(request: google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestPermissionsResponse + */ + public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest, callback: google.cloud.compute.v1beta.RegionInstantSnapshotGroups.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest): Promise; + } + + namespace RegionInstantSnapshotGroups { + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionInstantSnapshotGroups|delete_}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionInstantSnapshotGroups|get}. + * @param error Error, if any + * @param [response] InstantSnapshotGroup + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.InstantSnapshotGroup) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionInstantSnapshotGroups|getIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type GetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionInstantSnapshotGroups|insert}. + * @param error Error, if any + * @param [response] Operation + */ + type InsertCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionInstantSnapshotGroups|list}. + * @param error Error, if any + * @param [response] ListInstantSnapshotGroups + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.ListInstantSnapshotGroups) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionInstantSnapshotGroups|setIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type SetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionInstantSnapshotGroups|testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.TestPermissionsResponse) => void; + } + /** Represents a RegionInstantSnapshots */ class RegionInstantSnapshots extends $protobuf.rpc.Service { @@ -508650,6 +516846,93 @@ export namespace google { type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.TestPermissionsResponse) => void; } + /** Represents a ReservationSlots */ + class ReservationSlots extends $protobuf.rpc.Service { + + /** + * Constructs a new ReservationSlots service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new ReservationSlots service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ReservationSlots; + + /** + * Calls Get. + * @param request GetReservationSlotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReservationSlotsGetResponse + */ + public get(request: google.cloud.compute.v1beta.IGetReservationSlotRequest, callback: google.cloud.compute.v1beta.ReservationSlots.GetCallback): void; + + /** + * Calls Get. + * @param request GetReservationSlotRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1beta.IGetReservationSlotRequest): Promise; + + /** + * Calls List. + * @param request ListReservationSlotsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReservationSlotsListResponse + */ + public list(request: google.cloud.compute.v1beta.IListReservationSlotsRequest, callback: google.cloud.compute.v1beta.ReservationSlots.ListCallback): void; + + /** + * Calls List. + * @param request ListReservationSlotsRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1beta.IListReservationSlotsRequest): Promise; + + /** + * Calls Update. + * @param request UpdateReservationSlotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public update(request: google.cloud.compute.v1beta.IUpdateReservationSlotRequest, callback: google.cloud.compute.v1beta.ReservationSlots.UpdateCallback): void; + + /** + * Calls Update. + * @param request UpdateReservationSlotRequest message or plain object + * @returns Promise + */ + public update(request: google.cloud.compute.v1beta.IUpdateReservationSlotRequest): Promise; + } + + namespace ReservationSlots { + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationSlots|get}. + * @param error Error, if any + * @param [response] ReservationSlotsGetResponse + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.ReservationSlotsGetResponse) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationSlots|list}. + * @param error Error, if any + * @param [response] ReservationSlotsListResponse + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.ReservationSlotsListResponse) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationSlots|update}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + } + /** Represents a ReservationSubBlocks */ class ReservationSubBlocks extends $protobuf.rpc.Service { @@ -509553,6 +517836,20 @@ export namespace google { */ public delete(request: google.cloud.compute.v1beta.IDeleteRouterRequest): Promise; + /** + * Calls DeleteNamedSet. + * @param request DeleteNamedSetRouterRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteNamedSet(request: google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest, callback: google.cloud.compute.v1beta.Routers.DeleteNamedSetCallback): void; + + /** + * Calls DeleteNamedSet. + * @param request DeleteNamedSetRouterRequest message or plain object + * @returns Promise + */ + public deleteNamedSet(request: google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest): Promise; + /** * Calls DeleteRoutePolicy. * @param request DeleteRoutePolicyRouterRequest message or plain object @@ -509581,6 +517878,20 @@ export namespace google { */ public get(request: google.cloud.compute.v1beta.IGetRouterRequest): Promise; + /** + * Calls GetNamedSet. + * @param request GetNamedSetRouterRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RoutersGetNamedSetResponse + */ + public getNamedSet(request: google.cloud.compute.v1beta.IGetNamedSetRouterRequest, callback: google.cloud.compute.v1beta.Routers.GetNamedSetCallback): void; + + /** + * Calls GetNamedSet. + * @param request GetNamedSetRouterRequest message or plain object + * @returns Promise + */ + public getNamedSet(request: google.cloud.compute.v1beta.IGetNamedSetRouterRequest): Promise; + /** * Calls GetNatIpInfo. * @param request GetNatIpInfoRouterRequest message or plain object @@ -509679,6 +517990,20 @@ export namespace google { */ public listBgpRoutes(request: google.cloud.compute.v1beta.IListBgpRoutesRoutersRequest): Promise; + /** + * Calls ListNamedSets. + * @param request ListNamedSetsRoutersRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RoutersListNamedSets + */ + public listNamedSets(request: google.cloud.compute.v1beta.IListNamedSetsRoutersRequest, callback: google.cloud.compute.v1beta.Routers.ListNamedSetsCallback): void; + + /** + * Calls ListNamedSets. + * @param request ListNamedSetsRoutersRequest message or plain object + * @returns Promise + */ + public listNamedSets(request: google.cloud.compute.v1beta.IListNamedSetsRoutersRequest): Promise; + /** * Calls ListRoutePolicies. * @param request ListRoutePoliciesRoutersRequest message or plain object @@ -509707,6 +518032,20 @@ export namespace google { */ public patch(request: google.cloud.compute.v1beta.IPatchRouterRequest): Promise; + /** + * Calls PatchNamedSet. + * @param request PatchNamedSetRouterRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public patchNamedSet(request: google.cloud.compute.v1beta.IPatchNamedSetRouterRequest, callback: google.cloud.compute.v1beta.Routers.PatchNamedSetCallback): void; + + /** + * Calls PatchNamedSet. + * @param request PatchNamedSetRouterRequest message or plain object + * @returns Promise + */ + public patchNamedSet(request: google.cloud.compute.v1beta.IPatchNamedSetRouterRequest): Promise; + /** * Calls PatchRoutePolicy. * @param request PatchRoutePolicyRouterRequest message or plain object @@ -509763,6 +518102,20 @@ export namespace google { */ public update(request: google.cloud.compute.v1beta.IUpdateRouterRequest): Promise; + /** + * Calls UpdateNamedSet. + * @param request UpdateNamedSetRouterRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateNamedSet(request: google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest, callback: google.cloud.compute.v1beta.Routers.UpdateNamedSetCallback): void; + + /** + * Calls UpdateNamedSet. + * @param request UpdateNamedSetRouterRequest message or plain object + * @returns Promise + */ + public updateNamedSet(request: google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest): Promise; + /** * Calls UpdateRoutePolicy. * @param request UpdateRoutePolicyRouterRequest message or plain object @@ -509794,6 +518147,13 @@ export namespace google { */ type DeleteCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + /** + * Callback as used by {@link google.cloud.compute.v1beta.Routers|deleteNamedSet}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteNamedSetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + /** * Callback as used by {@link google.cloud.compute.v1beta.Routers|deleteRoutePolicy}. * @param error Error, if any @@ -509808,6 +518168,13 @@ export namespace google { */ type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Router) => void; + /** + * Callback as used by {@link google.cloud.compute.v1beta.Routers|getNamedSet}. + * @param error Error, if any + * @param [response] RoutersGetNamedSetResponse + */ + type GetNamedSetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.RoutersGetNamedSetResponse) => void; + /** * Callback as used by {@link google.cloud.compute.v1beta.Routers|getNatIpInfo}. * @param error Error, if any @@ -509857,6 +518224,13 @@ export namespace google { */ type ListBgpRoutesCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.RoutersListBgpRoutes) => void; + /** + * Callback as used by {@link google.cloud.compute.v1beta.Routers|listNamedSets}. + * @param error Error, if any + * @param [response] RoutersListNamedSets + */ + type ListNamedSetsCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.RoutersListNamedSets) => void; + /** * Callback as used by {@link google.cloud.compute.v1beta.Routers|listRoutePolicies}. * @param error Error, if any @@ -509871,6 +518245,13 @@ export namespace google { */ type PatchCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + /** + * Callback as used by {@link google.cloud.compute.v1beta.Routers|patchNamedSet}. + * @param error Error, if any + * @param [response] Operation + */ + type PatchNamedSetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + /** * Callback as used by {@link google.cloud.compute.v1beta.Routers|patchRoutePolicy}. * @param error Error, if any @@ -509899,6 +518280,13 @@ export namespace google { */ type UpdateCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + /** + * Callback as used by {@link google.cloud.compute.v1beta.Routers|updateNamedSet}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateNamedSetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + /** * Callback as used by {@link google.cloud.compute.v1beta.Routers|updateRoutePolicy}. * @param error Error, if any @@ -510546,6 +518934,177 @@ export namespace google { type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.TestPermissionsResponse) => void; } + /** Represents a SnapshotGroups */ + class SnapshotGroups extends $protobuf.rpc.Service { + + /** + * Constructs a new SnapshotGroups service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new SnapshotGroups service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SnapshotGroups; + + /** + * Calls Delete. + * @param request DeleteSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public delete(request: google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest, callback: google.cloud.compute.v1beta.SnapshotGroups.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteSnapshotGroupRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest): Promise; + + /** + * Calls Get. + * @param request GetSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SnapshotGroup + */ + public get(request: google.cloud.compute.v1beta.IGetSnapshotGroupRequest, callback: google.cloud.compute.v1beta.SnapshotGroups.GetCallback): void; + + /** + * Calls Get. + * @param request GetSnapshotGroupRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1beta.IGetSnapshotGroupRequest): Promise; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicySnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public getIamPolicy(request: google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest, callback: google.cloud.compute.v1beta.SnapshotGroups.GetIamPolicyCallback): void; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicySnapshotGroupRequest message or plain object + * @returns Promise + */ + public getIamPolicy(request: google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest): Promise; + + /** + * Calls Insert. + * @param request InsertSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1beta.IInsertSnapshotGroupRequest, callback: google.cloud.compute.v1beta.SnapshotGroups.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertSnapshotGroupRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1beta.IInsertSnapshotGroupRequest): Promise; + + /** + * Calls List. + * @param request ListSnapshotGroupsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSnapshotGroups + */ + public list(request: google.cloud.compute.v1beta.IListSnapshotGroupsRequest, callback: google.cloud.compute.v1beta.SnapshotGroups.ListCallback): void; + + /** + * Calls List. + * @param request ListSnapshotGroupsRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1beta.IListSnapshotGroupsRequest): Promise; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicySnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public setIamPolicy(request: google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest, callback: google.cloud.compute.v1beta.SnapshotGroups.SetIamPolicyCallback): void; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicySnapshotGroupRequest message or plain object + * @returns Promise + */ + public setIamPolicy(request: google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestPermissionsResponse + */ + public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest, callback: google.cloud.compute.v1beta.SnapshotGroups.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsSnapshotGroupRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest): Promise; + } + + namespace SnapshotGroups { + + /** + * Callback as used by {@link google.cloud.compute.v1beta.SnapshotGroups|delete_}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.SnapshotGroups|get}. + * @param error Error, if any + * @param [response] SnapshotGroup + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.SnapshotGroup) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.SnapshotGroups|getIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type GetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.SnapshotGroups|insert}. + * @param error Error, if any + * @param [response] Operation + */ + type InsertCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.SnapshotGroups|list}. + * @param error Error, if any + * @param [response] ListSnapshotGroups + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.ListSnapshotGroups) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.SnapshotGroups|setIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type SetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.SnapshotGroups|testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.TestPermissionsResponse) => void; + } + /** Represents a SnapshotSettingsService */ class SnapshotSettingsService extends $protobuf.rpc.Service { diff --git a/packages/google-cloud-compute/protos/protos.js b/packages/google-cloud-compute/protos/protos.js index 1ebf99b08a1..ba409bccf9d 100644 --- a/packages/google-cloud-compute/protos/protos.js +++ b/packages/google-cloud-compute/protos/protos.js @@ -700841,6 +700841,7 @@ * @property {number|null} [maxRatePerEndpoint] Backend maxRatePerEndpoint * @property {number|null} [maxRatePerInstance] Backend maxRatePerInstance * @property {number|null} [maxUtilization] Backend maxUtilization + * @property {google.cloud.compute.v1beta.IBackendBackendOrchestrationInfo|null} [orchestrationInfo] Backend orchestrationInfo * @property {string|null} [preference] Backend preference * @property {string|null} [trafficDuration] Backend trafficDuration */ @@ -700989,6 +700990,14 @@ */ Backend.prototype.maxUtilization = null; + /** + * Backend orchestrationInfo. + * @member {google.cloud.compute.v1beta.IBackendBackendOrchestrationInfo|null|undefined} orchestrationInfo + * @memberof google.cloud.compute.v1beta.Backend + * @instance + */ + Backend.prototype.orchestrationInfo = null; + /** * Backend preference. * @member {string|null|undefined} preference @@ -701098,6 +701107,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Backend.prototype, "_orchestrationInfo", { + get: $util.oneOfGetter($oneOfFields = ["orchestrationInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Backend.prototype, "_preference", { get: $util.oneOfGetter($oneOfFields = ["preference"]), @@ -701171,6 +701186,8 @@ $root.google.cloud.compute.v1beta.BackendCustomMetric.encode(message.customMetrics[i], writer.uint32(/* id 429453813, wireType 2 =*/3435630506).fork()).ldelim(); if (message.balancingMode != null && Object.hasOwnProperty.call(message, "balancingMode")) writer.uint32(/* id 430286217, wireType 2 =*/3442289738).string(message.balancingMode); + if (message.orchestrationInfo != null && Object.hasOwnProperty.call(message, "orchestrationInfo")) + $root.google.cloud.compute.v1beta.BackendBackendOrchestrationInfo.encode(message.orchestrationInfo, writer.uint32(/* id 441144300, wireType 2 =*/3529154402).fork()).ldelim(); return writer; }; @@ -701273,6 +701290,10 @@ message.maxUtilization = reader.float(); break; } + case 441144300: { + message.orchestrationInfo = $root.google.cloud.compute.v1beta.BackendBackendOrchestrationInfo.decode(reader, reader.uint32()); + break; + } case 150781147: { message.preference = reader.string(); break; @@ -701401,6 +701422,14 @@ if (typeof message.maxUtilization !== "number") return "maxUtilization: number expected"; } + if (message.orchestrationInfo != null && message.hasOwnProperty("orchestrationInfo")) { + properties._orchestrationInfo = 1; + { + var error = $root.google.cloud.compute.v1beta.BackendBackendOrchestrationInfo.verify(message.orchestrationInfo); + if (error) + return "orchestrationInfo." + error; + } + } if (message.preference != null && message.hasOwnProperty("preference")) { properties._preference = 1; if (!$util.isString(message.preference)) @@ -701466,6 +701495,11 @@ message.maxRatePerInstance = Number(object.maxRatePerInstance); if (object.maxUtilization != null) message.maxUtilization = Number(object.maxUtilization); + if (object.orchestrationInfo != null) { + if (typeof object.orchestrationInfo !== "object") + throw TypeError(".google.cloud.compute.v1beta.Backend.orchestrationInfo: object expected"); + message.orchestrationInfo = $root.google.cloud.compute.v1beta.BackendBackendOrchestrationInfo.fromObject(object.orchestrationInfo); + } if (object.preference != null) message.preference = String(object.preference); if (object.trafficDuration != null) @@ -701578,6 +701612,11 @@ if (options.oneofs) object._balancingMode = "balancingMode"; } + if (message.orchestrationInfo != null && message.hasOwnProperty("orchestrationInfo")) { + object.orchestrationInfo = $root.google.cloud.compute.v1beta.BackendBackendOrchestrationInfo.toObject(message.orchestrationInfo, options); + if (options.oneofs) + object._orchestrationInfo = "orchestrationInfo"; + } return object; }; @@ -701668,6 +701707,224 @@ return Backend; })(); + v1beta.BackendBackendOrchestrationInfo = (function() { + + /** + * Properties of a BackendBackendOrchestrationInfo. + * @memberof google.cloud.compute.v1beta + * @interface IBackendBackendOrchestrationInfo + * @property {string|null} [resourceUri] BackendBackendOrchestrationInfo resourceUri + */ + + /** + * Constructs a new BackendBackendOrchestrationInfo. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a BackendBackendOrchestrationInfo. + * @implements IBackendBackendOrchestrationInfo + * @constructor + * @param {google.cloud.compute.v1beta.IBackendBackendOrchestrationInfo=} [properties] Properties to set + */ + function BackendBackendOrchestrationInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BackendBackendOrchestrationInfo resourceUri. + * @member {string|null|undefined} resourceUri + * @memberof google.cloud.compute.v1beta.BackendBackendOrchestrationInfo + * @instance + */ + BackendBackendOrchestrationInfo.prototype.resourceUri = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendBackendOrchestrationInfo.prototype, "_resourceUri", { + get: $util.oneOfGetter($oneOfFields = ["resourceUri"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BackendBackendOrchestrationInfo instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.BackendBackendOrchestrationInfo + * @static + * @param {google.cloud.compute.v1beta.IBackendBackendOrchestrationInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.BackendBackendOrchestrationInfo} BackendBackendOrchestrationInfo instance + */ + BackendBackendOrchestrationInfo.create = function create(properties) { + return new BackendBackendOrchestrationInfo(properties); + }; + + /** + * Encodes the specified BackendBackendOrchestrationInfo message. Does not implicitly {@link google.cloud.compute.v1beta.BackendBackendOrchestrationInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.BackendBackendOrchestrationInfo + * @static + * @param {google.cloud.compute.v1beta.IBackendBackendOrchestrationInfo} message BackendBackendOrchestrationInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendBackendOrchestrationInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceUri != null && Object.hasOwnProperty.call(message, "resourceUri")) + writer.uint32(/* id 152830395, wireType 2 =*/1222643162).string(message.resourceUri); + return writer; + }; + + /** + * Encodes the specified BackendBackendOrchestrationInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.BackendBackendOrchestrationInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.BackendBackendOrchestrationInfo + * @static + * @param {google.cloud.compute.v1beta.IBackendBackendOrchestrationInfo} message BackendBackendOrchestrationInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendBackendOrchestrationInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BackendBackendOrchestrationInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.BackendBackendOrchestrationInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.BackendBackendOrchestrationInfo} BackendBackendOrchestrationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendBackendOrchestrationInfo.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.BackendBackendOrchestrationInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 152830395: { + message.resourceUri = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BackendBackendOrchestrationInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.BackendBackendOrchestrationInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.BackendBackendOrchestrationInfo} BackendBackendOrchestrationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendBackendOrchestrationInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BackendBackendOrchestrationInfo message. + * @function verify + * @memberof google.cloud.compute.v1beta.BackendBackendOrchestrationInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BackendBackendOrchestrationInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.resourceUri != null && message.hasOwnProperty("resourceUri")) { + properties._resourceUri = 1; + if (!$util.isString(message.resourceUri)) + return "resourceUri: string expected"; + } + return null; + }; + + /** + * Creates a BackendBackendOrchestrationInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.BackendBackendOrchestrationInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.BackendBackendOrchestrationInfo} BackendBackendOrchestrationInfo + */ + BackendBackendOrchestrationInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.BackendBackendOrchestrationInfo) + return object; + var message = new $root.google.cloud.compute.v1beta.BackendBackendOrchestrationInfo(); + if (object.resourceUri != null) + message.resourceUri = String(object.resourceUri); + return message; + }; + + /** + * Creates a plain object from a BackendBackendOrchestrationInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.BackendBackendOrchestrationInfo + * @static + * @param {google.cloud.compute.v1beta.BackendBackendOrchestrationInfo} message BackendBackendOrchestrationInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BackendBackendOrchestrationInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.resourceUri != null && message.hasOwnProperty("resourceUri")) { + object.resourceUri = message.resourceUri; + if (options.oneofs) + object._resourceUri = "resourceUri"; + } + return object; + }; + + /** + * Converts this BackendBackendOrchestrationInfo to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.BackendBackendOrchestrationInfo + * @instance + * @returns {Object.} JSON object + */ + BackendBackendOrchestrationInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BackendBackendOrchestrationInfo + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.BackendBackendOrchestrationInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BackendBackendOrchestrationInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.BackendBackendOrchestrationInfo"; + }; + + return BackendBackendOrchestrationInfo; + })(); + v1beta.BackendBucket = (function() { /** @@ -706107,6 +706364,7 @@ * @property {string|null} [name] BackendService name * @property {string|null} [network] BackendService network * @property {google.cloud.compute.v1beta.IBackendServiceNetworkPassThroughLbTrafficPolicy|null} [networkPassThroughLbTrafficPolicy] BackendService networkPassThroughLbTrafficPolicy + * @property {google.cloud.compute.v1beta.IBackendServiceOrchestrationInfo|null} [orchestrationInfo] BackendService orchestrationInfo * @property {google.cloud.compute.v1beta.IOutlierDetection|null} [outlierDetection] BackendService outlierDetection * @property {google.cloud.compute.v1beta.IBackendServiceParams|null} [params] BackendService params * @property {number|null} [port] BackendService port @@ -706430,6 +706688,14 @@ */ BackendService.prototype.networkPassThroughLbTrafficPolicy = null; + /** + * BackendService orchestrationInfo. + * @member {google.cloud.compute.v1beta.IBackendServiceOrchestrationInfo|null|undefined} orchestrationInfo + * @memberof google.cloud.compute.v1beta.BackendService + * @instance + */ + BackendService.prototype.orchestrationInfo = null; + /** * BackendService outlierDetection. * @member {google.cloud.compute.v1beta.IOutlierDetection|null|undefined} outlierDetection @@ -706737,6 +707003,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendService.prototype, "_orchestrationInfo", { + get: $util.oneOfGetter($oneOfFields = ["orchestrationInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(BackendService.prototype, "_outlierDetection", { get: $util.oneOfGetter($oneOfFields = ["outlierDetection"]), @@ -706944,6 +707216,8 @@ if (message.customMetrics != null && message.customMetrics.length) for (var i = 0; i < message.customMetrics.length; ++i) $root.google.cloud.compute.v1beta.BackendServiceCustomMetric.encode(message.customMetrics[i], writer.uint32(/* id 429453813, wireType 2 =*/3435630506).fork()).ldelim(); + if (message.orchestrationInfo != null && Object.hasOwnProperty.call(message, "orchestrationInfo")) + $root.google.cloud.compute.v1beta.BackendServiceOrchestrationInfo.encode(message.orchestrationInfo, writer.uint32(/* id 441144300, wireType 2 =*/3529154402).fork()).ldelim(); if (message.healthChecks != null && message.healthChecks.length) for (var i = 0; i < message.healthChecks.length; ++i) writer.uint32(/* id 448370606, wireType 2 =*/3586964850).string(message.healthChecks[i]); @@ -707171,6 +707445,10 @@ message.networkPassThroughLbTrafficPolicy = $root.google.cloud.compute.v1beta.BackendServiceNetworkPassThroughLbTrafficPolicy.decode(reader, reader.uint32()); break; } + case 441144300: { + message.orchestrationInfo = $root.google.cloud.compute.v1beta.BackendServiceOrchestrationInfo.decode(reader, reader.uint32()); + break; + } case 354625086: { message.outlierDetection = $root.google.cloud.compute.v1beta.OutlierDetection.decode(reader, reader.uint32()); break; @@ -707511,6 +707789,14 @@ return "networkPassThroughLbTrafficPolicy." + error; } } + if (message.orchestrationInfo != null && message.hasOwnProperty("orchestrationInfo")) { + properties._orchestrationInfo = 1; + { + var error = $root.google.cloud.compute.v1beta.BackendServiceOrchestrationInfo.verify(message.orchestrationInfo); + if (error) + return "orchestrationInfo." + error; + } + } if (message.outlierDetection != null && message.hasOwnProperty("outlierDetection")) { properties._outlierDetection = 1; { @@ -707792,6 +708078,11 @@ throw TypeError(".google.cloud.compute.v1beta.BackendService.networkPassThroughLbTrafficPolicy: object expected"); message.networkPassThroughLbTrafficPolicy = $root.google.cloud.compute.v1beta.BackendServiceNetworkPassThroughLbTrafficPolicy.fromObject(object.networkPassThroughLbTrafficPolicy); } + if (object.orchestrationInfo != null) { + if (typeof object.orchestrationInfo !== "object") + throw TypeError(".google.cloud.compute.v1beta.BackendService.orchestrationInfo: object expected"); + message.orchestrationInfo = $root.google.cloud.compute.v1beta.BackendServiceOrchestrationInfo.fromObject(object.orchestrationInfo); + } if (object.outlierDetection != null) { if (typeof object.outlierDetection !== "object") throw TypeError(".google.cloud.compute.v1beta.BackendService.outlierDetection: object expected"); @@ -708104,6 +708395,11 @@ for (var j = 0; j < message.customMetrics.length; ++j) object.customMetrics[j] = $root.google.cloud.compute.v1beta.BackendServiceCustomMetric.toObject(message.customMetrics[j], options); } + if (message.orchestrationInfo != null && message.hasOwnProperty("orchestrationInfo")) { + object.orchestrationInfo = $root.google.cloud.compute.v1beta.BackendServiceOrchestrationInfo.toObject(message.orchestrationInfo, options); + if (options.oneofs) + object._orchestrationInfo = "orchestrationInfo"; + } if (message.healthChecks && message.healthChecks.length) { object.healthChecks = []; for (var j = 0; j < message.healthChecks.length; ++j) @@ -715337,6 +715633,224 @@ return BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity; })(); + v1beta.BackendServiceOrchestrationInfo = (function() { + + /** + * Properties of a BackendServiceOrchestrationInfo. + * @memberof google.cloud.compute.v1beta + * @interface IBackendServiceOrchestrationInfo + * @property {string|null} [resourceUri] BackendServiceOrchestrationInfo resourceUri + */ + + /** + * Constructs a new BackendServiceOrchestrationInfo. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a BackendServiceOrchestrationInfo. + * @implements IBackendServiceOrchestrationInfo + * @constructor + * @param {google.cloud.compute.v1beta.IBackendServiceOrchestrationInfo=} [properties] Properties to set + */ + function BackendServiceOrchestrationInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BackendServiceOrchestrationInfo resourceUri. + * @member {string|null|undefined} resourceUri + * @memberof google.cloud.compute.v1beta.BackendServiceOrchestrationInfo + * @instance + */ + BackendServiceOrchestrationInfo.prototype.resourceUri = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendServiceOrchestrationInfo.prototype, "_resourceUri", { + get: $util.oneOfGetter($oneOfFields = ["resourceUri"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BackendServiceOrchestrationInfo instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.BackendServiceOrchestrationInfo + * @static + * @param {google.cloud.compute.v1beta.IBackendServiceOrchestrationInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.BackendServiceOrchestrationInfo} BackendServiceOrchestrationInfo instance + */ + BackendServiceOrchestrationInfo.create = function create(properties) { + return new BackendServiceOrchestrationInfo(properties); + }; + + /** + * Encodes the specified BackendServiceOrchestrationInfo message. Does not implicitly {@link google.cloud.compute.v1beta.BackendServiceOrchestrationInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.BackendServiceOrchestrationInfo + * @static + * @param {google.cloud.compute.v1beta.IBackendServiceOrchestrationInfo} message BackendServiceOrchestrationInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendServiceOrchestrationInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceUri != null && Object.hasOwnProperty.call(message, "resourceUri")) + writer.uint32(/* id 152830395, wireType 2 =*/1222643162).string(message.resourceUri); + return writer; + }; + + /** + * Encodes the specified BackendServiceOrchestrationInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.BackendServiceOrchestrationInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.BackendServiceOrchestrationInfo + * @static + * @param {google.cloud.compute.v1beta.IBackendServiceOrchestrationInfo} message BackendServiceOrchestrationInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendServiceOrchestrationInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BackendServiceOrchestrationInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.BackendServiceOrchestrationInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.BackendServiceOrchestrationInfo} BackendServiceOrchestrationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendServiceOrchestrationInfo.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.BackendServiceOrchestrationInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 152830395: { + message.resourceUri = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BackendServiceOrchestrationInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.BackendServiceOrchestrationInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.BackendServiceOrchestrationInfo} BackendServiceOrchestrationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendServiceOrchestrationInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BackendServiceOrchestrationInfo message. + * @function verify + * @memberof google.cloud.compute.v1beta.BackendServiceOrchestrationInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BackendServiceOrchestrationInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.resourceUri != null && message.hasOwnProperty("resourceUri")) { + properties._resourceUri = 1; + if (!$util.isString(message.resourceUri)) + return "resourceUri: string expected"; + } + return null; + }; + + /** + * Creates a BackendServiceOrchestrationInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.BackendServiceOrchestrationInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.BackendServiceOrchestrationInfo} BackendServiceOrchestrationInfo + */ + BackendServiceOrchestrationInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.BackendServiceOrchestrationInfo) + return object; + var message = new $root.google.cloud.compute.v1beta.BackendServiceOrchestrationInfo(); + if (object.resourceUri != null) + message.resourceUri = String(object.resourceUri); + return message; + }; + + /** + * Creates a plain object from a BackendServiceOrchestrationInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.BackendServiceOrchestrationInfo + * @static + * @param {google.cloud.compute.v1beta.BackendServiceOrchestrationInfo} message BackendServiceOrchestrationInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BackendServiceOrchestrationInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.resourceUri != null && message.hasOwnProperty("resourceUri")) { + object.resourceUri = message.resourceUri; + if (options.oneofs) + object._resourceUri = "resourceUri"; + } + return object; + }; + + /** + * Converts this BackendServiceOrchestrationInfo to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.BackendServiceOrchestrationInfo + * @instance + * @returns {Object.} JSON object + */ + BackendServiceOrchestrationInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BackendServiceOrchestrationInfo + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.BackendServiceOrchestrationInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BackendServiceOrchestrationInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.BackendServiceOrchestrationInfo"; + }; + + return BackendServiceOrchestrationInfo; + })(); + v1beta.BackendServiceParams = (function() { /** @@ -720413,6 +720927,8 @@ * Properties of a BulkInsertDiskResource. * @memberof google.cloud.compute.v1beta * @interface IBulkInsertDiskResource + * @property {google.cloud.compute.v1beta.IInstantSnapshotGroupParameters|null} [instantSnapshotGroupParameters] BulkInsertDiskResource instantSnapshotGroupParameters + * @property {google.cloud.compute.v1beta.ISnapshotGroupParameters|null} [snapshotGroupParameters] BulkInsertDiskResource snapshotGroupParameters * @property {string|null} [sourceConsistencyGroupPolicy] BulkInsertDiskResource sourceConsistencyGroupPolicy */ @@ -720431,6 +720947,22 @@ this[keys[i]] = properties[keys[i]]; } + /** + * BulkInsertDiskResource instantSnapshotGroupParameters. + * @member {google.cloud.compute.v1beta.IInstantSnapshotGroupParameters|null|undefined} instantSnapshotGroupParameters + * @memberof google.cloud.compute.v1beta.BulkInsertDiskResource + * @instance + */ + BulkInsertDiskResource.prototype.instantSnapshotGroupParameters = null; + + /** + * BulkInsertDiskResource snapshotGroupParameters. + * @member {google.cloud.compute.v1beta.ISnapshotGroupParameters|null|undefined} snapshotGroupParameters + * @memberof google.cloud.compute.v1beta.BulkInsertDiskResource + * @instance + */ + BulkInsertDiskResource.prototype.snapshotGroupParameters = null; + /** * BulkInsertDiskResource sourceConsistencyGroupPolicy. * @member {string|null|undefined} sourceConsistencyGroupPolicy @@ -720442,6 +720974,18 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + // Virtual OneOf for proto3 optional field + Object.defineProperty(BulkInsertDiskResource.prototype, "_instantSnapshotGroupParameters", { + get: $util.oneOfGetter($oneOfFields = ["instantSnapshotGroupParameters"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BulkInsertDiskResource.prototype, "_snapshotGroupParameters", { + get: $util.oneOfGetter($oneOfFields = ["snapshotGroupParameters"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(BulkInsertDiskResource.prototype, "_sourceConsistencyGroupPolicy", { get: $util.oneOfGetter($oneOfFields = ["sourceConsistencyGroupPolicy"]), @@ -720472,8 +721016,12 @@ BulkInsertDiskResource.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.instantSnapshotGroupParameters != null && Object.hasOwnProperty.call(message, "instantSnapshotGroupParameters")) + $root.google.cloud.compute.v1beta.InstantSnapshotGroupParameters.encode(message.instantSnapshotGroupParameters, writer.uint32(/* id 17051623, wireType 2 =*/136412986).fork()).ldelim(); if (message.sourceConsistencyGroupPolicy != null && Object.hasOwnProperty.call(message, "sourceConsistencyGroupPolicy")) writer.uint32(/* id 19616093, wireType 2 =*/156928746).string(message.sourceConsistencyGroupPolicy); + if (message.snapshotGroupParameters != null && Object.hasOwnProperty.call(message, "snapshotGroupParameters")) + $root.google.cloud.compute.v1beta.SnapshotGroupParameters.encode(message.snapshotGroupParameters, writer.uint32(/* id 42252485, wireType 2 =*/338019882).fork()).ldelim(); return writer; }; @@ -720510,6 +721058,14 @@ if (tag === error) break; switch (tag >>> 3) { + case 17051623: { + message.instantSnapshotGroupParameters = $root.google.cloud.compute.v1beta.InstantSnapshotGroupParameters.decode(reader, reader.uint32()); + break; + } + case 42252485: { + message.snapshotGroupParameters = $root.google.cloud.compute.v1beta.SnapshotGroupParameters.decode(reader, reader.uint32()); + break; + } case 19616093: { message.sourceConsistencyGroupPolicy = reader.string(); break; @@ -720550,6 +721106,22 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.instantSnapshotGroupParameters != null && message.hasOwnProperty("instantSnapshotGroupParameters")) { + properties._instantSnapshotGroupParameters = 1; + { + var error = $root.google.cloud.compute.v1beta.InstantSnapshotGroupParameters.verify(message.instantSnapshotGroupParameters); + if (error) + return "instantSnapshotGroupParameters." + error; + } + } + if (message.snapshotGroupParameters != null && message.hasOwnProperty("snapshotGroupParameters")) { + properties._snapshotGroupParameters = 1; + { + var error = $root.google.cloud.compute.v1beta.SnapshotGroupParameters.verify(message.snapshotGroupParameters); + if (error) + return "snapshotGroupParameters." + error; + } + } if (message.sourceConsistencyGroupPolicy != null && message.hasOwnProperty("sourceConsistencyGroupPolicy")) { properties._sourceConsistencyGroupPolicy = 1; if (!$util.isString(message.sourceConsistencyGroupPolicy)) @@ -720570,6 +721142,16 @@ if (object instanceof $root.google.cloud.compute.v1beta.BulkInsertDiskResource) return object; var message = new $root.google.cloud.compute.v1beta.BulkInsertDiskResource(); + if (object.instantSnapshotGroupParameters != null) { + if (typeof object.instantSnapshotGroupParameters !== "object") + throw TypeError(".google.cloud.compute.v1beta.BulkInsertDiskResource.instantSnapshotGroupParameters: object expected"); + message.instantSnapshotGroupParameters = $root.google.cloud.compute.v1beta.InstantSnapshotGroupParameters.fromObject(object.instantSnapshotGroupParameters); + } + if (object.snapshotGroupParameters != null) { + if (typeof object.snapshotGroupParameters !== "object") + throw TypeError(".google.cloud.compute.v1beta.BulkInsertDiskResource.snapshotGroupParameters: object expected"); + message.snapshotGroupParameters = $root.google.cloud.compute.v1beta.SnapshotGroupParameters.fromObject(object.snapshotGroupParameters); + } if (object.sourceConsistencyGroupPolicy != null) message.sourceConsistencyGroupPolicy = String(object.sourceConsistencyGroupPolicy); return message; @@ -720588,11 +721170,21 @@ if (!options) options = {}; var object = {}; + if (message.instantSnapshotGroupParameters != null && message.hasOwnProperty("instantSnapshotGroupParameters")) { + object.instantSnapshotGroupParameters = $root.google.cloud.compute.v1beta.InstantSnapshotGroupParameters.toObject(message.instantSnapshotGroupParameters, options); + if (options.oneofs) + object._instantSnapshotGroupParameters = "instantSnapshotGroupParameters"; + } if (message.sourceConsistencyGroupPolicy != null && message.hasOwnProperty("sourceConsistencyGroupPolicy")) { object.sourceConsistencyGroupPolicy = message.sourceConsistencyGroupPolicy; if (options.oneofs) object._sourceConsistencyGroupPolicy = "sourceConsistencyGroupPolicy"; } + if (message.snapshotGroupParameters != null && message.hasOwnProperty("snapshotGroupParameters")) { + object.snapshotGroupParameters = $root.google.cloud.compute.v1beta.SnapshotGroupParameters.toObject(message.snapshotGroupParameters, options); + if (options.oneofs) + object._snapshotGroupParameters = "snapshotGroupParameters"; + } return object; }; @@ -724462,6 +725054,1287 @@ return CacheKeyPolicy; })(); + v1beta.CachePolicy = (function() { + + /** + * Properties of a CachePolicy. + * @memberof google.cloud.compute.v1beta + * @interface ICachePolicy + * @property {Array.|null} [cacheBypassRequestHeaderNames] CachePolicy cacheBypassRequestHeaderNames + * @property {google.cloud.compute.v1beta.ICachePolicyCacheKeyPolicy|null} [cacheKeyPolicy] CachePolicy cacheKeyPolicy + * @property {string|null} [cacheMode] CachePolicy cacheMode + * @property {google.cloud.compute.v1beta.IDuration|null} [clientTtl] CachePolicy clientTtl + * @property {google.cloud.compute.v1beta.IDuration|null} [defaultTtl] CachePolicy defaultTtl + * @property {google.cloud.compute.v1beta.IDuration|null} [maxTtl] CachePolicy maxTtl + * @property {boolean|null} [negativeCaching] CachePolicy negativeCaching + * @property {Array.|null} [negativeCachingPolicy] CachePolicy negativeCachingPolicy + * @property {boolean|null} [requestCoalescing] CachePolicy requestCoalescing + * @property {google.cloud.compute.v1beta.IDuration|null} [serveWhileStale] CachePolicy serveWhileStale + */ + + /** + * Constructs a new CachePolicy. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a CachePolicy. + * @implements ICachePolicy + * @constructor + * @param {google.cloud.compute.v1beta.ICachePolicy=} [properties] Properties to set + */ + function CachePolicy(properties) { + this.cacheBypassRequestHeaderNames = []; + this.negativeCachingPolicy = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CachePolicy cacheBypassRequestHeaderNames. + * @member {Array.} cacheBypassRequestHeaderNames + * @memberof google.cloud.compute.v1beta.CachePolicy + * @instance + */ + CachePolicy.prototype.cacheBypassRequestHeaderNames = $util.emptyArray; + + /** + * CachePolicy cacheKeyPolicy. + * @member {google.cloud.compute.v1beta.ICachePolicyCacheKeyPolicy|null|undefined} cacheKeyPolicy + * @memberof google.cloud.compute.v1beta.CachePolicy + * @instance + */ + CachePolicy.prototype.cacheKeyPolicy = null; + + /** + * CachePolicy cacheMode. + * @member {string|null|undefined} cacheMode + * @memberof google.cloud.compute.v1beta.CachePolicy + * @instance + */ + CachePolicy.prototype.cacheMode = null; + + /** + * CachePolicy clientTtl. + * @member {google.cloud.compute.v1beta.IDuration|null|undefined} clientTtl + * @memberof google.cloud.compute.v1beta.CachePolicy + * @instance + */ + CachePolicy.prototype.clientTtl = null; + + /** + * CachePolicy defaultTtl. + * @member {google.cloud.compute.v1beta.IDuration|null|undefined} defaultTtl + * @memberof google.cloud.compute.v1beta.CachePolicy + * @instance + */ + CachePolicy.prototype.defaultTtl = null; + + /** + * CachePolicy maxTtl. + * @member {google.cloud.compute.v1beta.IDuration|null|undefined} maxTtl + * @memberof google.cloud.compute.v1beta.CachePolicy + * @instance + */ + CachePolicy.prototype.maxTtl = null; + + /** + * CachePolicy negativeCaching. + * @member {boolean|null|undefined} negativeCaching + * @memberof google.cloud.compute.v1beta.CachePolicy + * @instance + */ + CachePolicy.prototype.negativeCaching = null; + + /** + * CachePolicy negativeCachingPolicy. + * @member {Array.} negativeCachingPolicy + * @memberof google.cloud.compute.v1beta.CachePolicy + * @instance + */ + CachePolicy.prototype.negativeCachingPolicy = $util.emptyArray; + + /** + * CachePolicy requestCoalescing. + * @member {boolean|null|undefined} requestCoalescing + * @memberof google.cloud.compute.v1beta.CachePolicy + * @instance + */ + CachePolicy.prototype.requestCoalescing = null; + + /** + * CachePolicy serveWhileStale. + * @member {google.cloud.compute.v1beta.IDuration|null|undefined} serveWhileStale + * @memberof google.cloud.compute.v1beta.CachePolicy + * @instance + */ + CachePolicy.prototype.serveWhileStale = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CachePolicy.prototype, "_cacheKeyPolicy", { + get: $util.oneOfGetter($oneOfFields = ["cacheKeyPolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CachePolicy.prototype, "_cacheMode", { + get: $util.oneOfGetter($oneOfFields = ["cacheMode"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CachePolicy.prototype, "_clientTtl", { + get: $util.oneOfGetter($oneOfFields = ["clientTtl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CachePolicy.prototype, "_defaultTtl", { + get: $util.oneOfGetter($oneOfFields = ["defaultTtl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CachePolicy.prototype, "_maxTtl", { + get: $util.oneOfGetter($oneOfFields = ["maxTtl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CachePolicy.prototype, "_negativeCaching", { + get: $util.oneOfGetter($oneOfFields = ["negativeCaching"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CachePolicy.prototype, "_requestCoalescing", { + get: $util.oneOfGetter($oneOfFields = ["requestCoalescing"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CachePolicy.prototype, "_serveWhileStale", { + get: $util.oneOfGetter($oneOfFields = ["serveWhileStale"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CachePolicy instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.CachePolicy + * @static + * @param {google.cloud.compute.v1beta.ICachePolicy=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.CachePolicy} CachePolicy instance + */ + CachePolicy.create = function create(properties) { + return new CachePolicy(properties); + }; + + /** + * Encodes the specified CachePolicy message. Does not implicitly {@link google.cloud.compute.v1beta.CachePolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.CachePolicy + * @static + * @param {google.cloud.compute.v1beta.ICachePolicy} message CachePolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CachePolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cacheMode != null && Object.hasOwnProperty.call(message, "cacheMode")) + writer.uint32(/* id 28877888, wireType 2 =*/231023106).string(message.cacheMode); + if (message.clientTtl != null && Object.hasOwnProperty.call(message, "clientTtl")) + $root.google.cloud.compute.v1beta.Duration.encode(message.clientTtl, writer.uint32(/* id 29034360, wireType 2 =*/232274882).fork()).ldelim(); + if (message.defaultTtl != null && Object.hasOwnProperty.call(message, "defaultTtl")) + $root.google.cloud.compute.v1beta.Duration.encode(message.defaultTtl, writer.uint32(/* id 100253422, wireType 2 =*/802027378).fork()).ldelim(); + if (message.negativeCachingPolicy != null && message.negativeCachingPolicy.length) + for (var i = 0; i < message.negativeCachingPolicy.length; ++i) + $root.google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy.encode(message.negativeCachingPolicy[i], writer.uint32(/* id 155359996, wireType 2 =*/1242879970).fork()).ldelim(); + if (message.cacheKeyPolicy != null && Object.hasOwnProperty.call(message, "cacheKeyPolicy")) + $root.google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy.encode(message.cacheKeyPolicy, writer.uint32(/* id 159263727, wireType 2 =*/1274109818).fork()).ldelim(); + if (message.cacheBypassRequestHeaderNames != null && message.cacheBypassRequestHeaderNames.length) + for (var i = 0; i < message.cacheBypassRequestHeaderNames.length; ++i) + writer.uint32(/* id 197581440, wireType 2 =*/1580651522).string(message.cacheBypassRequestHeaderNames[i]); + if (message.serveWhileStale != null && Object.hasOwnProperty.call(message, "serveWhileStale")) + $root.google.cloud.compute.v1beta.Duration.encode(message.serveWhileStale, writer.uint32(/* id 236682203, wireType 2 =*/1893457626).fork()).ldelim(); + if (message.maxTtl != null && Object.hasOwnProperty.call(message, "maxTtl")) + $root.google.cloud.compute.v1beta.Duration.encode(message.maxTtl, writer.uint32(/* id 307578001, wireType 2 =*/2460624010).fork()).ldelim(); + if (message.negativeCaching != null && Object.hasOwnProperty.call(message, "negativeCaching")) + writer.uint32(/* id 336110005, wireType 0 =*/2688880040).bool(message.negativeCaching); + if (message.requestCoalescing != null && Object.hasOwnProperty.call(message, "requestCoalescing")) + writer.uint32(/* id 532808276, wireType 0 =*/4262466208).bool(message.requestCoalescing); + return writer; + }; + + /** + * Encodes the specified CachePolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CachePolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.CachePolicy + * @static + * @param {google.cloud.compute.v1beta.ICachePolicy} message CachePolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CachePolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CachePolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.CachePolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.CachePolicy} CachePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CachePolicy.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.CachePolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 197581440: { + if (!(message.cacheBypassRequestHeaderNames && message.cacheBypassRequestHeaderNames.length)) + message.cacheBypassRequestHeaderNames = []; + message.cacheBypassRequestHeaderNames.push(reader.string()); + break; + } + case 159263727: { + message.cacheKeyPolicy = $root.google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy.decode(reader, reader.uint32()); + break; + } + case 28877888: { + message.cacheMode = reader.string(); + break; + } + case 29034360: { + message.clientTtl = $root.google.cloud.compute.v1beta.Duration.decode(reader, reader.uint32()); + break; + } + case 100253422: { + message.defaultTtl = $root.google.cloud.compute.v1beta.Duration.decode(reader, reader.uint32()); + break; + } + case 307578001: { + message.maxTtl = $root.google.cloud.compute.v1beta.Duration.decode(reader, reader.uint32()); + break; + } + case 336110005: { + message.negativeCaching = reader.bool(); + break; + } + case 155359996: { + if (!(message.negativeCachingPolicy && message.negativeCachingPolicy.length)) + message.negativeCachingPolicy = []; + message.negativeCachingPolicy.push($root.google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy.decode(reader, reader.uint32())); + break; + } + case 532808276: { + message.requestCoalescing = reader.bool(); + break; + } + case 236682203: { + message.serveWhileStale = $root.google.cloud.compute.v1beta.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CachePolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.CachePolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.CachePolicy} CachePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CachePolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CachePolicy message. + * @function verify + * @memberof google.cloud.compute.v1beta.CachePolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CachePolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.cacheBypassRequestHeaderNames != null && message.hasOwnProperty("cacheBypassRequestHeaderNames")) { + if (!Array.isArray(message.cacheBypassRequestHeaderNames)) + return "cacheBypassRequestHeaderNames: array expected"; + for (var i = 0; i < message.cacheBypassRequestHeaderNames.length; ++i) + if (!$util.isString(message.cacheBypassRequestHeaderNames[i])) + return "cacheBypassRequestHeaderNames: string[] expected"; + } + if (message.cacheKeyPolicy != null && message.hasOwnProperty("cacheKeyPolicy")) { + properties._cacheKeyPolicy = 1; + { + var error = $root.google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy.verify(message.cacheKeyPolicy); + if (error) + return "cacheKeyPolicy." + error; + } + } + if (message.cacheMode != null && message.hasOwnProperty("cacheMode")) { + properties._cacheMode = 1; + if (!$util.isString(message.cacheMode)) + return "cacheMode: string expected"; + } + if (message.clientTtl != null && message.hasOwnProperty("clientTtl")) { + properties._clientTtl = 1; + { + var error = $root.google.cloud.compute.v1beta.Duration.verify(message.clientTtl); + if (error) + return "clientTtl." + error; + } + } + if (message.defaultTtl != null && message.hasOwnProperty("defaultTtl")) { + properties._defaultTtl = 1; + { + var error = $root.google.cloud.compute.v1beta.Duration.verify(message.defaultTtl); + if (error) + return "defaultTtl." + error; + } + } + if (message.maxTtl != null && message.hasOwnProperty("maxTtl")) { + properties._maxTtl = 1; + { + var error = $root.google.cloud.compute.v1beta.Duration.verify(message.maxTtl); + if (error) + return "maxTtl." + error; + } + } + if (message.negativeCaching != null && message.hasOwnProperty("negativeCaching")) { + properties._negativeCaching = 1; + if (typeof message.negativeCaching !== "boolean") + return "negativeCaching: boolean expected"; + } + if (message.negativeCachingPolicy != null && message.hasOwnProperty("negativeCachingPolicy")) { + if (!Array.isArray(message.negativeCachingPolicy)) + return "negativeCachingPolicy: array expected"; + for (var i = 0; i < message.negativeCachingPolicy.length; ++i) { + var error = $root.google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy.verify(message.negativeCachingPolicy[i]); + if (error) + return "negativeCachingPolicy." + error; + } + } + if (message.requestCoalescing != null && message.hasOwnProperty("requestCoalescing")) { + properties._requestCoalescing = 1; + if (typeof message.requestCoalescing !== "boolean") + return "requestCoalescing: boolean expected"; + } + if (message.serveWhileStale != null && message.hasOwnProperty("serveWhileStale")) { + properties._serveWhileStale = 1; + { + var error = $root.google.cloud.compute.v1beta.Duration.verify(message.serveWhileStale); + if (error) + return "serveWhileStale." + error; + } + } + return null; + }; + + /** + * Creates a CachePolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.CachePolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.CachePolicy} CachePolicy + */ + CachePolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.CachePolicy) + return object; + var message = new $root.google.cloud.compute.v1beta.CachePolicy(); + if (object.cacheBypassRequestHeaderNames) { + if (!Array.isArray(object.cacheBypassRequestHeaderNames)) + throw TypeError(".google.cloud.compute.v1beta.CachePolicy.cacheBypassRequestHeaderNames: array expected"); + message.cacheBypassRequestHeaderNames = []; + for (var i = 0; i < object.cacheBypassRequestHeaderNames.length; ++i) + message.cacheBypassRequestHeaderNames[i] = String(object.cacheBypassRequestHeaderNames[i]); + } + if (object.cacheKeyPolicy != null) { + if (typeof object.cacheKeyPolicy !== "object") + throw TypeError(".google.cloud.compute.v1beta.CachePolicy.cacheKeyPolicy: object expected"); + message.cacheKeyPolicy = $root.google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy.fromObject(object.cacheKeyPolicy); + } + if (object.cacheMode != null) + message.cacheMode = String(object.cacheMode); + if (object.clientTtl != null) { + if (typeof object.clientTtl !== "object") + throw TypeError(".google.cloud.compute.v1beta.CachePolicy.clientTtl: object expected"); + message.clientTtl = $root.google.cloud.compute.v1beta.Duration.fromObject(object.clientTtl); + } + if (object.defaultTtl != null) { + if (typeof object.defaultTtl !== "object") + throw TypeError(".google.cloud.compute.v1beta.CachePolicy.defaultTtl: object expected"); + message.defaultTtl = $root.google.cloud.compute.v1beta.Duration.fromObject(object.defaultTtl); + } + if (object.maxTtl != null) { + if (typeof object.maxTtl !== "object") + throw TypeError(".google.cloud.compute.v1beta.CachePolicy.maxTtl: object expected"); + message.maxTtl = $root.google.cloud.compute.v1beta.Duration.fromObject(object.maxTtl); + } + if (object.negativeCaching != null) + message.negativeCaching = Boolean(object.negativeCaching); + if (object.negativeCachingPolicy) { + if (!Array.isArray(object.negativeCachingPolicy)) + throw TypeError(".google.cloud.compute.v1beta.CachePolicy.negativeCachingPolicy: array expected"); + message.negativeCachingPolicy = []; + for (var i = 0; i < object.negativeCachingPolicy.length; ++i) { + if (typeof object.negativeCachingPolicy[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.CachePolicy.negativeCachingPolicy: object expected"); + message.negativeCachingPolicy[i] = $root.google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy.fromObject(object.negativeCachingPolicy[i]); + } + } + if (object.requestCoalescing != null) + message.requestCoalescing = Boolean(object.requestCoalescing); + if (object.serveWhileStale != null) { + if (typeof object.serveWhileStale !== "object") + throw TypeError(".google.cloud.compute.v1beta.CachePolicy.serveWhileStale: object expected"); + message.serveWhileStale = $root.google.cloud.compute.v1beta.Duration.fromObject(object.serveWhileStale); + } + return message; + }; + + /** + * Creates a plain object from a CachePolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.CachePolicy + * @static + * @param {google.cloud.compute.v1beta.CachePolicy} message CachePolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CachePolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.negativeCachingPolicy = []; + object.cacheBypassRequestHeaderNames = []; + } + if (message.cacheMode != null && message.hasOwnProperty("cacheMode")) { + object.cacheMode = message.cacheMode; + if (options.oneofs) + object._cacheMode = "cacheMode"; + } + if (message.clientTtl != null && message.hasOwnProperty("clientTtl")) { + object.clientTtl = $root.google.cloud.compute.v1beta.Duration.toObject(message.clientTtl, options); + if (options.oneofs) + object._clientTtl = "clientTtl"; + } + if (message.defaultTtl != null && message.hasOwnProperty("defaultTtl")) { + object.defaultTtl = $root.google.cloud.compute.v1beta.Duration.toObject(message.defaultTtl, options); + if (options.oneofs) + object._defaultTtl = "defaultTtl"; + } + if (message.negativeCachingPolicy && message.negativeCachingPolicy.length) { + object.negativeCachingPolicy = []; + for (var j = 0; j < message.negativeCachingPolicy.length; ++j) + object.negativeCachingPolicy[j] = $root.google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy.toObject(message.negativeCachingPolicy[j], options); + } + if (message.cacheKeyPolicy != null && message.hasOwnProperty("cacheKeyPolicy")) { + object.cacheKeyPolicy = $root.google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy.toObject(message.cacheKeyPolicy, options); + if (options.oneofs) + object._cacheKeyPolicy = "cacheKeyPolicy"; + } + if (message.cacheBypassRequestHeaderNames && message.cacheBypassRequestHeaderNames.length) { + object.cacheBypassRequestHeaderNames = []; + for (var j = 0; j < message.cacheBypassRequestHeaderNames.length; ++j) + object.cacheBypassRequestHeaderNames[j] = message.cacheBypassRequestHeaderNames[j]; + } + if (message.serveWhileStale != null && message.hasOwnProperty("serveWhileStale")) { + object.serveWhileStale = $root.google.cloud.compute.v1beta.Duration.toObject(message.serveWhileStale, options); + if (options.oneofs) + object._serveWhileStale = "serveWhileStale"; + } + if (message.maxTtl != null && message.hasOwnProperty("maxTtl")) { + object.maxTtl = $root.google.cloud.compute.v1beta.Duration.toObject(message.maxTtl, options); + if (options.oneofs) + object._maxTtl = "maxTtl"; + } + if (message.negativeCaching != null && message.hasOwnProperty("negativeCaching")) { + object.negativeCaching = message.negativeCaching; + if (options.oneofs) + object._negativeCaching = "negativeCaching"; + } + if (message.requestCoalescing != null && message.hasOwnProperty("requestCoalescing")) { + object.requestCoalescing = message.requestCoalescing; + if (options.oneofs) + object._requestCoalescing = "requestCoalescing"; + } + return object; + }; + + /** + * Converts this CachePolicy to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.CachePolicy + * @instance + * @returns {Object.} JSON object + */ + CachePolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CachePolicy + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.CachePolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CachePolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.CachePolicy"; + }; + + /** + * CacheMode enum. + * @name google.cloud.compute.v1beta.CachePolicy.CacheMode + * @enum {number} + * @property {number} UNDEFINED_CACHE_MODE=0 UNDEFINED_CACHE_MODE value + * @property {number} CACHE_ALL_STATIC=355027945 CACHE_ALL_STATIC value + * @property {number} FORCE_CACHE_ALL=486026928 FORCE_CACHE_ALL value + * @property {number} USE_ORIGIN_HEADERS=55380261 USE_ORIGIN_HEADERS value + */ + CachePolicy.CacheMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_CACHE_MODE"] = 0; + values[valuesById[355027945] = "CACHE_ALL_STATIC"] = 355027945; + values[valuesById[486026928] = "FORCE_CACHE_ALL"] = 486026928; + values[valuesById[55380261] = "USE_ORIGIN_HEADERS"] = 55380261; + return values; + })(); + + return CachePolicy; + })(); + + v1beta.CachePolicyCacheKeyPolicy = (function() { + + /** + * Properties of a CachePolicyCacheKeyPolicy. + * @memberof google.cloud.compute.v1beta + * @interface ICachePolicyCacheKeyPolicy + * @property {Array.|null} [excludedQueryParameters] CachePolicyCacheKeyPolicy excludedQueryParameters + * @property {boolean|null} [includeHost] CachePolicyCacheKeyPolicy includeHost + * @property {boolean|null} [includeProtocol] CachePolicyCacheKeyPolicy includeProtocol + * @property {boolean|null} [includeQueryString] CachePolicyCacheKeyPolicy includeQueryString + * @property {Array.|null} [includedCookieNames] CachePolicyCacheKeyPolicy includedCookieNames + * @property {Array.|null} [includedHeaderNames] CachePolicyCacheKeyPolicy includedHeaderNames + * @property {Array.|null} [includedQueryParameters] CachePolicyCacheKeyPolicy includedQueryParameters + */ + + /** + * Constructs a new CachePolicyCacheKeyPolicy. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a CachePolicyCacheKeyPolicy. + * @implements ICachePolicyCacheKeyPolicy + * @constructor + * @param {google.cloud.compute.v1beta.ICachePolicyCacheKeyPolicy=} [properties] Properties to set + */ + function CachePolicyCacheKeyPolicy(properties) { + this.excludedQueryParameters = []; + this.includedCookieNames = []; + this.includedHeaderNames = []; + this.includedQueryParameters = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CachePolicyCacheKeyPolicy excludedQueryParameters. + * @member {Array.} excludedQueryParameters + * @memberof google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy + * @instance + */ + CachePolicyCacheKeyPolicy.prototype.excludedQueryParameters = $util.emptyArray; + + /** + * CachePolicyCacheKeyPolicy includeHost. + * @member {boolean|null|undefined} includeHost + * @memberof google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy + * @instance + */ + CachePolicyCacheKeyPolicy.prototype.includeHost = null; + + /** + * CachePolicyCacheKeyPolicy includeProtocol. + * @member {boolean|null|undefined} includeProtocol + * @memberof google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy + * @instance + */ + CachePolicyCacheKeyPolicy.prototype.includeProtocol = null; + + /** + * CachePolicyCacheKeyPolicy includeQueryString. + * @member {boolean|null|undefined} includeQueryString + * @memberof google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy + * @instance + */ + CachePolicyCacheKeyPolicy.prototype.includeQueryString = null; + + /** + * CachePolicyCacheKeyPolicy includedCookieNames. + * @member {Array.} includedCookieNames + * @memberof google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy + * @instance + */ + CachePolicyCacheKeyPolicy.prototype.includedCookieNames = $util.emptyArray; + + /** + * CachePolicyCacheKeyPolicy includedHeaderNames. + * @member {Array.} includedHeaderNames + * @memberof google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy + * @instance + */ + CachePolicyCacheKeyPolicy.prototype.includedHeaderNames = $util.emptyArray; + + /** + * CachePolicyCacheKeyPolicy includedQueryParameters. + * @member {Array.} includedQueryParameters + * @memberof google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy + * @instance + */ + CachePolicyCacheKeyPolicy.prototype.includedQueryParameters = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CachePolicyCacheKeyPolicy.prototype, "_includeHost", { + get: $util.oneOfGetter($oneOfFields = ["includeHost"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CachePolicyCacheKeyPolicy.prototype, "_includeProtocol", { + get: $util.oneOfGetter($oneOfFields = ["includeProtocol"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CachePolicyCacheKeyPolicy.prototype, "_includeQueryString", { + get: $util.oneOfGetter($oneOfFields = ["includeQueryString"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CachePolicyCacheKeyPolicy instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy + * @static + * @param {google.cloud.compute.v1beta.ICachePolicyCacheKeyPolicy=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy} CachePolicyCacheKeyPolicy instance + */ + CachePolicyCacheKeyPolicy.create = function create(properties) { + return new CachePolicyCacheKeyPolicy(properties); + }; + + /** + * Encodes the specified CachePolicyCacheKeyPolicy message. Does not implicitly {@link google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy + * @static + * @param {google.cloud.compute.v1beta.ICachePolicyCacheKeyPolicy} message CachePolicyCacheKeyPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CachePolicyCacheKeyPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.includedQueryParameters != null && message.includedQueryParameters.length) + for (var i = 0; i < message.includedQueryParameters.length; ++i) + writer.uint32(/* id 2319076, wireType 2 =*/18552610).string(message.includedQueryParameters[i]); + if (message.includedCookieNames != null && message.includedCookieNames.length) + for (var i = 0; i < message.includedCookieNames.length; ++i) + writer.uint32(/* id 66987088, wireType 2 =*/535896706).string(message.includedCookieNames[i]); + if (message.excludedQueryParameters != null && message.excludedQueryParameters.length) + for (var i = 0; i < message.excludedQueryParameters.length; ++i) + writer.uint32(/* id 124896150, wireType 2 =*/999169202).string(message.excludedQueryParameters[i]); + if (message.includeProtocol != null && Object.hasOwnProperty.call(message, "includeProtocol")) + writer.uint32(/* id 303507535, wireType 0 =*/2428060280).bool(message.includeProtocol); + if (message.includeQueryString != null && Object.hasOwnProperty.call(message, "includeQueryString")) + writer.uint32(/* id 474036639, wireType 0 =*/3792293112).bool(message.includeQueryString); + if (message.includeHost != null && Object.hasOwnProperty.call(message, "includeHost")) + writer.uint32(/* id 486867679, wireType 0 =*/3894941432).bool(message.includeHost); + if (message.includedHeaderNames != null && message.includedHeaderNames.length) + for (var i = 0; i < message.includedHeaderNames.length; ++i) + writer.uint32(/* id 533756345, wireType 2 =*/4270050762).string(message.includedHeaderNames[i]); + return writer; + }; + + /** + * Encodes the specified CachePolicyCacheKeyPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy + * @static + * @param {google.cloud.compute.v1beta.ICachePolicyCacheKeyPolicy} message CachePolicyCacheKeyPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CachePolicyCacheKeyPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CachePolicyCacheKeyPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy} CachePolicyCacheKeyPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CachePolicyCacheKeyPolicy.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 124896150: { + if (!(message.excludedQueryParameters && message.excludedQueryParameters.length)) + message.excludedQueryParameters = []; + message.excludedQueryParameters.push(reader.string()); + break; + } + case 486867679: { + message.includeHost = reader.bool(); + break; + } + case 303507535: { + message.includeProtocol = reader.bool(); + break; + } + case 474036639: { + message.includeQueryString = reader.bool(); + break; + } + case 66987088: { + if (!(message.includedCookieNames && message.includedCookieNames.length)) + message.includedCookieNames = []; + message.includedCookieNames.push(reader.string()); + break; + } + case 533756345: { + if (!(message.includedHeaderNames && message.includedHeaderNames.length)) + message.includedHeaderNames = []; + message.includedHeaderNames.push(reader.string()); + break; + } + case 2319076: { + if (!(message.includedQueryParameters && message.includedQueryParameters.length)) + message.includedQueryParameters = []; + message.includedQueryParameters.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CachePolicyCacheKeyPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy} CachePolicyCacheKeyPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CachePolicyCacheKeyPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CachePolicyCacheKeyPolicy message. + * @function verify + * @memberof google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CachePolicyCacheKeyPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.excludedQueryParameters != null && message.hasOwnProperty("excludedQueryParameters")) { + if (!Array.isArray(message.excludedQueryParameters)) + return "excludedQueryParameters: array expected"; + for (var i = 0; i < message.excludedQueryParameters.length; ++i) + if (!$util.isString(message.excludedQueryParameters[i])) + return "excludedQueryParameters: string[] expected"; + } + if (message.includeHost != null && message.hasOwnProperty("includeHost")) { + properties._includeHost = 1; + if (typeof message.includeHost !== "boolean") + return "includeHost: boolean expected"; + } + if (message.includeProtocol != null && message.hasOwnProperty("includeProtocol")) { + properties._includeProtocol = 1; + if (typeof message.includeProtocol !== "boolean") + return "includeProtocol: boolean expected"; + } + if (message.includeQueryString != null && message.hasOwnProperty("includeQueryString")) { + properties._includeQueryString = 1; + if (typeof message.includeQueryString !== "boolean") + return "includeQueryString: boolean expected"; + } + if (message.includedCookieNames != null && message.hasOwnProperty("includedCookieNames")) { + if (!Array.isArray(message.includedCookieNames)) + return "includedCookieNames: array expected"; + for (var i = 0; i < message.includedCookieNames.length; ++i) + if (!$util.isString(message.includedCookieNames[i])) + return "includedCookieNames: string[] expected"; + } + if (message.includedHeaderNames != null && message.hasOwnProperty("includedHeaderNames")) { + if (!Array.isArray(message.includedHeaderNames)) + return "includedHeaderNames: array expected"; + for (var i = 0; i < message.includedHeaderNames.length; ++i) + if (!$util.isString(message.includedHeaderNames[i])) + return "includedHeaderNames: string[] expected"; + } + if (message.includedQueryParameters != null && message.hasOwnProperty("includedQueryParameters")) { + if (!Array.isArray(message.includedQueryParameters)) + return "includedQueryParameters: array expected"; + for (var i = 0; i < message.includedQueryParameters.length; ++i) + if (!$util.isString(message.includedQueryParameters[i])) + return "includedQueryParameters: string[] expected"; + } + return null; + }; + + /** + * Creates a CachePolicyCacheKeyPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy} CachePolicyCacheKeyPolicy + */ + CachePolicyCacheKeyPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy) + return object; + var message = new $root.google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy(); + if (object.excludedQueryParameters) { + if (!Array.isArray(object.excludedQueryParameters)) + throw TypeError(".google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy.excludedQueryParameters: array expected"); + message.excludedQueryParameters = []; + for (var i = 0; i < object.excludedQueryParameters.length; ++i) + message.excludedQueryParameters[i] = String(object.excludedQueryParameters[i]); + } + if (object.includeHost != null) + message.includeHost = Boolean(object.includeHost); + if (object.includeProtocol != null) + message.includeProtocol = Boolean(object.includeProtocol); + if (object.includeQueryString != null) + message.includeQueryString = Boolean(object.includeQueryString); + if (object.includedCookieNames) { + if (!Array.isArray(object.includedCookieNames)) + throw TypeError(".google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy.includedCookieNames: array expected"); + message.includedCookieNames = []; + for (var i = 0; i < object.includedCookieNames.length; ++i) + message.includedCookieNames[i] = String(object.includedCookieNames[i]); + } + if (object.includedHeaderNames) { + if (!Array.isArray(object.includedHeaderNames)) + throw TypeError(".google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy.includedHeaderNames: array expected"); + message.includedHeaderNames = []; + for (var i = 0; i < object.includedHeaderNames.length; ++i) + message.includedHeaderNames[i] = String(object.includedHeaderNames[i]); + } + if (object.includedQueryParameters) { + if (!Array.isArray(object.includedQueryParameters)) + throw TypeError(".google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy.includedQueryParameters: array expected"); + message.includedQueryParameters = []; + for (var i = 0; i < object.includedQueryParameters.length; ++i) + message.includedQueryParameters[i] = String(object.includedQueryParameters[i]); + } + return message; + }; + + /** + * Creates a plain object from a CachePolicyCacheKeyPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy + * @static + * @param {google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy} message CachePolicyCacheKeyPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CachePolicyCacheKeyPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.includedQueryParameters = []; + object.includedCookieNames = []; + object.excludedQueryParameters = []; + object.includedHeaderNames = []; + } + if (message.includedQueryParameters && message.includedQueryParameters.length) { + object.includedQueryParameters = []; + for (var j = 0; j < message.includedQueryParameters.length; ++j) + object.includedQueryParameters[j] = message.includedQueryParameters[j]; + } + if (message.includedCookieNames && message.includedCookieNames.length) { + object.includedCookieNames = []; + for (var j = 0; j < message.includedCookieNames.length; ++j) + object.includedCookieNames[j] = message.includedCookieNames[j]; + } + if (message.excludedQueryParameters && message.excludedQueryParameters.length) { + object.excludedQueryParameters = []; + for (var j = 0; j < message.excludedQueryParameters.length; ++j) + object.excludedQueryParameters[j] = message.excludedQueryParameters[j]; + } + if (message.includeProtocol != null && message.hasOwnProperty("includeProtocol")) { + object.includeProtocol = message.includeProtocol; + if (options.oneofs) + object._includeProtocol = "includeProtocol"; + } + if (message.includeQueryString != null && message.hasOwnProperty("includeQueryString")) { + object.includeQueryString = message.includeQueryString; + if (options.oneofs) + object._includeQueryString = "includeQueryString"; + } + if (message.includeHost != null && message.hasOwnProperty("includeHost")) { + object.includeHost = message.includeHost; + if (options.oneofs) + object._includeHost = "includeHost"; + } + if (message.includedHeaderNames && message.includedHeaderNames.length) { + object.includedHeaderNames = []; + for (var j = 0; j < message.includedHeaderNames.length; ++j) + object.includedHeaderNames[j] = message.includedHeaderNames[j]; + } + return object; + }; + + /** + * Converts this CachePolicyCacheKeyPolicy to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy + * @instance + * @returns {Object.} JSON object + */ + CachePolicyCacheKeyPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CachePolicyCacheKeyPolicy + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CachePolicyCacheKeyPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.CachePolicyCacheKeyPolicy"; + }; + + return CachePolicyCacheKeyPolicy; + })(); + + v1beta.CachePolicyNegativeCachingPolicy = (function() { + + /** + * Properties of a CachePolicyNegativeCachingPolicy. + * @memberof google.cloud.compute.v1beta + * @interface ICachePolicyNegativeCachingPolicy + * @property {number|null} [code] CachePolicyNegativeCachingPolicy code + * @property {google.cloud.compute.v1beta.IDuration|null} [ttl] CachePolicyNegativeCachingPolicy ttl + */ + + /** + * Constructs a new CachePolicyNegativeCachingPolicy. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a CachePolicyNegativeCachingPolicy. + * @implements ICachePolicyNegativeCachingPolicy + * @constructor + * @param {google.cloud.compute.v1beta.ICachePolicyNegativeCachingPolicy=} [properties] Properties to set + */ + function CachePolicyNegativeCachingPolicy(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CachePolicyNegativeCachingPolicy code. + * @member {number|null|undefined} code + * @memberof google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy + * @instance + */ + CachePolicyNegativeCachingPolicy.prototype.code = null; + + /** + * CachePolicyNegativeCachingPolicy ttl. + * @member {google.cloud.compute.v1beta.IDuration|null|undefined} ttl + * @memberof google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy + * @instance + */ + CachePolicyNegativeCachingPolicy.prototype.ttl = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CachePolicyNegativeCachingPolicy.prototype, "_code", { + get: $util.oneOfGetter($oneOfFields = ["code"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CachePolicyNegativeCachingPolicy.prototype, "_ttl", { + get: $util.oneOfGetter($oneOfFields = ["ttl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CachePolicyNegativeCachingPolicy instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy + * @static + * @param {google.cloud.compute.v1beta.ICachePolicyNegativeCachingPolicy=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy} CachePolicyNegativeCachingPolicy instance + */ + CachePolicyNegativeCachingPolicy.create = function create(properties) { + return new CachePolicyNegativeCachingPolicy(properties); + }; + + /** + * Encodes the specified CachePolicyNegativeCachingPolicy message. Does not implicitly {@link google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy + * @static + * @param {google.cloud.compute.v1beta.ICachePolicyNegativeCachingPolicy} message CachePolicyNegativeCachingPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CachePolicyNegativeCachingPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ttl != null && Object.hasOwnProperty.call(message, "ttl")) + $root.google.cloud.compute.v1beta.Duration.encode(message.ttl, writer.uint32(/* id 115180, wireType 2 =*/921442).fork()).ldelim(); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 3059181, wireType 0 =*/24473448).int32(message.code); + return writer; + }; + + /** + * Encodes the specified CachePolicyNegativeCachingPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy + * @static + * @param {google.cloud.compute.v1beta.ICachePolicyNegativeCachingPolicy} message CachePolicyNegativeCachingPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CachePolicyNegativeCachingPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CachePolicyNegativeCachingPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy} CachePolicyNegativeCachingPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CachePolicyNegativeCachingPolicy.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3059181: { + message.code = reader.int32(); + break; + } + case 115180: { + message.ttl = $root.google.cloud.compute.v1beta.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CachePolicyNegativeCachingPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy} CachePolicyNegativeCachingPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CachePolicyNegativeCachingPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CachePolicyNegativeCachingPolicy message. + * @function verify + * @memberof google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CachePolicyNegativeCachingPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.code != null && message.hasOwnProperty("code")) { + properties._code = 1; + if (!$util.isInteger(message.code)) + return "code: integer expected"; + } + if (message.ttl != null && message.hasOwnProperty("ttl")) { + properties._ttl = 1; + { + var error = $root.google.cloud.compute.v1beta.Duration.verify(message.ttl); + if (error) + return "ttl." + error; + } + } + return null; + }; + + /** + * Creates a CachePolicyNegativeCachingPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy} CachePolicyNegativeCachingPolicy + */ + CachePolicyNegativeCachingPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy) + return object; + var message = new $root.google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy(); + if (object.code != null) + message.code = object.code | 0; + if (object.ttl != null) { + if (typeof object.ttl !== "object") + throw TypeError(".google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy.ttl: object expected"); + message.ttl = $root.google.cloud.compute.v1beta.Duration.fromObject(object.ttl); + } + return message; + }; + + /** + * Creates a plain object from a CachePolicyNegativeCachingPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy + * @static + * @param {google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy} message CachePolicyNegativeCachingPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CachePolicyNegativeCachingPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.ttl != null && message.hasOwnProperty("ttl")) { + object.ttl = $root.google.cloud.compute.v1beta.Duration.toObject(message.ttl, options); + if (options.oneofs) + object._ttl = "ttl"; + } + if (message.code != null && message.hasOwnProperty("code")) { + object.code = message.code; + if (options.oneofs) + object._code = "code"; + } + return object; + }; + + /** + * Converts this CachePolicyNegativeCachingPolicy to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy + * @instance + * @returns {Object.} JSON object + */ + CachePolicyNegativeCachingPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CachePolicyNegativeCachingPolicy + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CachePolicyNegativeCachingPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.CachePolicyNegativeCachingPolicy"; + }; + + return CachePolicyNegativeCachingPolicy; + })(); + v1beta.CalendarModeAdviceRequest = (function() { /** @@ -729311,6 +731184,7 @@ * @property {number} GENERAL_PURPOSE_N2=301912156 GENERAL_PURPOSE_N2 value * @property {number} GENERAL_PURPOSE_N2D=232471400 GENERAL_PURPOSE_N2D value * @property {number} GENERAL_PURPOSE_N4=301912158 GENERAL_PURPOSE_N4 value + * @property {number} GENERAL_PURPOSE_N4A=232471459 GENERAL_PURPOSE_N4A value * @property {number} GENERAL_PURPOSE_N4D=232471462 GENERAL_PURPOSE_N4D value * @property {number} GENERAL_PURPOSE_T2D=232477166 GENERAL_PURPOSE_T2D value * @property {number} GRAPHICS_OPTIMIZED=68500563 GRAPHICS_OPTIMIZED value @@ -729353,6 +731227,7 @@ values[valuesById[301912156] = "GENERAL_PURPOSE_N2"] = 301912156; values[valuesById[232471400] = "GENERAL_PURPOSE_N2D"] = 232471400; values[valuesById[301912158] = "GENERAL_PURPOSE_N4"] = 301912158; + values[valuesById[232471459] = "GENERAL_PURPOSE_N4A"] = 232471459; values[valuesById[232471462] = "GENERAL_PURPOSE_N4D"] = 232471462; values[valuesById[232477166] = "GENERAL_PURPOSE_T2D"] = 232477166; values[valuesById[68500563] = "GRAPHICS_OPTIMIZED"] = 68500563; @@ -732696,6 +734571,323 @@ return ConfidentialInstanceConfig; })(); + v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest = (function() { + + /** + * Properties of a ConfigureAcceleratorTopologiesInstanceGroupManagerRequest. + * @memberof google.cloud.compute.v1beta + * @interface IConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @property {string|null} [instanceGroupManager] ConfigureAcceleratorTopologiesInstanceGroupManagerRequest instanceGroupManager + * @property {google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequest|null} [instanceGroupManagersConfigureAcceleratorTopologiesRequestResource] ConfigureAcceleratorTopologiesInstanceGroupManagerRequest instanceGroupManagersConfigureAcceleratorTopologiesRequestResource + * @property {string|null} [project] ConfigureAcceleratorTopologiesInstanceGroupManagerRequest project + * @property {string|null} [requestId] ConfigureAcceleratorTopologiesInstanceGroupManagerRequest requestId + * @property {string|null} [zone] ConfigureAcceleratorTopologiesInstanceGroupManagerRequest zone + */ + + /** + * Constructs a new ConfigureAcceleratorTopologiesInstanceGroupManagerRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ConfigureAcceleratorTopologiesInstanceGroupManagerRequest. + * @implements IConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @constructor + * @param {google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest=} [properties] Properties to set + */ + function ConfigureAcceleratorTopologiesInstanceGroupManagerRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ConfigureAcceleratorTopologiesInstanceGroupManagerRequest instanceGroupManager. + * @member {string} instanceGroupManager + * @memberof google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @instance + */ + ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.prototype.instanceGroupManager = ""; + + /** + * ConfigureAcceleratorTopologiesInstanceGroupManagerRequest instanceGroupManagersConfigureAcceleratorTopologiesRequestResource. + * @member {google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequest|null|undefined} instanceGroupManagersConfigureAcceleratorTopologiesRequestResource + * @memberof google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @instance + */ + ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.prototype.instanceGroupManagersConfigureAcceleratorTopologiesRequestResource = null; + + /** + * ConfigureAcceleratorTopologiesInstanceGroupManagerRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @instance + */ + ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.prototype.project = ""; + + /** + * ConfigureAcceleratorTopologiesInstanceGroupManagerRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @instance + */ + ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.prototype.requestId = null; + + /** + * ConfigureAcceleratorTopologiesInstanceGroupManagerRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @instance + */ + ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ConfigureAcceleratorTopologiesInstanceGroupManagerRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @static + * @param {google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest} ConfigureAcceleratorTopologiesInstanceGroupManagerRequest instance + */ + ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.create = function create(properties) { + return new ConfigureAcceleratorTopologiesInstanceGroupManagerRequest(properties); + }; + + /** + * Encodes the specified ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @static + * @param {google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest} message ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.instanceGroupManager != null && Object.hasOwnProperty.call(message, "instanceGroupManager")) + writer.uint32(/* id 249363395, wireType 2 =*/1994907162).string(message.instanceGroupManager); + if (message.instanceGroupManagersConfigureAcceleratorTopologiesRequestResource != null && Object.hasOwnProperty.call(message, "instanceGroupManagersConfigureAcceleratorTopologiesRequestResource")) + $root.google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest.encode(message.instanceGroupManagersConfigureAcceleratorTopologiesRequestResource, writer.uint32(/* id 365743316, wireType 2 =*/2925946530).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @static + * @param {google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest} message ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest} ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 249363395: { + message.instanceGroupManager = reader.string(); + break; + } + case 365743316: { + message.instanceGroupManagersConfigureAcceleratorTopologiesRequestResource = $root.google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest} ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instanceGroupManager != null && message.hasOwnProperty("instanceGroupManager")) + if (!$util.isString(message.instanceGroupManager)) + return "instanceGroupManager: string expected"; + if (message.instanceGroupManagersConfigureAcceleratorTopologiesRequestResource != null && message.hasOwnProperty("instanceGroupManagersConfigureAcceleratorTopologiesRequestResource")) { + var error = $root.google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest.verify(message.instanceGroupManagersConfigureAcceleratorTopologiesRequestResource); + if (error) + return "instanceGroupManagersConfigureAcceleratorTopologiesRequestResource." + error; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest} ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + */ + ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest(); + if (object.instanceGroupManager != null) + message.instanceGroupManager = String(object.instanceGroupManager); + if (object.instanceGroupManagersConfigureAcceleratorTopologiesRequestResource != null) { + if (typeof object.instanceGroupManagersConfigureAcceleratorTopologiesRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.instanceGroupManagersConfigureAcceleratorTopologiesRequestResource: object expected"); + message.instanceGroupManagersConfigureAcceleratorTopologiesRequestResource = $root.google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest.fromObject(object.instanceGroupManagersConfigureAcceleratorTopologiesRequestResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @static + * @param {google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest} message ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.project = ""; + object.instanceGroupManager = ""; + object.instanceGroupManagersConfigureAcceleratorTopologiesRequestResource = null; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.instanceGroupManager != null && message.hasOwnProperty("instanceGroupManager")) + object.instanceGroupManager = message.instanceGroupManager; + if (message.instanceGroupManagersConfigureAcceleratorTopologiesRequestResource != null && message.hasOwnProperty("instanceGroupManagersConfigureAcceleratorTopologiesRequestResource")) + object.instanceGroupManagersConfigureAcceleratorTopologiesRequestResource = $root.google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest.toObject(message.instanceGroupManagersConfigureAcceleratorTopologiesRequestResource, options); + return object; + }; + + /** + * Converts this ConfigureAcceleratorTopologiesInstanceGroupManagerRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @instance + * @returns {Object.} JSON object + */ + ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConfigureAcceleratorTopologiesInstanceGroupManagerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest"; + }; + + return ConfigureAcceleratorTopologiesInstanceGroupManagerRequest; + })(); + v1beta.ConnectionDraining = (function() { /** @@ -746560,27 +748752,27 @@ return DeleteInstancesRegionInstanceGroupManagerRequest; })(); - v1beta.DeleteInstantSnapshotRequest = (function() { + v1beta.DeleteInstantSnapshotGroupRequest = (function() { /** - * Properties of a DeleteInstantSnapshotRequest. + * Properties of a DeleteInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1beta - * @interface IDeleteInstantSnapshotRequest - * @property {string|null} [instantSnapshot] DeleteInstantSnapshotRequest instantSnapshot - * @property {string|null} [project] DeleteInstantSnapshotRequest project - * @property {string|null} [requestId] DeleteInstantSnapshotRequest requestId - * @property {string|null} [zone] DeleteInstantSnapshotRequest zone + * @interface IDeleteInstantSnapshotGroupRequest + * @property {string|null} [instantSnapshotGroup] DeleteInstantSnapshotGroupRequest instantSnapshotGroup + * @property {string|null} [project] DeleteInstantSnapshotGroupRequest project + * @property {string|null} [requestId] DeleteInstantSnapshotGroupRequest requestId + * @property {string|null} [zone] DeleteInstantSnapshotGroupRequest zone */ /** - * Constructs a new DeleteInstantSnapshotRequest. + * Constructs a new DeleteInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a DeleteInstantSnapshotRequest. - * @implements IDeleteInstantSnapshotRequest + * @classdesc Represents a DeleteInstantSnapshotGroupRequest. + * @implements IDeleteInstantSnapshotGroupRequest * @constructor - * @param {google.cloud.compute.v1beta.IDeleteInstantSnapshotRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest=} [properties] Properties to set */ - function DeleteInstantSnapshotRequest(properties) { + function DeleteInstantSnapshotGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -746588,116 +748780,405 @@ } /** - * DeleteInstantSnapshotRequest instantSnapshot. - * @member {string} instantSnapshot - * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotRequest + * DeleteInstantSnapshotGroupRequest instantSnapshotGroup. + * @member {string} instantSnapshotGroup + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest * @instance */ - DeleteInstantSnapshotRequest.prototype.instantSnapshot = ""; + DeleteInstantSnapshotGroupRequest.prototype.instantSnapshotGroup = ""; /** - * DeleteInstantSnapshotRequest project. + * DeleteInstantSnapshotGroupRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest * @instance */ - DeleteInstantSnapshotRequest.prototype.project = ""; + DeleteInstantSnapshotGroupRequest.prototype.project = ""; /** - * DeleteInstantSnapshotRequest requestId. + * DeleteInstantSnapshotGroupRequest requestId. * @member {string|null|undefined} requestId - * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest * @instance */ - DeleteInstantSnapshotRequest.prototype.requestId = null; + DeleteInstantSnapshotGroupRequest.prototype.requestId = null; /** - * DeleteInstantSnapshotRequest zone. + * DeleteInstantSnapshotGroupRequest zone. * @member {string} zone - * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest * @instance */ - DeleteInstantSnapshotRequest.prototype.zone = ""; + DeleteInstantSnapshotGroupRequest.prototype.zone = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(DeleteInstantSnapshotRequest.prototype, "_requestId", { + Object.defineProperty(DeleteInstantSnapshotGroupRequest.prototype, "_requestId", { get: $util.oneOfGetter($oneOfFields = ["requestId"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new DeleteInstantSnapshotRequest instance using the specified properties. + * Creates a new DeleteInstantSnapshotGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.IDeleteInstantSnapshotRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.DeleteInstantSnapshotRequest} DeleteInstantSnapshotRequest instance + * @param {google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest} DeleteInstantSnapshotGroupRequest instance */ - DeleteInstantSnapshotRequest.create = function create(properties) { - return new DeleteInstantSnapshotRequest(properties); + DeleteInstantSnapshotGroupRequest.create = function create(properties) { + return new DeleteInstantSnapshotGroupRequest(properties); }; /** - * Encodes the specified DeleteInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified DeleteInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.IDeleteInstantSnapshotRequest} message DeleteInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest} message DeleteInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteInstantSnapshotRequest.encode = function encode(message, writer) { + DeleteInstantSnapshotGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.instantSnapshotGroup != null && Object.hasOwnProperty.call(message, "instantSnapshotGroup")) + writer.uint32(/* id 223180386, wireType 2 =*/1785443090).string(message.instantSnapshotGroup); if (message.project != null && Object.hasOwnProperty.call(message, "project")) writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); - if (message.instantSnapshot != null && Object.hasOwnProperty.call(message, "instantSnapshot")) - writer.uint32(/* id 391638626, wireType 2 =*/3133109010).string(message.instantSnapshot); return writer; }; /** - * Encodes the specified DeleteInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified DeleteInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.IDeleteInstantSnapshotRequest} message DeleteInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest} message DeleteInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteInstantSnapshotRequest message from the specified reader or buffer. + * Decodes a DeleteInstantSnapshotGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.DeleteInstantSnapshotRequest} DeleteInstantSnapshotRequest + * @returns {google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest} DeleteInstantSnapshotGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteInstantSnapshotRequest.decode = function decode(reader, length, error) { + DeleteInstantSnapshotGroupRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.DeleteInstantSnapshotRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 391638626: { - message.instantSnapshot = reader.string(); + case 223180386: { + message.instantSnapshotGroup = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest} DeleteInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteInstantSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteInstantSnapshotGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instantSnapshotGroup != null && message.hasOwnProperty("instantSnapshotGroup")) + if (!$util.isString(message.instantSnapshotGroup)) + return "instantSnapshotGroup: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a DeleteInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest} DeleteInstantSnapshotGroupRequest + */ + DeleteInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest(); + if (object.instantSnapshotGroup != null) + message.instantSnapshotGroup = String(object.instantSnapshotGroup); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a DeleteInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest} message DeleteInstantSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteInstantSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.instantSnapshotGroup = ""; + object.project = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.instantSnapshotGroup != null && message.hasOwnProperty("instantSnapshotGroup")) + object.instantSnapshotGroup = message.instantSnapshotGroup; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this DeleteInstantSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteInstantSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest"; + }; + + return DeleteInstantSnapshotGroupRequest; + })(); + + v1beta.DeleteInstantSnapshotRequest = (function() { + + /** + * Properties of a DeleteInstantSnapshotRequest. + * @memberof google.cloud.compute.v1beta + * @interface IDeleteInstantSnapshotRequest + * @property {string|null} [instantSnapshot] DeleteInstantSnapshotRequest instantSnapshot + * @property {string|null} [project] DeleteInstantSnapshotRequest project + * @property {string|null} [requestId] DeleteInstantSnapshotRequest requestId + * @property {string|null} [zone] DeleteInstantSnapshotRequest zone + */ + + /** + * Constructs a new DeleteInstantSnapshotRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a DeleteInstantSnapshotRequest. + * @implements IDeleteInstantSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1beta.IDeleteInstantSnapshotRequest=} [properties] Properties to set + */ + function DeleteInstantSnapshotRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteInstantSnapshotRequest instantSnapshot. + * @member {string} instantSnapshot + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotRequest + * @instance + */ + DeleteInstantSnapshotRequest.prototype.instantSnapshot = ""; + + /** + * DeleteInstantSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotRequest + * @instance + */ + DeleteInstantSnapshotRequest.prototype.project = ""; + + /** + * DeleteInstantSnapshotRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotRequest + * @instance + */ + DeleteInstantSnapshotRequest.prototype.requestId = null; + + /** + * DeleteInstantSnapshotRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotRequest + * @instance + */ + DeleteInstantSnapshotRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeleteInstantSnapshotRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteInstantSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.DeleteInstantSnapshotRequest} DeleteInstantSnapshotRequest instance + */ + DeleteInstantSnapshotRequest.create = function create(properties) { + return new DeleteInstantSnapshotRequest(properties); + }; + + /** + * Encodes the specified DeleteInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteInstantSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteInstantSnapshotRequest} message DeleteInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteInstantSnapshotRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.instantSnapshot != null && Object.hasOwnProperty.call(message, "instantSnapshot")) + writer.uint32(/* id 391638626, wireType 2 =*/3133109010).string(message.instantSnapshot); + return writer; + }; + + /** + * Encodes the specified DeleteInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteInstantSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteInstantSnapshotRequest} message DeleteInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteInstantSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.DeleteInstantSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.DeleteInstantSnapshotRequest} DeleteInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteInstantSnapshotRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.DeleteInstantSnapshotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 391638626: { + message.instantSnapshot = reader.string(); break; } case 227560217: { @@ -748468,27 +750949,28 @@ return DeleteMachineImageRequest; })(); - v1beta.DeleteNetworkAttachmentRequest = (function() { + v1beta.DeleteNamedSetRouterRequest = (function() { /** - * Properties of a DeleteNetworkAttachmentRequest. + * Properties of a DeleteNamedSetRouterRequest. * @memberof google.cloud.compute.v1beta - * @interface IDeleteNetworkAttachmentRequest - * @property {string|null} [networkAttachment] DeleteNetworkAttachmentRequest networkAttachment - * @property {string|null} [project] DeleteNetworkAttachmentRequest project - * @property {string|null} [region] DeleteNetworkAttachmentRequest region - * @property {string|null} [requestId] DeleteNetworkAttachmentRequest requestId + * @interface IDeleteNamedSetRouterRequest + * @property {string|null} [namedSet] DeleteNamedSetRouterRequest namedSet + * @property {string|null} [project] DeleteNamedSetRouterRequest project + * @property {string|null} [region] DeleteNamedSetRouterRequest region + * @property {string|null} [requestId] DeleteNamedSetRouterRequest requestId + * @property {string|null} [router] DeleteNamedSetRouterRequest router */ /** - * Constructs a new DeleteNetworkAttachmentRequest. + * Constructs a new DeleteNamedSetRouterRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a DeleteNetworkAttachmentRequest. - * @implements IDeleteNetworkAttachmentRequest + * @classdesc Represents a DeleteNamedSetRouterRequest. + * @implements IDeleteNamedSetRouterRequest * @constructor - * @param {google.cloud.compute.v1beta.IDeleteNetworkAttachmentRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest=} [properties] Properties to set */ - function DeleteNetworkAttachmentRequest(properties) { + function DeleteNamedSetRouterRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -748496,116 +750978,132 @@ } /** - * DeleteNetworkAttachmentRequest networkAttachment. - * @member {string} networkAttachment - * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * DeleteNamedSetRouterRequest namedSet. + * @member {string|null|undefined} namedSet + * @memberof google.cloud.compute.v1beta.DeleteNamedSetRouterRequest * @instance */ - DeleteNetworkAttachmentRequest.prototype.networkAttachment = ""; + DeleteNamedSetRouterRequest.prototype.namedSet = null; /** - * DeleteNetworkAttachmentRequest project. + * DeleteNamedSetRouterRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * @memberof google.cloud.compute.v1beta.DeleteNamedSetRouterRequest * @instance */ - DeleteNetworkAttachmentRequest.prototype.project = ""; + DeleteNamedSetRouterRequest.prototype.project = ""; /** - * DeleteNetworkAttachmentRequest region. + * DeleteNamedSetRouterRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * @memberof google.cloud.compute.v1beta.DeleteNamedSetRouterRequest * @instance */ - DeleteNetworkAttachmentRequest.prototype.region = ""; + DeleteNamedSetRouterRequest.prototype.region = ""; /** - * DeleteNetworkAttachmentRequest requestId. + * DeleteNamedSetRouterRequest requestId. * @member {string|null|undefined} requestId - * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * @memberof google.cloud.compute.v1beta.DeleteNamedSetRouterRequest * @instance */ - DeleteNetworkAttachmentRequest.prototype.requestId = null; + DeleteNamedSetRouterRequest.prototype.requestId = null; + + /** + * DeleteNamedSetRouterRequest router. + * @member {string} router + * @memberof google.cloud.compute.v1beta.DeleteNamedSetRouterRequest + * @instance + */ + DeleteNamedSetRouterRequest.prototype.router = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(DeleteNetworkAttachmentRequest.prototype, "_requestId", { + Object.defineProperty(DeleteNamedSetRouterRequest.prototype, "_namedSet", { + get: $util.oneOfGetter($oneOfFields = ["namedSet"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeleteNamedSetRouterRequest.prototype, "_requestId", { get: $util.oneOfGetter($oneOfFields = ["requestId"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new DeleteNetworkAttachmentRequest instance using the specified properties. + * Creates a new DeleteNamedSetRouterRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * @memberof google.cloud.compute.v1beta.DeleteNamedSetRouterRequest * @static - * @param {google.cloud.compute.v1beta.IDeleteNetworkAttachmentRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest} DeleteNetworkAttachmentRequest instance + * @param {google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.DeleteNamedSetRouterRequest} DeleteNamedSetRouterRequest instance */ - DeleteNetworkAttachmentRequest.create = function create(properties) { - return new DeleteNetworkAttachmentRequest(properties); + DeleteNamedSetRouterRequest.create = function create(properties) { + return new DeleteNamedSetRouterRequest(properties); }; /** - * Encodes the specified DeleteNetworkAttachmentRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest.verify|verify} messages. + * Encodes the specified DeleteNamedSetRouterRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteNamedSetRouterRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * @memberof google.cloud.compute.v1beta.DeleteNamedSetRouterRequest * @static - * @param {google.cloud.compute.v1beta.IDeleteNetworkAttachmentRequest} message DeleteNetworkAttachmentRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest} message DeleteNamedSetRouterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteNetworkAttachmentRequest.encode = function encode(message, writer) { + DeleteNamedSetRouterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); if (message.region != null && Object.hasOwnProperty.call(message, "region")) writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); - if (message.networkAttachment != null && Object.hasOwnProperty.call(message, "networkAttachment")) - writer.uint32(/* id 224644052, wireType 2 =*/1797152418).string(message.networkAttachment); + if (message.router != null && Object.hasOwnProperty.call(message, "router")) + writer.uint32(/* id 148608841, wireType 2 =*/1188870730).string(message.router); + if (message.namedSet != null && Object.hasOwnProperty.call(message, "namedSet")) + writer.uint32(/* id 164134492, wireType 2 =*/1313075938).string(message.namedSet); if (message.project != null && Object.hasOwnProperty.call(message, "project")) writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); return writer; }; /** - * Encodes the specified DeleteNetworkAttachmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest.verify|verify} messages. + * Encodes the specified DeleteNamedSetRouterRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteNamedSetRouterRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * @memberof google.cloud.compute.v1beta.DeleteNamedSetRouterRequest * @static - * @param {google.cloud.compute.v1beta.IDeleteNetworkAttachmentRequest} message DeleteNetworkAttachmentRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest} message DeleteNamedSetRouterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteNetworkAttachmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteNamedSetRouterRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteNetworkAttachmentRequest message from the specified reader or buffer. + * Decodes a DeleteNamedSetRouterRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * @memberof google.cloud.compute.v1beta.DeleteNamedSetRouterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest} DeleteNetworkAttachmentRequest + * @returns {google.cloud.compute.v1beta.DeleteNamedSetRouterRequest} DeleteNamedSetRouterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteNetworkAttachmentRequest.decode = function decode(reader, length, error) { + DeleteNamedSetRouterRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 224644052: { - message.networkAttachment = reader.string(); + case 164134492: { + message.namedSet = reader.string(); break; } case 227560217: { @@ -748620,6 +751118,10 @@ message.requestId = reader.string(); break; } + case 148608841: { + message.router = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -748629,36 +751131,38 @@ }; /** - * Decodes a DeleteNetworkAttachmentRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteNamedSetRouterRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * @memberof google.cloud.compute.v1beta.DeleteNamedSetRouterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest} DeleteNetworkAttachmentRequest + * @returns {google.cloud.compute.v1beta.DeleteNamedSetRouterRequest} DeleteNamedSetRouterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteNetworkAttachmentRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteNamedSetRouterRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteNetworkAttachmentRequest message. + * Verifies a DeleteNamedSetRouterRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * @memberof google.cloud.compute.v1beta.DeleteNamedSetRouterRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteNetworkAttachmentRequest.verify = function verify(message) { + DeleteNamedSetRouterRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.networkAttachment != null && message.hasOwnProperty("networkAttachment")) - if (!$util.isString(message.networkAttachment)) - return "networkAttachment: string expected"; + if (message.namedSet != null && message.hasOwnProperty("namedSet")) { + properties._namedSet = 1; + if (!$util.isString(message.namedSet)) + return "namedSet: string expected"; + } if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; @@ -748670,48 +751174,53 @@ if (!$util.isString(message.requestId)) return "requestId: string expected"; } + if (message.router != null && message.hasOwnProperty("router")) + if (!$util.isString(message.router)) + return "router: string expected"; return null; }; /** - * Creates a DeleteNetworkAttachmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteNamedSetRouterRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * @memberof google.cloud.compute.v1beta.DeleteNamedSetRouterRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest} DeleteNetworkAttachmentRequest + * @returns {google.cloud.compute.v1beta.DeleteNamedSetRouterRequest} DeleteNamedSetRouterRequest */ - DeleteNetworkAttachmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest) + DeleteNamedSetRouterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest) return object; - var message = new $root.google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest(); - if (object.networkAttachment != null) - message.networkAttachment = String(object.networkAttachment); + var message = new $root.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest(); + if (object.namedSet != null) + message.namedSet = String(object.namedSet); if (object.project != null) message.project = String(object.project); if (object.region != null) message.region = String(object.region); if (object.requestId != null) message.requestId = String(object.requestId); + if (object.router != null) + message.router = String(object.router); return message; }; /** - * Creates a plain object from a DeleteNetworkAttachmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteNamedSetRouterRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * @memberof google.cloud.compute.v1beta.DeleteNamedSetRouterRequest * @static - * @param {google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest} message DeleteNetworkAttachmentRequest + * @param {google.cloud.compute.v1beta.DeleteNamedSetRouterRequest} message DeleteNamedSetRouterRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteNetworkAttachmentRequest.toObject = function toObject(message, options) { + DeleteNamedSetRouterRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.region = ""; - object.networkAttachment = ""; + object.router = ""; object.project = ""; } if (message.requestId != null && message.hasOwnProperty("requestId")) { @@ -748721,63 +751230,68 @@ } if (message.region != null && message.hasOwnProperty("region")) object.region = message.region; - if (message.networkAttachment != null && message.hasOwnProperty("networkAttachment")) - object.networkAttachment = message.networkAttachment; + if (message.router != null && message.hasOwnProperty("router")) + object.router = message.router; + if (message.namedSet != null && message.hasOwnProperty("namedSet")) { + object.namedSet = message.namedSet; + if (options.oneofs) + object._namedSet = "namedSet"; + } if (message.project != null && message.hasOwnProperty("project")) object.project = message.project; return object; }; /** - * Converts this DeleteNetworkAttachmentRequest to JSON. + * Converts this DeleteNamedSetRouterRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * @memberof google.cloud.compute.v1beta.DeleteNamedSetRouterRequest * @instance * @returns {Object.} JSON object */ - DeleteNetworkAttachmentRequest.prototype.toJSON = function toJSON() { + DeleteNamedSetRouterRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteNetworkAttachmentRequest + * Gets the default type url for DeleteNamedSetRouterRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * @memberof google.cloud.compute.v1beta.DeleteNamedSetRouterRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteNetworkAttachmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteNamedSetRouterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.DeleteNamedSetRouterRequest"; }; - return DeleteNetworkAttachmentRequest; + return DeleteNamedSetRouterRequest; })(); - v1beta.DeleteNetworkEdgeSecurityServiceRequest = (function() { + v1beta.DeleteNetworkAttachmentRequest = (function() { /** - * Properties of a DeleteNetworkEdgeSecurityServiceRequest. + * Properties of a DeleteNetworkAttachmentRequest. * @memberof google.cloud.compute.v1beta - * @interface IDeleteNetworkEdgeSecurityServiceRequest - * @property {string|null} [networkEdgeSecurityService] DeleteNetworkEdgeSecurityServiceRequest networkEdgeSecurityService - * @property {string|null} [project] DeleteNetworkEdgeSecurityServiceRequest project - * @property {string|null} [region] DeleteNetworkEdgeSecurityServiceRequest region - * @property {string|null} [requestId] DeleteNetworkEdgeSecurityServiceRequest requestId + * @interface IDeleteNetworkAttachmentRequest + * @property {string|null} [networkAttachment] DeleteNetworkAttachmentRequest networkAttachment + * @property {string|null} [project] DeleteNetworkAttachmentRequest project + * @property {string|null} [region] DeleteNetworkAttachmentRequest region + * @property {string|null} [requestId] DeleteNetworkAttachmentRequest requestId */ /** - * Constructs a new DeleteNetworkEdgeSecurityServiceRequest. + * Constructs a new DeleteNetworkAttachmentRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a DeleteNetworkEdgeSecurityServiceRequest. - * @implements IDeleteNetworkEdgeSecurityServiceRequest + * @classdesc Represents a DeleteNetworkAttachmentRequest. + * @implements IDeleteNetworkAttachmentRequest * @constructor - * @param {google.cloud.compute.v1beta.IDeleteNetworkEdgeSecurityServiceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IDeleteNetworkAttachmentRequest=} [properties] Properties to set */ - function DeleteNetworkEdgeSecurityServiceRequest(properties) { + function DeleteNetworkAttachmentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -748785,116 +751299,405 @@ } /** - * DeleteNetworkEdgeSecurityServiceRequest networkEdgeSecurityService. - * @member {string} networkEdgeSecurityService - * @memberof google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest + * DeleteNetworkAttachmentRequest networkAttachment. + * @member {string} networkAttachment + * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest * @instance */ - DeleteNetworkEdgeSecurityServiceRequest.prototype.networkEdgeSecurityService = ""; + DeleteNetworkAttachmentRequest.prototype.networkAttachment = ""; /** - * DeleteNetworkEdgeSecurityServiceRequest project. + * DeleteNetworkAttachmentRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest + * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest * @instance */ - DeleteNetworkEdgeSecurityServiceRequest.prototype.project = ""; + DeleteNetworkAttachmentRequest.prototype.project = ""; /** - * DeleteNetworkEdgeSecurityServiceRequest region. + * DeleteNetworkAttachmentRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest + * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest * @instance */ - DeleteNetworkEdgeSecurityServiceRequest.prototype.region = ""; + DeleteNetworkAttachmentRequest.prototype.region = ""; /** - * DeleteNetworkEdgeSecurityServiceRequest requestId. + * DeleteNetworkAttachmentRequest requestId. * @member {string|null|undefined} requestId - * @memberof google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest + * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest * @instance */ - DeleteNetworkEdgeSecurityServiceRequest.prototype.requestId = null; + DeleteNetworkAttachmentRequest.prototype.requestId = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(DeleteNetworkEdgeSecurityServiceRequest.prototype, "_requestId", { + Object.defineProperty(DeleteNetworkAttachmentRequest.prototype, "_requestId", { get: $util.oneOfGetter($oneOfFields = ["requestId"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new DeleteNetworkEdgeSecurityServiceRequest instance using the specified properties. + * Creates a new DeleteNetworkAttachmentRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest + * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest * @static - * @param {google.cloud.compute.v1beta.IDeleteNetworkEdgeSecurityServiceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest} DeleteNetworkEdgeSecurityServiceRequest instance + * @param {google.cloud.compute.v1beta.IDeleteNetworkAttachmentRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest} DeleteNetworkAttachmentRequest instance */ - DeleteNetworkEdgeSecurityServiceRequest.create = function create(properties) { - return new DeleteNetworkEdgeSecurityServiceRequest(properties); + DeleteNetworkAttachmentRequest.create = function create(properties) { + return new DeleteNetworkAttachmentRequest(properties); }; /** - * Encodes the specified DeleteNetworkEdgeSecurityServiceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest.verify|verify} messages. + * Encodes the specified DeleteNetworkAttachmentRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest + * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest * @static - * @param {google.cloud.compute.v1beta.IDeleteNetworkEdgeSecurityServiceRequest} message DeleteNetworkEdgeSecurityServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IDeleteNetworkAttachmentRequest} message DeleteNetworkAttachmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteNetworkEdgeSecurityServiceRequest.encode = function encode(message, writer) { + DeleteNetworkAttachmentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); if (message.region != null && Object.hasOwnProperty.call(message, "region")) writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); - if (message.networkEdgeSecurityService != null && Object.hasOwnProperty.call(message, "networkEdgeSecurityService")) - writer.uint32(/* id 157011879, wireType 2 =*/1256095034).string(message.networkEdgeSecurityService); + if (message.networkAttachment != null && Object.hasOwnProperty.call(message, "networkAttachment")) + writer.uint32(/* id 224644052, wireType 2 =*/1797152418).string(message.networkAttachment); if (message.project != null && Object.hasOwnProperty.call(message, "project")) writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); return writer; }; /** - * Encodes the specified DeleteNetworkEdgeSecurityServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest.verify|verify} messages. + * Encodes the specified DeleteNetworkAttachmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest + * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest * @static - * @param {google.cloud.compute.v1beta.IDeleteNetworkEdgeSecurityServiceRequest} message DeleteNetworkEdgeSecurityServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IDeleteNetworkAttachmentRequest} message DeleteNetworkAttachmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteNetworkEdgeSecurityServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteNetworkAttachmentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteNetworkEdgeSecurityServiceRequest message from the specified reader or buffer. + * Decodes a DeleteNetworkAttachmentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest + * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest} DeleteNetworkEdgeSecurityServiceRequest + * @returns {google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest} DeleteNetworkAttachmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteNetworkEdgeSecurityServiceRequest.decode = function decode(reader, length, error) { + DeleteNetworkAttachmentRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 157011879: { - message.networkEdgeSecurityService = reader.string(); + case 224644052: { + message.networkAttachment = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteNetworkAttachmentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest} DeleteNetworkAttachmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteNetworkAttachmentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteNetworkAttachmentRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteNetworkAttachmentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.networkAttachment != null && message.hasOwnProperty("networkAttachment")) + if (!$util.isString(message.networkAttachment)) + return "networkAttachment: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates a DeleteNetworkAttachmentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest} DeleteNetworkAttachmentRequest + */ + DeleteNetworkAttachmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest(); + if (object.networkAttachment != null) + message.networkAttachment = String(object.networkAttachment); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a DeleteNetworkAttachmentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest} message DeleteNetworkAttachmentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteNetworkAttachmentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.networkAttachment = ""; + object.project = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.networkAttachment != null && message.hasOwnProperty("networkAttachment")) + object.networkAttachment = message.networkAttachment; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this DeleteNetworkAttachmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteNetworkAttachmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteNetworkAttachmentRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteNetworkAttachmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.DeleteNetworkAttachmentRequest"; + }; + + return DeleteNetworkAttachmentRequest; + })(); + + v1beta.DeleteNetworkEdgeSecurityServiceRequest = (function() { + + /** + * Properties of a DeleteNetworkEdgeSecurityServiceRequest. + * @memberof google.cloud.compute.v1beta + * @interface IDeleteNetworkEdgeSecurityServiceRequest + * @property {string|null} [networkEdgeSecurityService] DeleteNetworkEdgeSecurityServiceRequest networkEdgeSecurityService + * @property {string|null} [project] DeleteNetworkEdgeSecurityServiceRequest project + * @property {string|null} [region] DeleteNetworkEdgeSecurityServiceRequest region + * @property {string|null} [requestId] DeleteNetworkEdgeSecurityServiceRequest requestId + */ + + /** + * Constructs a new DeleteNetworkEdgeSecurityServiceRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a DeleteNetworkEdgeSecurityServiceRequest. + * @implements IDeleteNetworkEdgeSecurityServiceRequest + * @constructor + * @param {google.cloud.compute.v1beta.IDeleteNetworkEdgeSecurityServiceRequest=} [properties] Properties to set + */ + function DeleteNetworkEdgeSecurityServiceRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteNetworkEdgeSecurityServiceRequest networkEdgeSecurityService. + * @member {string} networkEdgeSecurityService + * @memberof google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest + * @instance + */ + DeleteNetworkEdgeSecurityServiceRequest.prototype.networkEdgeSecurityService = ""; + + /** + * DeleteNetworkEdgeSecurityServiceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest + * @instance + */ + DeleteNetworkEdgeSecurityServiceRequest.prototype.project = ""; + + /** + * DeleteNetworkEdgeSecurityServiceRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest + * @instance + */ + DeleteNetworkEdgeSecurityServiceRequest.prototype.region = ""; + + /** + * DeleteNetworkEdgeSecurityServiceRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest + * @instance + */ + DeleteNetworkEdgeSecurityServiceRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeleteNetworkEdgeSecurityServiceRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteNetworkEdgeSecurityServiceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteNetworkEdgeSecurityServiceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest} DeleteNetworkEdgeSecurityServiceRequest instance + */ + DeleteNetworkEdgeSecurityServiceRequest.create = function create(properties) { + return new DeleteNetworkEdgeSecurityServiceRequest(properties); + }; + + /** + * Encodes the specified DeleteNetworkEdgeSecurityServiceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteNetworkEdgeSecurityServiceRequest} message DeleteNetworkEdgeSecurityServiceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteNetworkEdgeSecurityServiceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.networkEdgeSecurityService != null && Object.hasOwnProperty.call(message, "networkEdgeSecurityService")) + writer.uint32(/* id 157011879, wireType 2 =*/1256095034).string(message.networkEdgeSecurityService); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified DeleteNetworkEdgeSecurityServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteNetworkEdgeSecurityServiceRequest} message DeleteNetworkEdgeSecurityServiceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteNetworkEdgeSecurityServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteNetworkEdgeSecurityServiceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest} DeleteNetworkEdgeSecurityServiceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteNetworkEdgeSecurityServiceRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.DeleteNetworkEdgeSecurityServiceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 157011879: { + message.networkEdgeSecurityService = reader.string(); break; } case 227560217: { @@ -756244,6 +759047,295 @@ return DeleteRegionInstanceTemplateRequest; })(); + v1beta.DeleteRegionInstantSnapshotGroupRequest = (function() { + + /** + * Properties of a DeleteRegionInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @interface IDeleteRegionInstantSnapshotGroupRequest + * @property {string|null} [instantSnapshotGroup] DeleteRegionInstantSnapshotGroupRequest instantSnapshotGroup + * @property {string|null} [project] DeleteRegionInstantSnapshotGroupRequest project + * @property {string|null} [region] DeleteRegionInstantSnapshotGroupRequest region + * @property {string|null} [requestId] DeleteRegionInstantSnapshotGroupRequest requestId + */ + + /** + * Constructs a new DeleteRegionInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a DeleteRegionInstantSnapshotGroupRequest. + * @implements IDeleteRegionInstantSnapshotGroupRequest + * @constructor + * @param {google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest=} [properties] Properties to set + */ + function DeleteRegionInstantSnapshotGroupRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteRegionInstantSnapshotGroupRequest instantSnapshotGroup. + * @member {string} instantSnapshotGroup + * @memberof google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest + * @instance + */ + DeleteRegionInstantSnapshotGroupRequest.prototype.instantSnapshotGroup = ""; + + /** + * DeleteRegionInstantSnapshotGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest + * @instance + */ + DeleteRegionInstantSnapshotGroupRequest.prototype.project = ""; + + /** + * DeleteRegionInstantSnapshotGroupRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest + * @instance + */ + DeleteRegionInstantSnapshotGroupRequest.prototype.region = ""; + + /** + * DeleteRegionInstantSnapshotGroupRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest + * @instance + */ + DeleteRegionInstantSnapshotGroupRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeleteRegionInstantSnapshotGroupRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteRegionInstantSnapshotGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest} DeleteRegionInstantSnapshotGroupRequest instance + */ + DeleteRegionInstantSnapshotGroupRequest.create = function create(properties) { + return new DeleteRegionInstantSnapshotGroupRequest(properties); + }; + + /** + * Encodes the specified DeleteRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest} message DeleteRegionInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionInstantSnapshotGroupRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.instantSnapshotGroup != null && Object.hasOwnProperty.call(message, "instantSnapshotGroup")) + writer.uint32(/* id 223180386, wireType 2 =*/1785443090).string(message.instantSnapshotGroup); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified DeleteRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest} message DeleteRegionInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteRegionInstantSnapshotGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest} DeleteRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionInstantSnapshotGroupRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 223180386: { + message.instantSnapshotGroup = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest} DeleteRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteRegionInstantSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteRegionInstantSnapshotGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instantSnapshotGroup != null && message.hasOwnProperty("instantSnapshotGroup")) + if (!$util.isString(message.instantSnapshotGroup)) + return "instantSnapshotGroup: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates a DeleteRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest} DeleteRegionInstantSnapshotGroupRequest + */ + DeleteRegionInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest(); + if (object.instantSnapshotGroup != null) + message.instantSnapshotGroup = String(object.instantSnapshotGroup); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a DeleteRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest} message DeleteRegionInstantSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteRegionInstantSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.instantSnapshotGroup = ""; + object.project = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.instantSnapshotGroup != null && message.hasOwnProperty("instantSnapshotGroup")) + object.instantSnapshotGroup = message.instantSnapshotGroup; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this DeleteRegionInstantSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteRegionInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteRegionInstantSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteRegionInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest"; + }; + + return DeleteRegionInstantSnapshotGroupRequest; + })(); + v1beta.DeleteRegionInstantSnapshotRequest = (function() { /** @@ -763839,6 +766931,272 @@ return DeleteSignedUrlKeyBackendServiceRequest; })(); + v1beta.DeleteSnapshotGroupRequest = (function() { + + /** + * Properties of a DeleteSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @interface IDeleteSnapshotGroupRequest + * @property {string|null} [project] DeleteSnapshotGroupRequest project + * @property {string|null} [requestId] DeleteSnapshotGroupRequest requestId + * @property {string|null} [snapshotGroup] DeleteSnapshotGroupRequest snapshotGroup + */ + + /** + * Constructs a new DeleteSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a DeleteSnapshotGroupRequest. + * @implements IDeleteSnapshotGroupRequest + * @constructor + * @param {google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest=} [properties] Properties to set + */ + function DeleteSnapshotGroupRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteSnapshotGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.DeleteSnapshotGroupRequest + * @instance + */ + DeleteSnapshotGroupRequest.prototype.project = ""; + + /** + * DeleteSnapshotGroupRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.DeleteSnapshotGroupRequest + * @instance + */ + DeleteSnapshotGroupRequest.prototype.requestId = null; + + /** + * DeleteSnapshotGroupRequest snapshotGroup. + * @member {string} snapshotGroup + * @memberof google.cloud.compute.v1beta.DeleteSnapshotGroupRequest + * @instance + */ + DeleteSnapshotGroupRequest.prototype.snapshotGroup = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeleteSnapshotGroupRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteSnapshotGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.DeleteSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.DeleteSnapshotGroupRequest} DeleteSnapshotGroupRequest instance + */ + DeleteSnapshotGroupRequest.create = function create(properties) { + return new DeleteSnapshotGroupRequest(properties); + }; + + /** + * Encodes the specified DeleteSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteSnapshotGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.DeleteSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest} message DeleteSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteSnapshotGroupRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.snapshotGroup != null && Object.hasOwnProperty.call(message, "snapshotGroup")) + writer.uint32(/* id 84528196, wireType 2 =*/676225570).string(message.snapshotGroup); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified DeleteSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteSnapshotGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.DeleteSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest} message DeleteSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteSnapshotGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.DeleteSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.DeleteSnapshotGroupRequest} DeleteSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteSnapshotGroupRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.DeleteSnapshotGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 84528196: { + message.snapshotGroup = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.DeleteSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.DeleteSnapshotGroupRequest} DeleteSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.DeleteSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteSnapshotGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.snapshotGroup != null && message.hasOwnProperty("snapshotGroup")) + if (!$util.isString(message.snapshotGroup)) + return "snapshotGroup: string expected"; + return null; + }; + + /** + * Creates a DeleteSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.DeleteSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.DeleteSnapshotGroupRequest} DeleteSnapshotGroupRequest + */ + DeleteSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.DeleteSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.DeleteSnapshotGroupRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.snapshotGroup != null) + message.snapshotGroup = String(object.snapshotGroup); + return message; + }; + + /** + * Creates a plain object from a DeleteSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.DeleteSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.DeleteSnapshotGroupRequest} message DeleteSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.snapshotGroup = ""; + object.project = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.snapshotGroup != null && message.hasOwnProperty("snapshotGroup")) + object.snapshotGroup = message.snapshotGroup; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this DeleteSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.DeleteSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.DeleteSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.DeleteSnapshotGroupRequest"; + }; + + return DeleteSnapshotGroupRequest; + })(); + v1beta.DeleteSnapshotRequest = (function() { /** @@ -785026,6 +788384,7 @@ * @property {string|null} [labelFingerprint] ExternalVpnGateway labelFingerprint * @property {Object.|null} [labels] ExternalVpnGateway labels * @property {string|null} [name] ExternalVpnGateway name + * @property {google.cloud.compute.v1beta.IExternalVpnGatewayParams|null} [params] ExternalVpnGateway params * @property {string|null} [redundancyType] ExternalVpnGateway redundancyType * @property {string|null} [selfLink] ExternalVpnGateway selfLink */ @@ -785111,6 +788470,14 @@ */ ExternalVpnGateway.prototype.name = null; + /** + * ExternalVpnGateway params. + * @member {google.cloud.compute.v1beta.IExternalVpnGatewayParams|null|undefined} params + * @memberof google.cloud.compute.v1beta.ExternalVpnGateway + * @instance + */ + ExternalVpnGateway.prototype.params = null; + /** * ExternalVpnGateway redundancyType. * @member {string|null|undefined} redundancyType @@ -785166,6 +788533,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ExternalVpnGateway.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(ExternalVpnGateway.prototype, "_redundancyType", { get: $util.oneOfGetter($oneOfFields = ["redundancyType"]), @@ -785213,6 +788586,8 @@ $root.google.cloud.compute.v1beta.ExternalVpnGatewayInterface.encode(message.interfaces[i], writer.uint32(/* id 12073562, wireType 2 =*/96588498).fork()).ldelim(); if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1beta.ExternalVpnGatewayParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.labelFingerprint != null && Object.hasOwnProperty.call(message, "labelFingerprint")) writer.uint32(/* id 178124825, wireType 2 =*/1424998602).string(message.labelFingerprint); if (message.redundancyType != null && Object.hasOwnProperty.call(message, "redundancyType")) @@ -785313,6 +788688,10 @@ message.name = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1beta.ExternalVpnGatewayParams.decode(reader, reader.uint32()); + break; + } case 271443740: { message.redundancyType = reader.string(); break; @@ -785404,6 +788783,14 @@ if (!$util.isString(message.name)) return "name: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1beta.ExternalVpnGatewayParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.redundancyType != null && message.hasOwnProperty("redundancyType")) { properties._redundancyType = 1; if (!$util.isString(message.redundancyType)) @@ -785465,6 +788852,11 @@ } if (object.name != null) message.name = String(object.name); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1beta.ExternalVpnGateway.params: object expected"); + message.params = $root.google.cloud.compute.v1beta.ExternalVpnGatewayParams.fromObject(object.params); + } if (object.redundancyType != null) message.redundancyType = String(object.redundancyType); if (object.selfLink != null) @@ -785517,6 +788909,11 @@ if (options.oneofs) object._creationTimestamp = "creationTimestamp"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1beta.ExternalVpnGatewayParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) { object.labelFingerprint = message.labelFingerprint; if (options.oneofs) @@ -786311,6 +789708,246 @@ return ExternalVpnGatewayList; })(); + v1beta.ExternalVpnGatewayParams = (function() { + + /** + * Properties of an ExternalVpnGatewayParams. + * @memberof google.cloud.compute.v1beta + * @interface IExternalVpnGatewayParams + * @property {Object.|null} [resourceManagerTags] ExternalVpnGatewayParams resourceManagerTags + */ + + /** + * Constructs a new ExternalVpnGatewayParams. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an ExternalVpnGatewayParams. + * @implements IExternalVpnGatewayParams + * @constructor + * @param {google.cloud.compute.v1beta.IExternalVpnGatewayParams=} [properties] Properties to set + */ + function ExternalVpnGatewayParams(properties) { + this.resourceManagerTags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExternalVpnGatewayParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1beta.ExternalVpnGatewayParams + * @instance + */ + ExternalVpnGatewayParams.prototype.resourceManagerTags = $util.emptyObject; + + /** + * Creates a new ExternalVpnGatewayParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ExternalVpnGatewayParams + * @static + * @param {google.cloud.compute.v1beta.IExternalVpnGatewayParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ExternalVpnGatewayParams} ExternalVpnGatewayParams instance + */ + ExternalVpnGatewayParams.create = function create(properties) { + return new ExternalVpnGatewayParams(properties); + }; + + /** + * Encodes the specified ExternalVpnGatewayParams message. Does not implicitly {@link google.cloud.compute.v1beta.ExternalVpnGatewayParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ExternalVpnGatewayParams + * @static + * @param {google.cloud.compute.v1beta.IExternalVpnGatewayParams} message ExternalVpnGatewayParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExternalVpnGatewayParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + for (var keys = Object.keys(message.resourceManagerTags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 377671164, wireType 2 =*/3021369314).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceManagerTags[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExternalVpnGatewayParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ExternalVpnGatewayParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ExternalVpnGatewayParams + * @static + * @param {google.cloud.compute.v1beta.IExternalVpnGatewayParams} message ExternalVpnGatewayParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExternalVpnGatewayParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExternalVpnGatewayParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ExternalVpnGatewayParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ExternalVpnGatewayParams} ExternalVpnGatewayParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExternalVpnGatewayParams.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ExternalVpnGatewayParams(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 377671164: { + if (message.resourceManagerTags === $util.emptyObject) + message.resourceManagerTags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.resourceManagerTags[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExternalVpnGatewayParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ExternalVpnGatewayParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ExternalVpnGatewayParams} ExternalVpnGatewayParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExternalVpnGatewayParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExternalVpnGatewayParams message. + * @function verify + * @memberof google.cloud.compute.v1beta.ExternalVpnGatewayParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExternalVpnGatewayParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + if (!$util.isObject(message.resourceManagerTags)) + return "resourceManagerTags: object expected"; + var key = Object.keys(message.resourceManagerTags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourceManagerTags[key[i]])) + return "resourceManagerTags: string{k:string} expected"; + } + return null; + }; + + /** + * Creates an ExternalVpnGatewayParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ExternalVpnGatewayParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ExternalVpnGatewayParams} ExternalVpnGatewayParams + */ + ExternalVpnGatewayParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ExternalVpnGatewayParams) + return object; + var message = new $root.google.cloud.compute.v1beta.ExternalVpnGatewayParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1beta.ExternalVpnGatewayParams.resourceManagerTags: object expected"); + message.resourceManagerTags = {}; + for (var keys = Object.keys(object.resourceManagerTags), i = 0; i < keys.length; ++i) + message.resourceManagerTags[keys[i]] = String(object.resourceManagerTags[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from an ExternalVpnGatewayParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ExternalVpnGatewayParams + * @static + * @param {google.cloud.compute.v1beta.ExternalVpnGatewayParams} message ExternalVpnGatewayParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExternalVpnGatewayParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.resourceManagerTags = {}; + var keys2; + if (message.resourceManagerTags && (keys2 = Object.keys(message.resourceManagerTags)).length) { + object.resourceManagerTags = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourceManagerTags[keys2[j]] = message.resourceManagerTags[keys2[j]]; + } + return object; + }; + + /** + * Converts this ExternalVpnGatewayParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ExternalVpnGatewayParams + * @instance + * @returns {Object.} JSON object + */ + ExternalVpnGatewayParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExternalVpnGatewayParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ExternalVpnGatewayParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExternalVpnGatewayParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ExternalVpnGatewayParams"; + }; + + return ExternalVpnGatewayParams; + })(); + v1beta.FileContentBuffer = (function() { /** @@ -789838,13 +793475,17 @@ * @name google.cloud.compute.v1beta.FirewallPolicy.PolicyType * @enum {number} * @property {number} UNDEFINED_POLICY_TYPE=0 UNDEFINED_POLICY_TYPE value + * @property {number} RDMA_FALCON_POLICY=66315047 RDMA_FALCON_POLICY value * @property {number} RDMA_ROCE_POLICY=148757145 RDMA_ROCE_POLICY value + * @property {number} ULL_POLICY=100494364 ULL_POLICY value * @property {number} VPC_POLICY=74319208 VPC_POLICY value */ FirewallPolicy.PolicyType = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_POLICY_TYPE"] = 0; + values[valuesById[66315047] = "RDMA_FALCON_POLICY"] = 66315047; values[valuesById[148757145] = "RDMA_ROCE_POLICY"] = 148757145; + values[valuesById[100494364] = "ULL_POLICY"] = 100494364; values[valuesById[74319208] = "VPC_POLICY"] = 74319208; return values; })(); @@ -796908,6 +800549,7 @@ * Properties of a FutureReservation. * @memberof google.cloud.compute.v1beta * @interface IFutureReservation + * @property {google.cloud.compute.v1beta.IReservationAdvancedDeploymentControl|null} [advancedDeploymentControl] FutureReservation advancedDeploymentControl * @property {google.cloud.compute.v1beta.IAllocationAggregateReservation|null} [aggregateReservation] FutureReservation aggregateReservation * @property {string|null} [autoCreatedReservationsDeleteTime] FutureReservation autoCreatedReservationsDeleteTime * @property {google.cloud.compute.v1beta.IDuration|null} [autoCreatedReservationsDuration] FutureReservation autoCreatedReservationsDuration @@ -796951,6 +800593,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * FutureReservation advancedDeploymentControl. + * @member {google.cloud.compute.v1beta.IReservationAdvancedDeploymentControl|null|undefined} advancedDeploymentControl + * @memberof google.cloud.compute.v1beta.FutureReservation + * @instance + */ + FutureReservation.prototype.advancedDeploymentControl = null; + /** * FutureReservation aggregateReservation. * @member {google.cloud.compute.v1beta.IAllocationAggregateReservation|null|undefined} aggregateReservation @@ -797162,6 +800812,12 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + // Virtual OneOf for proto3 optional field + Object.defineProperty(FutureReservation.prototype, "_advancedDeploymentControl", { + get: $util.oneOfGetter($oneOfFields = ["advancedDeploymentControl"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(FutureReservation.prototype, "_aggregateReservation", { get: $util.oneOfGetter($oneOfFields = ["aggregateReservation"]), @@ -797382,6 +801038,8 @@ writer.uint32(/* id 353759497, wireType 0 =*/2830075976).bool(message.enableEmergentMaintenance); if (message.deploymentType != null && Object.hasOwnProperty.call(message, "deploymentType")) writer.uint32(/* id 396722292, wireType 2 =*/3173778338).string(message.deploymentType); + if (message.advancedDeploymentControl != null && Object.hasOwnProperty.call(message, "advancedDeploymentControl")) + $root.google.cloud.compute.v1beta.ReservationAdvancedDeploymentControl.encode(message.advancedDeploymentControl, writer.uint32(/* id 410618144, wireType 2 =*/3284945154).fork()).ldelim(); if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); if (message.timeWindow != null && Object.hasOwnProperty.call(message, "timeWindow")) @@ -797430,6 +801088,10 @@ if (tag === error) break; switch (tag >>> 3) { + case 410618144: { + message.advancedDeploymentControl = $root.google.cloud.compute.v1beta.ReservationAdvancedDeploymentControl.decode(reader, reader.uint32()); + break; + } case 291567948: { message.aggregateReservation = $root.google.cloud.compute.v1beta.AllocationAggregateReservation.decode(reader, reader.uint32()); break; @@ -797570,6 +801232,14 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.advancedDeploymentControl != null && message.hasOwnProperty("advancedDeploymentControl")) { + properties._advancedDeploymentControl = 1; + { + var error = $root.google.cloud.compute.v1beta.ReservationAdvancedDeploymentControl.verify(message.advancedDeploymentControl); + if (error) + return "advancedDeploymentControl." + error; + } + } if (message.aggregateReservation != null && message.hasOwnProperty("aggregateReservation")) { properties._aggregateReservation = 1; { @@ -797736,6 +801406,11 @@ if (object instanceof $root.google.cloud.compute.v1beta.FutureReservation) return object; var message = new $root.google.cloud.compute.v1beta.FutureReservation(); + if (object.advancedDeploymentControl != null) { + if (typeof object.advancedDeploymentControl !== "object") + throw TypeError(".google.cloud.compute.v1beta.FutureReservation.advancedDeploymentControl: object expected"); + message.advancedDeploymentControl = $root.google.cloud.compute.v1beta.ReservationAdvancedDeploymentControl.fromObject(object.advancedDeploymentControl); + } if (object.aggregateReservation != null) { if (typeof object.aggregateReservation !== "object") throw TypeError(".google.cloud.compute.v1beta.FutureReservation.aggregateReservation: object expected"); @@ -797935,6 +801610,11 @@ if (options.oneofs) object._deploymentType = "deploymentType"; } + if (message.advancedDeploymentControl != null && message.hasOwnProperty("advancedDeploymentControl")) { + object.advancedDeploymentControl = $root.google.cloud.compute.v1beta.ReservationAdvancedDeploymentControl.toObject(message.advancedDeploymentControl, options); + if (options.oneofs) + object._advancedDeploymentControl = "advancedDeploymentControl"; + } if (message.description != null && message.hasOwnProperty("description")) { object.description = message.description; if (options.oneofs) @@ -816587,27 +820267,27 @@ return GetIamPolicyInstanceTemplateRequest; })(); - v1beta.GetIamPolicyInstantSnapshotRequest = (function() { + v1beta.GetIamPolicyInstantSnapshotGroupRequest = (function() { /** - * Properties of a GetIamPolicyInstantSnapshotRequest. + * Properties of a GetIamPolicyInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1beta - * @interface IGetIamPolicyInstantSnapshotRequest - * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyInstantSnapshotRequest optionsRequestedPolicyVersion - * @property {string|null} [project] GetIamPolicyInstantSnapshotRequest project - * @property {string|null} [resource] GetIamPolicyInstantSnapshotRequest resource - * @property {string|null} [zone] GetIamPolicyInstantSnapshotRequest zone + * @interface IGetIamPolicyInstantSnapshotGroupRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyInstantSnapshotGroupRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyInstantSnapshotGroupRequest project + * @property {string|null} [resource] GetIamPolicyInstantSnapshotGroupRequest resource + * @property {string|null} [zone] GetIamPolicyInstantSnapshotGroupRequest zone */ /** - * Constructs a new GetIamPolicyInstantSnapshotRequest. + * Constructs a new GetIamPolicyInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a GetIamPolicyInstantSnapshotRequest. - * @implements IGetIamPolicyInstantSnapshotRequest + * @classdesc Represents a GetIamPolicyInstantSnapshotGroupRequest. + * @implements IGetIamPolicyInstantSnapshotGroupRequest * @constructor - * @param {google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest=} [properties] Properties to set */ - function GetIamPolicyInstantSnapshotRequest(properties) { + function GetIamPolicyInstantSnapshotGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -816615,68 +820295,68 @@ } /** - * GetIamPolicyInstantSnapshotRequest optionsRequestedPolicyVersion. + * GetIamPolicyInstantSnapshotGroupRequest optionsRequestedPolicyVersion. * @member {number|null|undefined} optionsRequestedPolicyVersion - * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest * @instance */ - GetIamPolicyInstantSnapshotRequest.prototype.optionsRequestedPolicyVersion = null; + GetIamPolicyInstantSnapshotGroupRequest.prototype.optionsRequestedPolicyVersion = null; /** - * GetIamPolicyInstantSnapshotRequest project. + * GetIamPolicyInstantSnapshotGroupRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest * @instance */ - GetIamPolicyInstantSnapshotRequest.prototype.project = ""; + GetIamPolicyInstantSnapshotGroupRequest.prototype.project = ""; /** - * GetIamPolicyInstantSnapshotRequest resource. + * GetIamPolicyInstantSnapshotGroupRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest * @instance */ - GetIamPolicyInstantSnapshotRequest.prototype.resource = ""; + GetIamPolicyInstantSnapshotGroupRequest.prototype.resource = ""; /** - * GetIamPolicyInstantSnapshotRequest zone. + * GetIamPolicyInstantSnapshotGroupRequest zone. * @member {string} zone - * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest * @instance */ - GetIamPolicyInstantSnapshotRequest.prototype.zone = ""; + GetIamPolicyInstantSnapshotGroupRequest.prototype.zone = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(GetIamPolicyInstantSnapshotRequest.prototype, "_optionsRequestedPolicyVersion", { + Object.defineProperty(GetIamPolicyInstantSnapshotGroupRequest.prototype, "_optionsRequestedPolicyVersion", { get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new GetIamPolicyInstantSnapshotRequest instance using the specified properties. + * Creates a new GetIamPolicyInstantSnapshotGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest} GetIamPolicyInstantSnapshotRequest instance + * @param {google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest} GetIamPolicyInstantSnapshotGroupRequest instance */ - GetIamPolicyInstantSnapshotRequest.create = function create(properties) { - return new GetIamPolicyInstantSnapshotRequest(properties); + GetIamPolicyInstantSnapshotGroupRequest.create = function create(properties) { + return new GetIamPolicyInstantSnapshotGroupRequest(properties); }; /** - * Encodes the specified GetIamPolicyInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotRequest} message GetIamPolicyInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest} message GetIamPolicyInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyInstantSnapshotRequest.encode = function encode(message, writer) { + GetIamPolicyInstantSnapshotGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) @@ -816691,33 +820371,33 @@ }; /** - * Encodes the specified GetIamPolicyInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotRequest} message GetIamPolicyInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest} message GetIamPolicyInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetIamPolicyInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIamPolicyInstantSnapshotRequest message from the specified reader or buffer. + * Decodes a GetIamPolicyInstantSnapshotGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest} GetIamPolicyInstantSnapshotRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest} GetIamPolicyInstantSnapshotGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIamPolicyInstantSnapshotRequest.decode = function decode(reader, length, error) { + GetIamPolicyInstantSnapshotGroupRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -816748,30 +820428,30 @@ }; /** - * Decodes a GetIamPolicyInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a GetIamPolicyInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest} GetIamPolicyInstantSnapshotRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest} GetIamPolicyInstantSnapshotGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIamPolicyInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + GetIamPolicyInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIamPolicyInstantSnapshotRequest message. + * Verifies a GetIamPolicyInstantSnapshotGroupRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIamPolicyInstantSnapshotRequest.verify = function verify(message) { + GetIamPolicyInstantSnapshotGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -816793,17 +820473,17 @@ }; /** - * Creates a GetIamPolicyInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetIamPolicyInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest} GetIamPolicyInstantSnapshotRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest} GetIamPolicyInstantSnapshotGroupRequest */ - GetIamPolicyInstantSnapshotRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest) + GetIamPolicyInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest) return object; - var message = new $root.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest(); + var message = new $root.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest(); if (object.optionsRequestedPolicyVersion != null) message.optionsRequestedPolicyVersion = object.optionsRequestedPolicyVersion | 0; if (object.project != null) @@ -816816,15 +820496,15 @@ }; /** - * Creates a plain object from a GetIamPolicyInstantSnapshotRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetIamPolicyInstantSnapshotGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest} message GetIamPolicyInstantSnapshotRequest + * @param {google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest} message GetIamPolicyInstantSnapshotGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIamPolicyInstantSnapshotRequest.toObject = function toObject(message, options) { + GetIamPolicyInstantSnapshotGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -816848,54 +820528,55 @@ }; /** - * Converts this GetIamPolicyInstantSnapshotRequest to JSON. + * Converts this GetIamPolicyInstantSnapshotGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest * @instance * @returns {Object.} JSON object */ - GetIamPolicyInstantSnapshotRequest.prototype.toJSON = function toJSON() { + GetIamPolicyInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetIamPolicyInstantSnapshotRequest + * Gets the default type url for GetIamPolicyInstantSnapshotGroupRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetIamPolicyInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetIamPolicyInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest"; }; - return GetIamPolicyInstantSnapshotRequest; + return GetIamPolicyInstantSnapshotGroupRequest; })(); - v1beta.GetIamPolicyInterconnectAttachmentGroupRequest = (function() { + v1beta.GetIamPolicyInstantSnapshotRequest = (function() { /** - * Properties of a GetIamPolicyInterconnectAttachmentGroupRequest. + * Properties of a GetIamPolicyInstantSnapshotRequest. * @memberof google.cloud.compute.v1beta - * @interface IGetIamPolicyInterconnectAttachmentGroupRequest - * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyInterconnectAttachmentGroupRequest optionsRequestedPolicyVersion - * @property {string|null} [project] GetIamPolicyInterconnectAttachmentGroupRequest project - * @property {string|null} [resource] GetIamPolicyInterconnectAttachmentGroupRequest resource + * @interface IGetIamPolicyInstantSnapshotRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyInstantSnapshotRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyInstantSnapshotRequest project + * @property {string|null} [resource] GetIamPolicyInstantSnapshotRequest resource + * @property {string|null} [zone] GetIamPolicyInstantSnapshotRequest zone */ /** - * Constructs a new GetIamPolicyInterconnectAttachmentGroupRequest. + * Constructs a new GetIamPolicyInstantSnapshotRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a GetIamPolicyInterconnectAttachmentGroupRequest. - * @implements IGetIamPolicyInterconnectAttachmentGroupRequest + * @classdesc Represents a GetIamPolicyInstantSnapshotRequest. + * @implements IGetIamPolicyInstantSnapshotRequest * @constructor - * @param {google.cloud.compute.v1beta.IGetIamPolicyInterconnectAttachmentGroupRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotRequest=} [properties] Properties to set */ - function GetIamPolicyInterconnectAttachmentGroupRequest(properties) { + function GetIamPolicyInstantSnapshotRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -816903,62 +820584,72 @@ } /** - * GetIamPolicyInterconnectAttachmentGroupRequest optionsRequestedPolicyVersion. + * GetIamPolicyInstantSnapshotRequest optionsRequestedPolicyVersion. * @member {number|null|undefined} optionsRequestedPolicyVersion - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest * @instance */ - GetIamPolicyInterconnectAttachmentGroupRequest.prototype.optionsRequestedPolicyVersion = null; + GetIamPolicyInstantSnapshotRequest.prototype.optionsRequestedPolicyVersion = null; /** - * GetIamPolicyInterconnectAttachmentGroupRequest project. + * GetIamPolicyInstantSnapshotRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest * @instance */ - GetIamPolicyInterconnectAttachmentGroupRequest.prototype.project = ""; + GetIamPolicyInstantSnapshotRequest.prototype.project = ""; /** - * GetIamPolicyInterconnectAttachmentGroupRequest resource. + * GetIamPolicyInstantSnapshotRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest * @instance */ - GetIamPolicyInterconnectAttachmentGroupRequest.prototype.resource = ""; + GetIamPolicyInstantSnapshotRequest.prototype.resource = ""; + + /** + * GetIamPolicyInstantSnapshotRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest + * @instance + */ + GetIamPolicyInstantSnapshotRequest.prototype.zone = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(GetIamPolicyInterconnectAttachmentGroupRequest.prototype, "_optionsRequestedPolicyVersion", { + Object.defineProperty(GetIamPolicyInstantSnapshotRequest.prototype, "_optionsRequestedPolicyVersion", { get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new GetIamPolicyInterconnectAttachmentGroupRequest instance using the specified properties. + * Creates a new GetIamPolicyInstantSnapshotRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyInterconnectAttachmentGroupRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest} GetIamPolicyInterconnectAttachmentGroupRequest instance + * @param {google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest} GetIamPolicyInstantSnapshotRequest instance */ - GetIamPolicyInterconnectAttachmentGroupRequest.create = function create(properties) { - return new GetIamPolicyInterconnectAttachmentGroupRequest(properties); + GetIamPolicyInstantSnapshotRequest.create = function create(properties) { + return new GetIamPolicyInstantSnapshotRequest(properties); }; /** - * Encodes the specified GetIamPolicyInterconnectAttachmentGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyInterconnectAttachmentGroupRequest} message GetIamPolicyInterconnectAttachmentGroupRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotRequest} message GetIamPolicyInstantSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyInterconnectAttachmentGroupRequest.encode = function encode(message, writer) { + GetIamPolicyInstantSnapshotRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -816969,33 +820660,33 @@ }; /** - * Encodes the specified GetIamPolicyInterconnectAttachmentGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyInterconnectAttachmentGroupRequest} message GetIamPolicyInterconnectAttachmentGroupRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotRequest} message GetIamPolicyInstantSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyInterconnectAttachmentGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetIamPolicyInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIamPolicyInterconnectAttachmentGroupRequest message from the specified reader or buffer. + * Decodes a GetIamPolicyInstantSnapshotRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest} GetIamPolicyInterconnectAttachmentGroupRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest} GetIamPolicyInstantSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIamPolicyInterconnectAttachmentGroupRequest.decode = function decode(reader, length, error) { + GetIamPolicyInstantSnapshotRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -817013,6 +820704,10 @@ message.resource = reader.string(); break; } + case 3744684: { + message.zone = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -817022,30 +820717,30 @@ }; /** - * Decodes a GetIamPolicyInterconnectAttachmentGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a GetIamPolicyInstantSnapshotRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest} GetIamPolicyInterconnectAttachmentGroupRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest} GetIamPolicyInstantSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIamPolicyInterconnectAttachmentGroupRequest.decodeDelimited = function decodeDelimited(reader) { + GetIamPolicyInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIamPolicyInterconnectAttachmentGroupRequest message. + * Verifies a GetIamPolicyInstantSnapshotRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIamPolicyInterconnectAttachmentGroupRequest.verify = function verify(message) { + GetIamPolicyInstantSnapshotRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -817060,47 +820755,55 @@ if (message.resource != null && message.hasOwnProperty("resource")) if (!$util.isString(message.resource)) return "resource: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; return null; }; /** - * Creates a GetIamPolicyInterconnectAttachmentGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetIamPolicyInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest} GetIamPolicyInterconnectAttachmentGroupRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest} GetIamPolicyInstantSnapshotRequest */ - GetIamPolicyInterconnectAttachmentGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest) + GetIamPolicyInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest) return object; - var message = new $root.google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest(); + var message = new $root.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest(); if (object.optionsRequestedPolicyVersion != null) message.optionsRequestedPolicyVersion = object.optionsRequestedPolicyVersion | 0; if (object.project != null) message.project = String(object.project); if (object.resource != null) message.resource = String(object.resource); + if (object.zone != null) + message.zone = String(object.zone); return message; }; /** - * Creates a plain object from a GetIamPolicyInterconnectAttachmentGroupRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetIamPolicyInstantSnapshotRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest} message GetIamPolicyInterconnectAttachmentGroupRequest + * @param {google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest} message GetIamPolicyInstantSnapshotRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIamPolicyInterconnectAttachmentGroupRequest.toObject = function toObject(message, options) { + GetIamPolicyInstantSnapshotRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.zone = ""; object.resource = ""; object.project = ""; } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; if (message.resource != null && message.hasOwnProperty("resource")) object.resource = message.resource; if (message.project != null && message.hasOwnProperty("project")) @@ -817114,54 +820817,54 @@ }; /** - * Converts this GetIamPolicyInterconnectAttachmentGroupRequest to JSON. + * Converts this GetIamPolicyInstantSnapshotRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest * @instance * @returns {Object.} JSON object */ - GetIamPolicyInterconnectAttachmentGroupRequest.prototype.toJSON = function toJSON() { + GetIamPolicyInstantSnapshotRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetIamPolicyInterconnectAttachmentGroupRequest + * Gets the default type url for GetIamPolicyInstantSnapshotRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetIamPolicyInterconnectAttachmentGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetIamPolicyInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotRequest"; }; - return GetIamPolicyInterconnectAttachmentGroupRequest; + return GetIamPolicyInstantSnapshotRequest; })(); - v1beta.GetIamPolicyInterconnectGroupRequest = (function() { + v1beta.GetIamPolicyInterconnectAttachmentGroupRequest = (function() { /** - * Properties of a GetIamPolicyInterconnectGroupRequest. + * Properties of a GetIamPolicyInterconnectAttachmentGroupRequest. * @memberof google.cloud.compute.v1beta - * @interface IGetIamPolicyInterconnectGroupRequest - * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyInterconnectGroupRequest optionsRequestedPolicyVersion - * @property {string|null} [project] GetIamPolicyInterconnectGroupRequest project - * @property {string|null} [resource] GetIamPolicyInterconnectGroupRequest resource + * @interface IGetIamPolicyInterconnectAttachmentGroupRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyInterconnectAttachmentGroupRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyInterconnectAttachmentGroupRequest project + * @property {string|null} [resource] GetIamPolicyInterconnectAttachmentGroupRequest resource */ /** - * Constructs a new GetIamPolicyInterconnectGroupRequest. + * Constructs a new GetIamPolicyInterconnectAttachmentGroupRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a GetIamPolicyInterconnectGroupRequest. - * @implements IGetIamPolicyInterconnectGroupRequest + * @classdesc Represents a GetIamPolicyInterconnectAttachmentGroupRequest. + * @implements IGetIamPolicyInterconnectAttachmentGroupRequest * @constructor - * @param {google.cloud.compute.v1beta.IGetIamPolicyInterconnectGroupRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IGetIamPolicyInterconnectAttachmentGroupRequest=} [properties] Properties to set */ - function GetIamPolicyInterconnectGroupRequest(properties) { + function GetIamPolicyInterconnectAttachmentGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -817169,60 +820872,60 @@ } /** - * GetIamPolicyInterconnectGroupRequest optionsRequestedPolicyVersion. + * GetIamPolicyInterconnectAttachmentGroupRequest optionsRequestedPolicyVersion. * @member {number|null|undefined} optionsRequestedPolicyVersion - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest * @instance */ - GetIamPolicyInterconnectGroupRequest.prototype.optionsRequestedPolicyVersion = null; + GetIamPolicyInterconnectAttachmentGroupRequest.prototype.optionsRequestedPolicyVersion = null; /** - * GetIamPolicyInterconnectGroupRequest project. + * GetIamPolicyInterconnectAttachmentGroupRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest * @instance */ - GetIamPolicyInterconnectGroupRequest.prototype.project = ""; + GetIamPolicyInterconnectAttachmentGroupRequest.prototype.project = ""; /** - * GetIamPolicyInterconnectGroupRequest resource. + * GetIamPolicyInterconnectAttachmentGroupRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest * @instance */ - GetIamPolicyInterconnectGroupRequest.prototype.resource = ""; + GetIamPolicyInterconnectAttachmentGroupRequest.prototype.resource = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(GetIamPolicyInterconnectGroupRequest.prototype, "_optionsRequestedPolicyVersion", { + Object.defineProperty(GetIamPolicyInterconnectAttachmentGroupRequest.prototype, "_optionsRequestedPolicyVersion", { get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new GetIamPolicyInterconnectGroupRequest instance using the specified properties. + * Creates a new GetIamPolicyInterconnectAttachmentGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyInterconnectGroupRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest} GetIamPolicyInterconnectGroupRequest instance + * @param {google.cloud.compute.v1beta.IGetIamPolicyInterconnectAttachmentGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest} GetIamPolicyInterconnectAttachmentGroupRequest instance */ - GetIamPolicyInterconnectGroupRequest.create = function create(properties) { - return new GetIamPolicyInterconnectGroupRequest(properties); + GetIamPolicyInterconnectAttachmentGroupRequest.create = function create(properties) { + return new GetIamPolicyInterconnectAttachmentGroupRequest(properties); }; /** - * Encodes the specified GetIamPolicyInterconnectGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyInterconnectAttachmentGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyInterconnectGroupRequest} message GetIamPolicyInterconnectGroupRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicyInterconnectAttachmentGroupRequest} message GetIamPolicyInterconnectAttachmentGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyInterconnectGroupRequest.encode = function encode(message, writer) { + GetIamPolicyInterconnectAttachmentGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) @@ -817235,33 +820938,33 @@ }; /** - * Encodes the specified GetIamPolicyInterconnectGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyInterconnectAttachmentGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyInterconnectGroupRequest} message GetIamPolicyInterconnectGroupRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicyInterconnectAttachmentGroupRequest} message GetIamPolicyInterconnectAttachmentGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyInterconnectGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetIamPolicyInterconnectAttachmentGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIamPolicyInterconnectGroupRequest message from the specified reader or buffer. + * Decodes a GetIamPolicyInterconnectAttachmentGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest} GetIamPolicyInterconnectGroupRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest} GetIamPolicyInterconnectAttachmentGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIamPolicyInterconnectGroupRequest.decode = function decode(reader, length, error) { + GetIamPolicyInterconnectAttachmentGroupRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -817288,30 +820991,30 @@ }; /** - * Decodes a GetIamPolicyInterconnectGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a GetIamPolicyInterconnectAttachmentGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest} GetIamPolicyInterconnectGroupRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest} GetIamPolicyInterconnectAttachmentGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIamPolicyInterconnectGroupRequest.decodeDelimited = function decodeDelimited(reader) { + GetIamPolicyInterconnectAttachmentGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIamPolicyInterconnectGroupRequest message. + * Verifies a GetIamPolicyInterconnectAttachmentGroupRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIamPolicyInterconnectGroupRequest.verify = function verify(message) { + GetIamPolicyInterconnectAttachmentGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -817330,17 +821033,17 @@ }; /** - * Creates a GetIamPolicyInterconnectGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetIamPolicyInterconnectAttachmentGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest} GetIamPolicyInterconnectGroupRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest} GetIamPolicyInterconnectAttachmentGroupRequest */ - GetIamPolicyInterconnectGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest) + GetIamPolicyInterconnectAttachmentGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest) return object; - var message = new $root.google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest(); + var message = new $root.google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest(); if (object.optionsRequestedPolicyVersion != null) message.optionsRequestedPolicyVersion = object.optionsRequestedPolicyVersion | 0; if (object.project != null) @@ -817351,15 +821054,15 @@ }; /** - * Creates a plain object from a GetIamPolicyInterconnectGroupRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetIamPolicyInterconnectAttachmentGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest * @static - * @param {google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest} message GetIamPolicyInterconnectGroupRequest + * @param {google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest} message GetIamPolicyInterconnectAttachmentGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIamPolicyInterconnectGroupRequest.toObject = function toObject(message, options) { + GetIamPolicyInterconnectAttachmentGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -817380,54 +821083,54 @@ }; /** - * Converts this GetIamPolicyInterconnectGroupRequest to JSON. + * Converts this GetIamPolicyInterconnectAttachmentGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest * @instance * @returns {Object.} JSON object */ - GetIamPolicyInterconnectGroupRequest.prototype.toJSON = function toJSON() { + GetIamPolicyInterconnectAttachmentGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetIamPolicyInterconnectGroupRequest + * Gets the default type url for GetIamPolicyInterconnectAttachmentGroupRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetIamPolicyInterconnectGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetIamPolicyInterconnectAttachmentGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicyInterconnectAttachmentGroupRequest"; }; - return GetIamPolicyInterconnectGroupRequest; + return GetIamPolicyInterconnectAttachmentGroupRequest; })(); - v1beta.GetIamPolicyLicenseRequest = (function() { + v1beta.GetIamPolicyInterconnectGroupRequest = (function() { /** - * Properties of a GetIamPolicyLicenseRequest. + * Properties of a GetIamPolicyInterconnectGroupRequest. * @memberof google.cloud.compute.v1beta - * @interface IGetIamPolicyLicenseRequest - * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyLicenseRequest optionsRequestedPolicyVersion - * @property {string|null} [project] GetIamPolicyLicenseRequest project - * @property {string|null} [resource] GetIamPolicyLicenseRequest resource + * @interface IGetIamPolicyInterconnectGroupRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyInterconnectGroupRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyInterconnectGroupRequest project + * @property {string|null} [resource] GetIamPolicyInterconnectGroupRequest resource */ /** - * Constructs a new GetIamPolicyLicenseRequest. + * Constructs a new GetIamPolicyInterconnectGroupRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a GetIamPolicyLicenseRequest. - * @implements IGetIamPolicyLicenseRequest + * @classdesc Represents a GetIamPolicyInterconnectGroupRequest. + * @implements IGetIamPolicyInterconnectGroupRequest * @constructor - * @param {google.cloud.compute.v1beta.IGetIamPolicyLicenseRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IGetIamPolicyInterconnectGroupRequest=} [properties] Properties to set */ - function GetIamPolicyLicenseRequest(properties) { + function GetIamPolicyInterconnectGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -817435,60 +821138,60 @@ } /** - * GetIamPolicyLicenseRequest optionsRequestedPolicyVersion. + * GetIamPolicyInterconnectGroupRequest optionsRequestedPolicyVersion. * @member {number|null|undefined} optionsRequestedPolicyVersion - * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest * @instance */ - GetIamPolicyLicenseRequest.prototype.optionsRequestedPolicyVersion = null; + GetIamPolicyInterconnectGroupRequest.prototype.optionsRequestedPolicyVersion = null; /** - * GetIamPolicyLicenseRequest project. + * GetIamPolicyInterconnectGroupRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest * @instance */ - GetIamPolicyLicenseRequest.prototype.project = ""; + GetIamPolicyInterconnectGroupRequest.prototype.project = ""; /** - * GetIamPolicyLicenseRequest resource. + * GetIamPolicyInterconnectGroupRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest * @instance */ - GetIamPolicyLicenseRequest.prototype.resource = ""; + GetIamPolicyInterconnectGroupRequest.prototype.resource = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(GetIamPolicyLicenseRequest.prototype, "_optionsRequestedPolicyVersion", { + Object.defineProperty(GetIamPolicyInterconnectGroupRequest.prototype, "_optionsRequestedPolicyVersion", { get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new GetIamPolicyLicenseRequest instance using the specified properties. + * Creates a new GetIamPolicyInterconnectGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyLicenseRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.GetIamPolicyLicenseRequest} GetIamPolicyLicenseRequest instance + * @param {google.cloud.compute.v1beta.IGetIamPolicyInterconnectGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest} GetIamPolicyInterconnectGroupRequest instance */ - GetIamPolicyLicenseRequest.create = function create(properties) { - return new GetIamPolicyLicenseRequest(properties); + GetIamPolicyInterconnectGroupRequest.create = function create(properties) { + return new GetIamPolicyInterconnectGroupRequest(properties); }; /** - * Encodes the specified GetIamPolicyLicenseRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyLicenseRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyInterconnectGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyLicenseRequest} message GetIamPolicyLicenseRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicyInterconnectGroupRequest} message GetIamPolicyInterconnectGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyLicenseRequest.encode = function encode(message, writer) { + GetIamPolicyInterconnectGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) @@ -817501,33 +821204,33 @@ }; /** - * Encodes the specified GetIamPolicyLicenseRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyLicenseRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyInterconnectGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyLicenseRequest} message GetIamPolicyLicenseRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicyInterconnectGroupRequest} message GetIamPolicyInterconnectGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyLicenseRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetIamPolicyInterconnectGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIamPolicyLicenseRequest message from the specified reader or buffer. + * Decodes a GetIamPolicyInterconnectGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.GetIamPolicyLicenseRequest} GetIamPolicyLicenseRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest} GetIamPolicyInterconnectGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIamPolicyLicenseRequest.decode = function decode(reader, length, error) { + GetIamPolicyInterconnectGroupRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyLicenseRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -817554,30 +821257,30 @@ }; /** - * Decodes a GetIamPolicyLicenseRequest message from the specified reader or buffer, length delimited. + * Decodes a GetIamPolicyInterconnectGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.GetIamPolicyLicenseRequest} GetIamPolicyLicenseRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest} GetIamPolicyInterconnectGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIamPolicyLicenseRequest.decodeDelimited = function decodeDelimited(reader) { + GetIamPolicyInterconnectGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIamPolicyLicenseRequest message. + * Verifies a GetIamPolicyInterconnectGroupRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIamPolicyLicenseRequest.verify = function verify(message) { + GetIamPolicyInterconnectGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -817596,17 +821299,17 @@ }; /** - * Creates a GetIamPolicyLicenseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetIamPolicyInterconnectGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.GetIamPolicyLicenseRequest} GetIamPolicyLicenseRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest} GetIamPolicyInterconnectGroupRequest */ - GetIamPolicyLicenseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicyLicenseRequest) + GetIamPolicyInterconnectGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest) return object; - var message = new $root.google.cloud.compute.v1beta.GetIamPolicyLicenseRequest(); + var message = new $root.google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest(); if (object.optionsRequestedPolicyVersion != null) message.optionsRequestedPolicyVersion = object.optionsRequestedPolicyVersion | 0; if (object.project != null) @@ -817617,15 +821320,15 @@ }; /** - * Creates a plain object from a GetIamPolicyLicenseRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetIamPolicyInterconnectGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest * @static - * @param {google.cloud.compute.v1beta.GetIamPolicyLicenseRequest} message GetIamPolicyLicenseRequest + * @param {google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest} message GetIamPolicyInterconnectGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIamPolicyLicenseRequest.toObject = function toObject(message, options) { + GetIamPolicyInterconnectGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -817646,54 +821349,54 @@ }; /** - * Converts this GetIamPolicyLicenseRequest to JSON. + * Converts this GetIamPolicyInterconnectGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest * @instance * @returns {Object.} JSON object */ - GetIamPolicyLicenseRequest.prototype.toJSON = function toJSON() { + GetIamPolicyInterconnectGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetIamPolicyLicenseRequest + * Gets the default type url for GetIamPolicyInterconnectGroupRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetIamPolicyLicenseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetIamPolicyInterconnectGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicyLicenseRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicyInterconnectGroupRequest"; }; - return GetIamPolicyLicenseRequest; + return GetIamPolicyInterconnectGroupRequest; })(); - v1beta.GetIamPolicyMachineImageRequest = (function() { + v1beta.GetIamPolicyLicenseRequest = (function() { /** - * Properties of a GetIamPolicyMachineImageRequest. + * Properties of a GetIamPolicyLicenseRequest. * @memberof google.cloud.compute.v1beta - * @interface IGetIamPolicyMachineImageRequest - * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyMachineImageRequest optionsRequestedPolicyVersion - * @property {string|null} [project] GetIamPolicyMachineImageRequest project - * @property {string|null} [resource] GetIamPolicyMachineImageRequest resource + * @interface IGetIamPolicyLicenseRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyLicenseRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyLicenseRequest project + * @property {string|null} [resource] GetIamPolicyLicenseRequest resource */ /** - * Constructs a new GetIamPolicyMachineImageRequest. + * Constructs a new GetIamPolicyLicenseRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a GetIamPolicyMachineImageRequest. - * @implements IGetIamPolicyMachineImageRequest + * @classdesc Represents a GetIamPolicyLicenseRequest. + * @implements IGetIamPolicyLicenseRequest * @constructor - * @param {google.cloud.compute.v1beta.IGetIamPolicyMachineImageRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IGetIamPolicyLicenseRequest=} [properties] Properties to set */ - function GetIamPolicyMachineImageRequest(properties) { + function GetIamPolicyLicenseRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -817701,60 +821404,60 @@ } /** - * GetIamPolicyMachineImageRequest optionsRequestedPolicyVersion. + * GetIamPolicyLicenseRequest optionsRequestedPolicyVersion. * @member {number|null|undefined} optionsRequestedPolicyVersion - * @memberof google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest * @instance */ - GetIamPolicyMachineImageRequest.prototype.optionsRequestedPolicyVersion = null; + GetIamPolicyLicenseRequest.prototype.optionsRequestedPolicyVersion = null; /** - * GetIamPolicyMachineImageRequest project. + * GetIamPolicyLicenseRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest * @instance */ - GetIamPolicyMachineImageRequest.prototype.project = ""; + GetIamPolicyLicenseRequest.prototype.project = ""; /** - * GetIamPolicyMachineImageRequest resource. + * GetIamPolicyLicenseRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest * @instance */ - GetIamPolicyMachineImageRequest.prototype.resource = ""; + GetIamPolicyLicenseRequest.prototype.resource = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(GetIamPolicyMachineImageRequest.prototype, "_optionsRequestedPolicyVersion", { + Object.defineProperty(GetIamPolicyLicenseRequest.prototype, "_optionsRequestedPolicyVersion", { get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new GetIamPolicyMachineImageRequest instance using the specified properties. + * Creates a new GetIamPolicyLicenseRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyMachineImageRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest} GetIamPolicyMachineImageRequest instance + * @param {google.cloud.compute.v1beta.IGetIamPolicyLicenseRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetIamPolicyLicenseRequest} GetIamPolicyLicenseRequest instance */ - GetIamPolicyMachineImageRequest.create = function create(properties) { - return new GetIamPolicyMachineImageRequest(properties); + GetIamPolicyLicenseRequest.create = function create(properties) { + return new GetIamPolicyLicenseRequest(properties); }; /** - * Encodes the specified GetIamPolicyMachineImageRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyLicenseRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyLicenseRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyMachineImageRequest} message GetIamPolicyMachineImageRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicyLicenseRequest} message GetIamPolicyLicenseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyMachineImageRequest.encode = function encode(message, writer) { + GetIamPolicyLicenseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) @@ -817767,33 +821470,299 @@ }; /** - * Encodes the specified GetIamPolicyMachineImageRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyLicenseRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyLicenseRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyMachineImageRequest} message GetIamPolicyMachineImageRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicyLicenseRequest} message GetIamPolicyLicenseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyMachineImageRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetIamPolicyLicenseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIamPolicyMachineImageRequest message from the specified reader or buffer. + * Decodes a GetIamPolicyLicenseRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest} GetIamPolicyMachineImageRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyLicenseRequest} GetIamPolicyLicenseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIamPolicyMachineImageRequest.decode = function decode(reader, length, error) { + GetIamPolicyLicenseRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyLicenseRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 499220029: { + message.optionsRequestedPolicyVersion = reader.int32(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetIamPolicyLicenseRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetIamPolicyLicenseRequest} GetIamPolicyLicenseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyLicenseRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetIamPolicyLicenseRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIamPolicyLicenseRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.optionsRequestedPolicyVersion != null && message.hasOwnProperty("optionsRequestedPolicyVersion")) { + properties._optionsRequestedPolicyVersion = 1; + if (!$util.isInteger(message.optionsRequestedPolicyVersion)) + return "optionsRequestedPolicyVersion: integer expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + return null; + }; + + /** + * Creates a GetIamPolicyLicenseRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetIamPolicyLicenseRequest} GetIamPolicyLicenseRequest + */ + GetIamPolicyLicenseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicyLicenseRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetIamPolicyLicenseRequest(); + if (object.optionsRequestedPolicyVersion != null) + message.optionsRequestedPolicyVersion = object.optionsRequestedPolicyVersion | 0; + if (object.project != null) + message.project = String(object.project); + if (object.resource != null) + message.resource = String(object.resource); + return message; + }; + + /** + * Creates a plain object from a GetIamPolicyLicenseRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest + * @static + * @param {google.cloud.compute.v1beta.GetIamPolicyLicenseRequest} message GetIamPolicyLicenseRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIamPolicyLicenseRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.resource = ""; + object.project = ""; + } + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.optionsRequestedPolicyVersion != null && message.hasOwnProperty("optionsRequestedPolicyVersion")) { + object.optionsRequestedPolicyVersion = message.optionsRequestedPolicyVersion; + if (options.oneofs) + object._optionsRequestedPolicyVersion = "optionsRequestedPolicyVersion"; + } + return object; + }; + + /** + * Converts this GetIamPolicyLicenseRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest + * @instance + * @returns {Object.} JSON object + */ + GetIamPolicyLicenseRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetIamPolicyLicenseRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetIamPolicyLicenseRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetIamPolicyLicenseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicyLicenseRequest"; + }; + + return GetIamPolicyLicenseRequest; + })(); + + v1beta.GetIamPolicyMachineImageRequest = (function() { + + /** + * Properties of a GetIamPolicyMachineImageRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetIamPolicyMachineImageRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyMachineImageRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyMachineImageRequest project + * @property {string|null} [resource] GetIamPolicyMachineImageRequest resource + */ + + /** + * Constructs a new GetIamPolicyMachineImageRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetIamPolicyMachineImageRequest. + * @implements IGetIamPolicyMachineImageRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetIamPolicyMachineImageRequest=} [properties] Properties to set + */ + function GetIamPolicyMachineImageRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetIamPolicyMachineImageRequest optionsRequestedPolicyVersion. + * @member {number|null|undefined} optionsRequestedPolicyVersion + * @memberof google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest + * @instance + */ + GetIamPolicyMachineImageRequest.prototype.optionsRequestedPolicyVersion = null; + + /** + * GetIamPolicyMachineImageRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest + * @instance + */ + GetIamPolicyMachineImageRequest.prototype.project = ""; + + /** + * GetIamPolicyMachineImageRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest + * @instance + */ + GetIamPolicyMachineImageRequest.prototype.resource = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetIamPolicyMachineImageRequest.prototype, "_optionsRequestedPolicyVersion", { + get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetIamPolicyMachineImageRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest + * @static + * @param {google.cloud.compute.v1beta.IGetIamPolicyMachineImageRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest} GetIamPolicyMachineImageRequest instance + */ + GetIamPolicyMachineImageRequest.create = function create(properties) { + return new GetIamPolicyMachineImageRequest(properties); + }; + + /** + * Encodes the specified GetIamPolicyMachineImageRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest + * @static + * @param {google.cloud.compute.v1beta.IGetIamPolicyMachineImageRequest} message GetIamPolicyMachineImageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyMachineImageRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.optionsRequestedPolicyVersion != null && Object.hasOwnProperty.call(message, "optionsRequestedPolicyVersion")) + writer.uint32(/* id 499220029, wireType 0 =*/3993760232).int32(message.optionsRequestedPolicyVersion); + return writer; + }; + + /** + * Encodes the specified GetIamPolicyMachineImageRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest + * @static + * @param {google.cloud.compute.v1beta.IGetIamPolicyMachineImageRequest} message GetIamPolicyMachineImageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyMachineImageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetIamPolicyMachineImageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest} GetIamPolicyMachineImageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyMachineImageRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyMachineImageRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -819940,6 +823909,295 @@ return GetIamPolicyRegionDiskRequest; })(); + v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest = (function() { + + /** + * Properties of a GetIamPolicyRegionInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetIamPolicyRegionInstantSnapshotGroupRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyRegionInstantSnapshotGroupRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyRegionInstantSnapshotGroupRequest project + * @property {string|null} [region] GetIamPolicyRegionInstantSnapshotGroupRequest region + * @property {string|null} [resource] GetIamPolicyRegionInstantSnapshotGroupRequest resource + */ + + /** + * Constructs a new GetIamPolicyRegionInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetIamPolicyRegionInstantSnapshotGroupRequest. + * @implements IGetIamPolicyRegionInstantSnapshotGroupRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest=} [properties] Properties to set + */ + function GetIamPolicyRegionInstantSnapshotGroupRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetIamPolicyRegionInstantSnapshotGroupRequest optionsRequestedPolicyVersion. + * @member {number|null|undefined} optionsRequestedPolicyVersion + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest + * @instance + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.prototype.optionsRequestedPolicyVersion = null; + + /** + * GetIamPolicyRegionInstantSnapshotGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest + * @instance + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.prototype.project = ""; + + /** + * GetIamPolicyRegionInstantSnapshotGroupRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest + * @instance + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.prototype.region = ""; + + /** + * GetIamPolicyRegionInstantSnapshotGroupRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest + * @instance + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.prototype.resource = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetIamPolicyRegionInstantSnapshotGroupRequest.prototype, "_optionsRequestedPolicyVersion", { + get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetIamPolicyRegionInstantSnapshotGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest} GetIamPolicyRegionInstantSnapshotGroupRequest instance + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.create = function create(properties) { + return new GetIamPolicyRegionInstantSnapshotGroupRequest(properties); + }; + + /** + * Encodes the specified GetIamPolicyRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest} message GetIamPolicyRegionInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.optionsRequestedPolicyVersion != null && Object.hasOwnProperty.call(message, "optionsRequestedPolicyVersion")) + writer.uint32(/* id 499220029, wireType 0 =*/3993760232).int32(message.optionsRequestedPolicyVersion); + return writer; + }; + + /** + * Encodes the specified GetIamPolicyRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest} message GetIamPolicyRegionInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetIamPolicyRegionInstantSnapshotGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest} GetIamPolicyRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 499220029: { + message.optionsRequestedPolicyVersion = reader.int32(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetIamPolicyRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest} GetIamPolicyRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetIamPolicyRegionInstantSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.optionsRequestedPolicyVersion != null && message.hasOwnProperty("optionsRequestedPolicyVersion")) { + properties._optionsRequestedPolicyVersion = 1; + if (!$util.isInteger(message.optionsRequestedPolicyVersion)) + return "optionsRequestedPolicyVersion: integer expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + return null; + }; + + /** + * Creates a GetIamPolicyRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest} GetIamPolicyRegionInstantSnapshotGroupRequest + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest(); + if (object.optionsRequestedPolicyVersion != null) + message.optionsRequestedPolicyVersion = object.optionsRequestedPolicyVersion | 0; + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.resource != null) + message.resource = String(object.resource); + return message; + }; + + /** + * Creates a plain object from a GetIamPolicyRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest} message GetIamPolicyRegionInstantSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.resource = ""; + object.project = ""; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.optionsRequestedPolicyVersion != null && message.hasOwnProperty("optionsRequestedPolicyVersion")) { + object.optionsRequestedPolicyVersion = message.optionsRequestedPolicyVersion; + if (options.oneofs) + object._optionsRequestedPolicyVersion = "optionsRequestedPolicyVersion"; + } + return object; + }; + + /** + * Converts this GetIamPolicyRegionInstantSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetIamPolicyRegionInstantSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest"; + }; + + return GetIamPolicyRegionInstantSnapshotGroupRequest; + })(); + v1beta.GetIamPolicyRegionInstantSnapshotRequest = (function() { /** @@ -822298,26 +826556,26 @@ return GetIamPolicyServiceAttachmentRequest; })(); - v1beta.GetIamPolicySnapshotRequest = (function() { + v1beta.GetIamPolicySnapshotGroupRequest = (function() { /** - * Properties of a GetIamPolicySnapshotRequest. + * Properties of a GetIamPolicySnapshotGroupRequest. * @memberof google.cloud.compute.v1beta - * @interface IGetIamPolicySnapshotRequest - * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicySnapshotRequest optionsRequestedPolicyVersion - * @property {string|null} [project] GetIamPolicySnapshotRequest project - * @property {string|null} [resource] GetIamPolicySnapshotRequest resource + * @interface IGetIamPolicySnapshotGroupRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicySnapshotGroupRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicySnapshotGroupRequest project + * @property {string|null} [resource] GetIamPolicySnapshotGroupRequest resource */ /** - * Constructs a new GetIamPolicySnapshotRequest. + * Constructs a new GetIamPolicySnapshotGroupRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a GetIamPolicySnapshotRequest. - * @implements IGetIamPolicySnapshotRequest + * @classdesc Represents a GetIamPolicySnapshotGroupRequest. + * @implements IGetIamPolicySnapshotGroupRequest * @constructor - * @param {google.cloud.compute.v1beta.IGetIamPolicySnapshotRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest=} [properties] Properties to set */ - function GetIamPolicySnapshotRequest(properties) { + function GetIamPolicySnapshotGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -822325,60 +826583,60 @@ } /** - * GetIamPolicySnapshotRequest optionsRequestedPolicyVersion. + * GetIamPolicySnapshotGroupRequest optionsRequestedPolicyVersion. * @member {number|null|undefined} optionsRequestedPolicyVersion - * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest * @instance */ - GetIamPolicySnapshotRequest.prototype.optionsRequestedPolicyVersion = null; + GetIamPolicySnapshotGroupRequest.prototype.optionsRequestedPolicyVersion = null; /** - * GetIamPolicySnapshotRequest project. + * GetIamPolicySnapshotGroupRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest * @instance */ - GetIamPolicySnapshotRequest.prototype.project = ""; + GetIamPolicySnapshotGroupRequest.prototype.project = ""; /** - * GetIamPolicySnapshotRequest resource. + * GetIamPolicySnapshotGroupRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest * @instance */ - GetIamPolicySnapshotRequest.prototype.resource = ""; + GetIamPolicySnapshotGroupRequest.prototype.resource = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(GetIamPolicySnapshotRequest.prototype, "_optionsRequestedPolicyVersion", { + Object.defineProperty(GetIamPolicySnapshotGroupRequest.prototype, "_optionsRequestedPolicyVersion", { get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new GetIamPolicySnapshotRequest instance using the specified properties. + * Creates a new GetIamPolicySnapshotGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicySnapshotRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.GetIamPolicySnapshotRequest} GetIamPolicySnapshotRequest instance + * @param {google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest} GetIamPolicySnapshotGroupRequest instance */ - GetIamPolicySnapshotRequest.create = function create(properties) { - return new GetIamPolicySnapshotRequest(properties); + GetIamPolicySnapshotGroupRequest.create = function create(properties) { + return new GetIamPolicySnapshotGroupRequest(properties); }; /** - * Encodes the specified GetIamPolicySnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicySnapshotRequest.verify|verify} messages. + * Encodes the specified GetIamPolicySnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicySnapshotRequest} message GetIamPolicySnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest} message GetIamPolicySnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicySnapshotRequest.encode = function encode(message, writer) { + GetIamPolicySnapshotGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) @@ -822391,33 +826649,299 @@ }; /** - * Encodes the specified GetIamPolicySnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicySnapshotRequest.verify|verify} messages. + * Encodes the specified GetIamPolicySnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicySnapshotRequest} message GetIamPolicySnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest} message GetIamPolicySnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicySnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetIamPolicySnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIamPolicySnapshotRequest message from the specified reader or buffer. + * Decodes a GetIamPolicySnapshotGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.GetIamPolicySnapshotRequest} GetIamPolicySnapshotRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest} GetIamPolicySnapshotGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIamPolicySnapshotRequest.decode = function decode(reader, length, error) { + GetIamPolicySnapshotGroupRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicySnapshotRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 499220029: { + message.optionsRequestedPolicyVersion = reader.int32(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetIamPolicySnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest} GetIamPolicySnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicySnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetIamPolicySnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIamPolicySnapshotGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.optionsRequestedPolicyVersion != null && message.hasOwnProperty("optionsRequestedPolicyVersion")) { + properties._optionsRequestedPolicyVersion = 1; + if (!$util.isInteger(message.optionsRequestedPolicyVersion)) + return "optionsRequestedPolicyVersion: integer expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + return null; + }; + + /** + * Creates a GetIamPolicySnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest} GetIamPolicySnapshotGroupRequest + */ + GetIamPolicySnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest(); + if (object.optionsRequestedPolicyVersion != null) + message.optionsRequestedPolicyVersion = object.optionsRequestedPolicyVersion | 0; + if (object.project != null) + message.project = String(object.project); + if (object.resource != null) + message.resource = String(object.resource); + return message; + }; + + /** + * Creates a plain object from a GetIamPolicySnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest} message GetIamPolicySnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIamPolicySnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.resource = ""; + object.project = ""; + } + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.optionsRequestedPolicyVersion != null && message.hasOwnProperty("optionsRequestedPolicyVersion")) { + object.optionsRequestedPolicyVersion = message.optionsRequestedPolicyVersion; + if (options.oneofs) + object._optionsRequestedPolicyVersion = "optionsRequestedPolicyVersion"; + } + return object; + }; + + /** + * Converts this GetIamPolicySnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + GetIamPolicySnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetIamPolicySnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetIamPolicySnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest"; + }; + + return GetIamPolicySnapshotGroupRequest; + })(); + + v1beta.GetIamPolicySnapshotRequest = (function() { + + /** + * Properties of a GetIamPolicySnapshotRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetIamPolicySnapshotRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicySnapshotRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicySnapshotRequest project + * @property {string|null} [resource] GetIamPolicySnapshotRequest resource + */ + + /** + * Constructs a new GetIamPolicySnapshotRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetIamPolicySnapshotRequest. + * @implements IGetIamPolicySnapshotRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetIamPolicySnapshotRequest=} [properties] Properties to set + */ + function GetIamPolicySnapshotRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetIamPolicySnapshotRequest optionsRequestedPolicyVersion. + * @member {number|null|undefined} optionsRequestedPolicyVersion + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotRequest + * @instance + */ + GetIamPolicySnapshotRequest.prototype.optionsRequestedPolicyVersion = null; + + /** + * GetIamPolicySnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotRequest + * @instance + */ + GetIamPolicySnapshotRequest.prototype.project = ""; + + /** + * GetIamPolicySnapshotRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotRequest + * @instance + */ + GetIamPolicySnapshotRequest.prototype.resource = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetIamPolicySnapshotRequest.prototype, "_optionsRequestedPolicyVersion", { + get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetIamPolicySnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotRequest + * @static + * @param {google.cloud.compute.v1beta.IGetIamPolicySnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetIamPolicySnapshotRequest} GetIamPolicySnapshotRequest instance + */ + GetIamPolicySnapshotRequest.create = function create(properties) { + return new GetIamPolicySnapshotRequest(properties); + }; + + /** + * Encodes the specified GetIamPolicySnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicySnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotRequest + * @static + * @param {google.cloud.compute.v1beta.IGetIamPolicySnapshotRequest} message GetIamPolicySnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicySnapshotRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.optionsRequestedPolicyVersion != null && Object.hasOwnProperty.call(message, "optionsRequestedPolicyVersion")) + writer.uint32(/* id 499220029, wireType 0 =*/3993760232).int32(message.optionsRequestedPolicyVersion); + return writer; + }; + + /** + * Encodes the specified GetIamPolicySnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicySnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotRequest + * @static + * @param {google.cloud.compute.v1beta.IGetIamPolicySnapshotRequest} message GetIamPolicySnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicySnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetIamPolicySnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetIamPolicySnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetIamPolicySnapshotRequest} GetIamPolicySnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicySnapshotRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicySnapshotRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -825222,6 +829746,258 @@ return GetInstanceTemplateRequest; })(); + v1beta.GetInstantSnapshotGroupRequest = (function() { + + /** + * Properties of a GetInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetInstantSnapshotGroupRequest + * @property {string|null} [instantSnapshotGroup] GetInstantSnapshotGroupRequest instantSnapshotGroup + * @property {string|null} [project] GetInstantSnapshotGroupRequest project + * @property {string|null} [zone] GetInstantSnapshotGroupRequest zone + */ + + /** + * Constructs a new GetInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetInstantSnapshotGroupRequest. + * @implements IGetInstantSnapshotGroupRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest=} [properties] Properties to set + */ + function GetInstantSnapshotGroupRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetInstantSnapshotGroupRequest instantSnapshotGroup. + * @member {string} instantSnapshotGroup + * @memberof google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest + * @instance + */ + GetInstantSnapshotGroupRequest.prototype.instantSnapshotGroup = ""; + + /** + * GetInstantSnapshotGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest + * @instance + */ + GetInstantSnapshotGroupRequest.prototype.project = ""; + + /** + * GetInstantSnapshotGroupRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest + * @instance + */ + GetInstantSnapshotGroupRequest.prototype.zone = ""; + + /** + * Creates a new GetInstantSnapshotGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest} GetInstantSnapshotGroupRequest instance + */ + GetInstantSnapshotGroupRequest.create = function create(properties) { + return new GetInstantSnapshotGroupRequest(properties); + }; + + /** + * Encodes the specified GetInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest} message GetInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetInstantSnapshotGroupRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.instantSnapshotGroup != null && Object.hasOwnProperty.call(message, "instantSnapshotGroup")) + writer.uint32(/* id 223180386, wireType 2 =*/1785443090).string(message.instantSnapshotGroup); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified GetInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest} message GetInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetInstantSnapshotGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest} GetInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetInstantSnapshotGroupRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 223180386: { + message.instantSnapshotGroup = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest} GetInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetInstantSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetInstantSnapshotGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.instantSnapshotGroup != null && message.hasOwnProperty("instantSnapshotGroup")) + if (!$util.isString(message.instantSnapshotGroup)) + return "instantSnapshotGroup: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a GetInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest} GetInstantSnapshotGroupRequest + */ + GetInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest(); + if (object.instantSnapshotGroup != null) + message.instantSnapshotGroup = String(object.instantSnapshotGroup); + if (object.project != null) + message.project = String(object.project); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a GetInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest} message GetInstantSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetInstantSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.instantSnapshotGroup = ""; + object.project = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.instantSnapshotGroup != null && message.hasOwnProperty("instantSnapshotGroup")) + object.instantSnapshotGroup = message.instantSnapshotGroup; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this GetInstantSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + GetInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetInstantSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest"; + }; + + return GetInstantSnapshotGroupRequest; + })(); + v1beta.GetInstantSnapshotRequest = (function() { /** @@ -828039,6 +832815,295 @@ return GetMacsecConfigInterconnectRequest; })(); + v1beta.GetNamedSetRouterRequest = (function() { + + /** + * Properties of a GetNamedSetRouterRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetNamedSetRouterRequest + * @property {string|null} [namedSet] GetNamedSetRouterRequest namedSet + * @property {string|null} [project] GetNamedSetRouterRequest project + * @property {string|null} [region] GetNamedSetRouterRequest region + * @property {string|null} [router] GetNamedSetRouterRequest router + */ + + /** + * Constructs a new GetNamedSetRouterRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetNamedSetRouterRequest. + * @implements IGetNamedSetRouterRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetNamedSetRouterRequest=} [properties] Properties to set + */ + function GetNamedSetRouterRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetNamedSetRouterRequest namedSet. + * @member {string|null|undefined} namedSet + * @memberof google.cloud.compute.v1beta.GetNamedSetRouterRequest + * @instance + */ + GetNamedSetRouterRequest.prototype.namedSet = null; + + /** + * GetNamedSetRouterRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetNamedSetRouterRequest + * @instance + */ + GetNamedSetRouterRequest.prototype.project = ""; + + /** + * GetNamedSetRouterRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.GetNamedSetRouterRequest + * @instance + */ + GetNamedSetRouterRequest.prototype.region = ""; + + /** + * GetNamedSetRouterRequest router. + * @member {string} router + * @memberof google.cloud.compute.v1beta.GetNamedSetRouterRequest + * @instance + */ + GetNamedSetRouterRequest.prototype.router = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetNamedSetRouterRequest.prototype, "_namedSet", { + get: $util.oneOfGetter($oneOfFields = ["namedSet"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetNamedSetRouterRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetNamedSetRouterRequest + * @static + * @param {google.cloud.compute.v1beta.IGetNamedSetRouterRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetNamedSetRouterRequest} GetNamedSetRouterRequest instance + */ + GetNamedSetRouterRequest.create = function create(properties) { + return new GetNamedSetRouterRequest(properties); + }; + + /** + * Encodes the specified GetNamedSetRouterRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetNamedSetRouterRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetNamedSetRouterRequest + * @static + * @param {google.cloud.compute.v1beta.IGetNamedSetRouterRequest} message GetNamedSetRouterRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetNamedSetRouterRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.router != null && Object.hasOwnProperty.call(message, "router")) + writer.uint32(/* id 148608841, wireType 2 =*/1188870730).string(message.router); + if (message.namedSet != null && Object.hasOwnProperty.call(message, "namedSet")) + writer.uint32(/* id 164134492, wireType 2 =*/1313075938).string(message.namedSet); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified GetNamedSetRouterRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetNamedSetRouterRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetNamedSetRouterRequest + * @static + * @param {google.cloud.compute.v1beta.IGetNamedSetRouterRequest} message GetNamedSetRouterRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetNamedSetRouterRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetNamedSetRouterRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetNamedSetRouterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetNamedSetRouterRequest} GetNamedSetRouterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetNamedSetRouterRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetNamedSetRouterRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 164134492: { + message.namedSet = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 148608841: { + message.router = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetNamedSetRouterRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetNamedSetRouterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetNamedSetRouterRequest} GetNamedSetRouterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetNamedSetRouterRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetNamedSetRouterRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetNamedSetRouterRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetNamedSetRouterRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.namedSet != null && message.hasOwnProperty("namedSet")) { + properties._namedSet = 1; + if (!$util.isString(message.namedSet)) + return "namedSet: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.router != null && message.hasOwnProperty("router")) + if (!$util.isString(message.router)) + return "router: string expected"; + return null; + }; + + /** + * Creates a GetNamedSetRouterRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetNamedSetRouterRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetNamedSetRouterRequest} GetNamedSetRouterRequest + */ + GetNamedSetRouterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetNamedSetRouterRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetNamedSetRouterRequest(); + if (object.namedSet != null) + message.namedSet = String(object.namedSet); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.router != null) + message.router = String(object.router); + return message; + }; + + /** + * Creates a plain object from a GetNamedSetRouterRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetNamedSetRouterRequest + * @static + * @param {google.cloud.compute.v1beta.GetNamedSetRouterRequest} message GetNamedSetRouterRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetNamedSetRouterRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.router = ""; + object.project = ""; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.router != null && message.hasOwnProperty("router")) + object.router = message.router; + if (message.namedSet != null && message.hasOwnProperty("namedSet")) { + object.namedSet = message.namedSet; + if (options.oneofs) + object._namedSet = "namedSet"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this GetNamedSetRouterRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetNamedSetRouterRequest + * @instance + * @returns {Object.} JSON object + */ + GetNamedSetRouterRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetNamedSetRouterRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetNamedSetRouterRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetNamedSetRouterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetNamedSetRouterRequest"; + }; + + return GetNamedSetRouterRequest; + })(); + v1beta.GetNatIpInfoRouterRequest = (function() { /** @@ -837695,6 +842760,258 @@ return GetRegionInstanceTemplateRequest; })(); + v1beta.GetRegionInstantSnapshotGroupRequest = (function() { + + /** + * Properties of a GetRegionInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetRegionInstantSnapshotGroupRequest + * @property {string|null} [instantSnapshotGroup] GetRegionInstantSnapshotGroupRequest instantSnapshotGroup + * @property {string|null} [project] GetRegionInstantSnapshotGroupRequest project + * @property {string|null} [region] GetRegionInstantSnapshotGroupRequest region + */ + + /** + * Constructs a new GetRegionInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetRegionInstantSnapshotGroupRequest. + * @implements IGetRegionInstantSnapshotGroupRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest=} [properties] Properties to set + */ + function GetRegionInstantSnapshotGroupRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetRegionInstantSnapshotGroupRequest instantSnapshotGroup. + * @member {string} instantSnapshotGroup + * @memberof google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest + * @instance + */ + GetRegionInstantSnapshotGroupRequest.prototype.instantSnapshotGroup = ""; + + /** + * GetRegionInstantSnapshotGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest + * @instance + */ + GetRegionInstantSnapshotGroupRequest.prototype.project = ""; + + /** + * GetRegionInstantSnapshotGroupRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest + * @instance + */ + GetRegionInstantSnapshotGroupRequest.prototype.region = ""; + + /** + * Creates a new GetRegionInstantSnapshotGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest} GetRegionInstantSnapshotGroupRequest instance + */ + GetRegionInstantSnapshotGroupRequest.create = function create(properties) { + return new GetRegionInstantSnapshotGroupRequest(properties); + }; + + /** + * Encodes the specified GetRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest} message GetRegionInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionInstantSnapshotGroupRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.instantSnapshotGroup != null && Object.hasOwnProperty.call(message, "instantSnapshotGroup")) + writer.uint32(/* id 223180386, wireType 2 =*/1785443090).string(message.instantSnapshotGroup); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified GetRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest} message GetRegionInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetRegionInstantSnapshotGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest} GetRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionInstantSnapshotGroupRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 223180386: { + message.instantSnapshotGroup = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest} GetRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetRegionInstantSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetRegionInstantSnapshotGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.instantSnapshotGroup != null && message.hasOwnProperty("instantSnapshotGroup")) + if (!$util.isString(message.instantSnapshotGroup)) + return "instantSnapshotGroup: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + return null; + }; + + /** + * Creates a GetRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest} GetRegionInstantSnapshotGroupRequest + */ + GetRegionInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest(); + if (object.instantSnapshotGroup != null) + message.instantSnapshotGroup = String(object.instantSnapshotGroup); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + return message; + }; + + /** + * Creates a plain object from a GetRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest} message GetRegionInstantSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetRegionInstantSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.instantSnapshotGroup = ""; + object.project = ""; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.instantSnapshotGroup != null && message.hasOwnProperty("instantSnapshotGroup")) + object.instantSnapshotGroup = message.instantSnapshotGroup; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this GetRegionInstantSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + GetRegionInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetRegionInstantSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetRegionInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest"; + }; + + return GetRegionInstantSnapshotGroupRequest; + })(); + v1beta.GetRegionInstantSnapshotRequest = (function() { /** @@ -842790,6 +848107,281 @@ return GetReservationRequest; })(); + v1beta.GetReservationSlotRequest = (function() { + + /** + * Properties of a GetReservationSlotRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetReservationSlotRequest + * @property {string|null} [parentName] GetReservationSlotRequest parentName + * @property {string|null} [project] GetReservationSlotRequest project + * @property {string|null} [reservationSlot] GetReservationSlotRequest reservationSlot + * @property {string|null} [zone] GetReservationSlotRequest zone + */ + + /** + * Constructs a new GetReservationSlotRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetReservationSlotRequest. + * @implements IGetReservationSlotRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetReservationSlotRequest=} [properties] Properties to set + */ + function GetReservationSlotRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetReservationSlotRequest parentName. + * @member {string} parentName + * @memberof google.cloud.compute.v1beta.GetReservationSlotRequest + * @instance + */ + GetReservationSlotRequest.prototype.parentName = ""; + + /** + * GetReservationSlotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetReservationSlotRequest + * @instance + */ + GetReservationSlotRequest.prototype.project = ""; + + /** + * GetReservationSlotRequest reservationSlot. + * @member {string} reservationSlot + * @memberof google.cloud.compute.v1beta.GetReservationSlotRequest + * @instance + */ + GetReservationSlotRequest.prototype.reservationSlot = ""; + + /** + * GetReservationSlotRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.GetReservationSlotRequest + * @instance + */ + GetReservationSlotRequest.prototype.zone = ""; + + /** + * Creates a new GetReservationSlotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetReservationSlotRequest + * @static + * @param {google.cloud.compute.v1beta.IGetReservationSlotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetReservationSlotRequest} GetReservationSlotRequest instance + */ + GetReservationSlotRequest.create = function create(properties) { + return new GetReservationSlotRequest(properties); + }; + + /** + * Encodes the specified GetReservationSlotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetReservationSlotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetReservationSlotRequest + * @static + * @param {google.cloud.compute.v1beta.IGetReservationSlotRequest} message GetReservationSlotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetReservationSlotRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.reservationSlot != null && Object.hasOwnProperty.call(message, "reservationSlot")) + writer.uint32(/* id 277470865, wireType 2 =*/2219766922).string(message.reservationSlot); + if (message.parentName != null && Object.hasOwnProperty.call(message, "parentName")) + writer.uint32(/* id 478151936, wireType 2 =*/3825215490).string(message.parentName); + return writer; + }; + + /** + * Encodes the specified GetReservationSlotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetReservationSlotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetReservationSlotRequest + * @static + * @param {google.cloud.compute.v1beta.IGetReservationSlotRequest} message GetReservationSlotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetReservationSlotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetReservationSlotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetReservationSlotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetReservationSlotRequest} GetReservationSlotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetReservationSlotRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetReservationSlotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 478151936: { + message.parentName = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 277470865: { + message.reservationSlot = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetReservationSlotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetReservationSlotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetReservationSlotRequest} GetReservationSlotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetReservationSlotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetReservationSlotRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetReservationSlotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetReservationSlotRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parentName != null && message.hasOwnProperty("parentName")) + if (!$util.isString(message.parentName)) + return "parentName: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.reservationSlot != null && message.hasOwnProperty("reservationSlot")) + if (!$util.isString(message.reservationSlot)) + return "reservationSlot: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a GetReservationSlotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetReservationSlotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetReservationSlotRequest} GetReservationSlotRequest + */ + GetReservationSlotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetReservationSlotRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetReservationSlotRequest(); + if (object.parentName != null) + message.parentName = String(object.parentName); + if (object.project != null) + message.project = String(object.project); + if (object.reservationSlot != null) + message.reservationSlot = String(object.reservationSlot); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a GetReservationSlotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetReservationSlotRequest + * @static + * @param {google.cloud.compute.v1beta.GetReservationSlotRequest} message GetReservationSlotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetReservationSlotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.project = ""; + object.reservationSlot = ""; + object.parentName = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.reservationSlot != null && message.hasOwnProperty("reservationSlot")) + object.reservationSlot = message.reservationSlot; + if (message.parentName != null && message.hasOwnProperty("parentName")) + object.parentName = message.parentName; + return object; + }; + + /** + * Converts this GetReservationSlotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetReservationSlotRequest + * @instance + * @returns {Object.} JSON object + */ + GetReservationSlotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetReservationSlotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetReservationSlotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetReservationSlotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetReservationSlotRequest"; + }; + + return GetReservationSlotRequest; + })(); + v1beta.GetReservationSubBlockRequest = (function() { /** @@ -848052,6 +853644,235 @@ return GetShieldedVmIdentityInstanceRequest; })(); + v1beta.GetSnapshotGroupRequest = (function() { + + /** + * Properties of a GetSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetSnapshotGroupRequest + * @property {string|null} [project] GetSnapshotGroupRequest project + * @property {string|null} [snapshotGroup] GetSnapshotGroupRequest snapshotGroup + */ + + /** + * Constructs a new GetSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetSnapshotGroupRequest. + * @implements IGetSnapshotGroupRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetSnapshotGroupRequest=} [properties] Properties to set + */ + function GetSnapshotGroupRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetSnapshotGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetSnapshotGroupRequest + * @instance + */ + GetSnapshotGroupRequest.prototype.project = ""; + + /** + * GetSnapshotGroupRequest snapshotGroup. + * @member {string} snapshotGroup + * @memberof google.cloud.compute.v1beta.GetSnapshotGroupRequest + * @instance + */ + GetSnapshotGroupRequest.prototype.snapshotGroup = ""; + + /** + * Creates a new GetSnapshotGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IGetSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetSnapshotGroupRequest} GetSnapshotGroupRequest instance + */ + GetSnapshotGroupRequest.create = function create(properties) { + return new GetSnapshotGroupRequest(properties); + }; + + /** + * Encodes the specified GetSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetSnapshotGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IGetSnapshotGroupRequest} message GetSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSnapshotGroupRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.snapshotGroup != null && Object.hasOwnProperty.call(message, "snapshotGroup")) + writer.uint32(/* id 84528196, wireType 2 =*/676225570).string(message.snapshotGroup); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified GetSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetSnapshotGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IGetSnapshotGroupRequest} message GetSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetSnapshotGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetSnapshotGroupRequest} GetSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetSnapshotGroupRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetSnapshotGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 84528196: { + message.snapshotGroup = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetSnapshotGroupRequest} GetSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetSnapshotGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.snapshotGroup != null && message.hasOwnProperty("snapshotGroup")) + if (!$util.isString(message.snapshotGroup)) + return "snapshotGroup: string expected"; + return null; + }; + + /** + * Creates a GetSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetSnapshotGroupRequest} GetSnapshotGroupRequest + */ + GetSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetSnapshotGroupRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.snapshotGroup != null) + message.snapshotGroup = String(object.snapshotGroup); + return message; + }; + + /** + * Creates a plain object from a GetSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.GetSnapshotGroupRequest} message GetSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.snapshotGroup = ""; + object.project = ""; + } + if (message.snapshotGroup != null && message.hasOwnProperty("snapshotGroup")) + object.snapshotGroup = message.snapshotGroup; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this GetSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + GetSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetSnapshotGroupRequest"; + }; + + return GetSnapshotGroupRequest; + })(); + v1beta.GetSnapshotRequest = (function() { /** @@ -874425,6 +880246,7 @@ * Properties of a HttpRouteAction. * @memberof google.cloud.compute.v1beta * @interface IHttpRouteAction + * @property {google.cloud.compute.v1beta.ICachePolicy|null} [cachePolicy] HttpRouteAction cachePolicy * @property {google.cloud.compute.v1beta.ICorsPolicy|null} [corsPolicy] HttpRouteAction corsPolicy * @property {google.cloud.compute.v1beta.IHttpFaultInjection|null} [faultInjectionPolicy] HttpRouteAction faultInjectionPolicy * @property {google.cloud.compute.v1beta.IDuration|null} [maxStreamDuration] HttpRouteAction maxStreamDuration @@ -874451,6 +880273,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * HttpRouteAction cachePolicy. + * @member {google.cloud.compute.v1beta.ICachePolicy|null|undefined} cachePolicy + * @memberof google.cloud.compute.v1beta.HttpRouteAction + * @instance + */ + HttpRouteAction.prototype.cachePolicy = null; + /** * HttpRouteAction corsPolicy. * @member {google.cloud.compute.v1beta.ICorsPolicy|null|undefined} corsPolicy @@ -874518,6 +880348,12 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + // Virtual OneOf for proto3 optional field + Object.defineProperty(HttpRouteAction.prototype, "_cachePolicy", { + get: $util.oneOfGetter($oneOfFields = ["cachePolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(HttpRouteAction.prototype, "_corsPolicy", { get: $util.oneOfGetter($oneOfFields = ["corsPolicy"]), @@ -874601,6 +880437,8 @@ $root.google.cloud.compute.v1beta.CorsPolicy.encode(message.corsPolicy, writer.uint32(/* id 398943748, wireType 2 =*/3191549986).fork()).ldelim(); if (message.faultInjectionPolicy != null && Object.hasOwnProperty.call(message, "faultInjectionPolicy")) $root.google.cloud.compute.v1beta.HttpFaultInjection.encode(message.faultInjectionPolicy, writer.uint32(/* id 412781079, wireType 2 =*/3302248634).fork()).ldelim(); + if (message.cachePolicy != null && Object.hasOwnProperty.call(message, "cachePolicy")) + $root.google.cloud.compute.v1beta.CachePolicy.encode(message.cachePolicy, writer.uint32(/* id 457366671, wireType 2 =*/3658933370).fork()).ldelim(); return writer; }; @@ -874637,6 +880475,10 @@ if (tag === error) break; switch (tag >>> 3) { + case 457366671: { + message.cachePolicy = $root.google.cloud.compute.v1beta.CachePolicy.decode(reader, reader.uint32()); + break; + } case 398943748: { message.corsPolicy = $root.google.cloud.compute.v1beta.CorsPolicy.decode(reader, reader.uint32()); break; @@ -874707,6 +880549,14 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.cachePolicy != null && message.hasOwnProperty("cachePolicy")) { + properties._cachePolicy = 1; + { + var error = $root.google.cloud.compute.v1beta.CachePolicy.verify(message.cachePolicy); + if (error) + return "cachePolicy." + error; + } + } if (message.corsPolicy != null && message.hasOwnProperty("corsPolicy")) { properties._corsPolicy = 1; { @@ -874787,6 +880637,11 @@ if (object instanceof $root.google.cloud.compute.v1beta.HttpRouteAction) return object; var message = new $root.google.cloud.compute.v1beta.HttpRouteAction(); + if (object.cachePolicy != null) { + if (typeof object.cachePolicy !== "object") + throw TypeError(".google.cloud.compute.v1beta.HttpRouteAction.cachePolicy: object expected"); + message.cachePolicy = $root.google.cloud.compute.v1beta.CachePolicy.fromObject(object.cachePolicy); + } if (object.corsPolicy != null) { if (typeof object.corsPolicy !== "object") throw TypeError(".google.cloud.compute.v1beta.HttpRouteAction.corsPolicy: object expected"); @@ -874890,6 +880745,11 @@ if (options.oneofs) object._faultInjectionPolicy = "faultInjectionPolicy"; } + if (message.cachePolicy != null && message.hasOwnProperty("cachePolicy")) { + object.cachePolicy = $root.google.cloud.compute.v1beta.CachePolicy.toObject(message.cachePolicy, options); + if (options.oneofs) + object._cachePolicy = "cachePolicy"; + } return object; }; @@ -885487,6 +891347,333 @@ return InsertInstanceTemplateRequest; })(); + v1beta.InsertInstantSnapshotGroupRequest = (function() { + + /** + * Properties of an InsertInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @interface IInsertInstantSnapshotGroupRequest + * @property {google.cloud.compute.v1beta.IInstantSnapshotGroup|null} [instantSnapshotGroupResource] InsertInstantSnapshotGroupRequest instantSnapshotGroupResource + * @property {string|null} [project] InsertInstantSnapshotGroupRequest project + * @property {string|null} [requestId] InsertInstantSnapshotGroupRequest requestId + * @property {string|null} [sourceConsistencyGroup] InsertInstantSnapshotGroupRequest sourceConsistencyGroup + * @property {string|null} [zone] InsertInstantSnapshotGroupRequest zone + */ + + /** + * Constructs a new InsertInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InsertInstantSnapshotGroupRequest. + * @implements IInsertInstantSnapshotGroupRequest + * @constructor + * @param {google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest=} [properties] Properties to set + */ + function InsertInstantSnapshotGroupRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InsertInstantSnapshotGroupRequest instantSnapshotGroupResource. + * @member {google.cloud.compute.v1beta.IInstantSnapshotGroup|null|undefined} instantSnapshotGroupResource + * @memberof google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest + * @instance + */ + InsertInstantSnapshotGroupRequest.prototype.instantSnapshotGroupResource = null; + + /** + * InsertInstantSnapshotGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest + * @instance + */ + InsertInstantSnapshotGroupRequest.prototype.project = ""; + + /** + * InsertInstantSnapshotGroupRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest + * @instance + */ + InsertInstantSnapshotGroupRequest.prototype.requestId = null; + + /** + * InsertInstantSnapshotGroupRequest sourceConsistencyGroup. + * @member {string|null|undefined} sourceConsistencyGroup + * @memberof google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest + * @instance + */ + InsertInstantSnapshotGroupRequest.prototype.sourceConsistencyGroup = null; + + /** + * InsertInstantSnapshotGroupRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest + * @instance + */ + InsertInstantSnapshotGroupRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InsertInstantSnapshotGroupRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InsertInstantSnapshotGroupRequest.prototype, "_sourceConsistencyGroup", { + get: $util.oneOfGetter($oneOfFields = ["sourceConsistencyGroup"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertInstantSnapshotGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest} InsertInstantSnapshotGroupRequest instance + */ + InsertInstantSnapshotGroupRequest.create = function create(properties) { + return new InsertInstantSnapshotGroupRequest(properties); + }; + + /** + * Encodes the specified InsertInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest} message InsertInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertInstantSnapshotGroupRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.instantSnapshotGroupResource != null && Object.hasOwnProperty.call(message, "instantSnapshotGroupResource")) + $root.google.cloud.compute.v1beta.InstantSnapshotGroup.encode(message.instantSnapshotGroupResource, writer.uint32(/* id 145067339, wireType 2 =*/1160538714).fork()).ldelim(); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.sourceConsistencyGroup != null && Object.hasOwnProperty.call(message, "sourceConsistencyGroup")) + writer.uint32(/* id 531359348, wireType 2 =*/4250874786).string(message.sourceConsistencyGroup); + return writer; + }; + + /** + * Encodes the specified InsertInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest} message InsertInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertInstantSnapshotGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest} InsertInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertInstantSnapshotGroupRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 145067339: { + message.instantSnapshotGroupResource = $root.google.cloud.compute.v1beta.InstantSnapshotGroup.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 531359348: { + message.sourceConsistencyGroup = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsertInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest} InsertInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertInstantSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertInstantSnapshotGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instantSnapshotGroupResource != null && message.hasOwnProperty("instantSnapshotGroupResource")) { + var error = $root.google.cloud.compute.v1beta.InstantSnapshotGroup.verify(message.instantSnapshotGroupResource); + if (error) + return "instantSnapshotGroupResource." + error; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.sourceConsistencyGroup != null && message.hasOwnProperty("sourceConsistencyGroup")) { + properties._sourceConsistencyGroup = 1; + if (!$util.isString(message.sourceConsistencyGroup)) + return "sourceConsistencyGroup: string expected"; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates an InsertInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest} InsertInstantSnapshotGroupRequest + */ + InsertInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest(); + if (object.instantSnapshotGroupResource != null) { + if (typeof object.instantSnapshotGroupResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest.instantSnapshotGroupResource: object expected"); + message.instantSnapshotGroupResource = $root.google.cloud.compute.v1beta.InstantSnapshotGroup.fromObject(object.instantSnapshotGroupResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.sourceConsistencyGroup != null) + message.sourceConsistencyGroup = String(object.sourceConsistencyGroup); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from an InsertInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest} message InsertInstantSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertInstantSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.instantSnapshotGroupResource = null; + object.project = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.instantSnapshotGroupResource != null && message.hasOwnProperty("instantSnapshotGroupResource")) + object.instantSnapshotGroupResource = $root.google.cloud.compute.v1beta.InstantSnapshotGroup.toObject(message.instantSnapshotGroupResource, options); + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.sourceConsistencyGroup != null && message.hasOwnProperty("sourceConsistencyGroup")) { + object.sourceConsistencyGroup = message.sourceConsistencyGroup; + if (options.oneofs) + object._sourceConsistencyGroup = "sourceConsistencyGroup"; + } + return object; + }; + + /** + * Converts this InsertInstantSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + InsertInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsertInstantSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsertInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest"; + }; + + return InsertInstantSnapshotGroupRequest; + })(); + v1beta.InsertInstantSnapshotRequest = (function() { /** @@ -894581,27 +900768,28 @@ return InsertRegionInstanceTemplateRequest; })(); - v1beta.InsertRegionInstantSnapshotRequest = (function() { + v1beta.InsertRegionInstantSnapshotGroupRequest = (function() { /** - * Properties of an InsertRegionInstantSnapshotRequest. + * Properties of an InsertRegionInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1beta - * @interface IInsertRegionInstantSnapshotRequest - * @property {google.cloud.compute.v1beta.IInstantSnapshot|null} [instantSnapshotResource] InsertRegionInstantSnapshotRequest instantSnapshotResource - * @property {string|null} [project] InsertRegionInstantSnapshotRequest project - * @property {string|null} [region] InsertRegionInstantSnapshotRequest region - * @property {string|null} [requestId] InsertRegionInstantSnapshotRequest requestId + * @interface IInsertRegionInstantSnapshotGroupRequest + * @property {google.cloud.compute.v1beta.IInstantSnapshotGroup|null} [instantSnapshotGroupResource] InsertRegionInstantSnapshotGroupRequest instantSnapshotGroupResource + * @property {string|null} [project] InsertRegionInstantSnapshotGroupRequest project + * @property {string|null} [region] InsertRegionInstantSnapshotGroupRequest region + * @property {string|null} [requestId] InsertRegionInstantSnapshotGroupRequest requestId + * @property {string|null} [sourceConsistencyGroup] InsertRegionInstantSnapshotGroupRequest sourceConsistencyGroup */ /** - * Constructs a new InsertRegionInstantSnapshotRequest. + * Constructs a new InsertRegionInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an InsertRegionInstantSnapshotRequest. - * @implements IInsertRegionInstantSnapshotRequest + * @classdesc Represents an InsertRegionInstantSnapshotGroupRequest. + * @implements IInsertRegionInstantSnapshotGroupRequest * @constructor - * @param {google.cloud.compute.v1beta.IInsertRegionInstantSnapshotRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest=} [properties] Properties to set */ - function InsertRegionInstantSnapshotRequest(properties) { + function InsertRegionInstantSnapshotGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -894609,116 +900797,132 @@ } /** - * InsertRegionInstantSnapshotRequest instantSnapshotResource. - * @member {google.cloud.compute.v1beta.IInstantSnapshot|null|undefined} instantSnapshotResource - * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * InsertRegionInstantSnapshotGroupRequest instantSnapshotGroupResource. + * @member {google.cloud.compute.v1beta.IInstantSnapshotGroup|null|undefined} instantSnapshotGroupResource + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest * @instance */ - InsertRegionInstantSnapshotRequest.prototype.instantSnapshotResource = null; + InsertRegionInstantSnapshotGroupRequest.prototype.instantSnapshotGroupResource = null; /** - * InsertRegionInstantSnapshotRequest project. + * InsertRegionInstantSnapshotGroupRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest * @instance */ - InsertRegionInstantSnapshotRequest.prototype.project = ""; + InsertRegionInstantSnapshotGroupRequest.prototype.project = ""; /** - * InsertRegionInstantSnapshotRequest region. + * InsertRegionInstantSnapshotGroupRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest * @instance */ - InsertRegionInstantSnapshotRequest.prototype.region = ""; + InsertRegionInstantSnapshotGroupRequest.prototype.region = ""; /** - * InsertRegionInstantSnapshotRequest requestId. + * InsertRegionInstantSnapshotGroupRequest requestId. * @member {string|null|undefined} requestId - * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest * @instance */ - InsertRegionInstantSnapshotRequest.prototype.requestId = null; + InsertRegionInstantSnapshotGroupRequest.prototype.requestId = null; + + /** + * InsertRegionInstantSnapshotGroupRequest sourceConsistencyGroup. + * @member {string|null|undefined} sourceConsistencyGroup + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest + * @instance + */ + InsertRegionInstantSnapshotGroupRequest.prototype.sourceConsistencyGroup = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(InsertRegionInstantSnapshotRequest.prototype, "_requestId", { + Object.defineProperty(InsertRegionInstantSnapshotGroupRequest.prototype, "_requestId", { get: $util.oneOfGetter($oneOfFields = ["requestId"]), set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(InsertRegionInstantSnapshotGroupRequest.prototype, "_sourceConsistencyGroup", { + get: $util.oneOfGetter($oneOfFields = ["sourceConsistencyGroup"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** - * Creates a new InsertRegionInstantSnapshotRequest instance using the specified properties. + * Creates a new InsertRegionInstantSnapshotGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.IInsertRegionInstantSnapshotRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest} InsertRegionInstantSnapshotRequest instance + * @param {google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest} InsertRegionInstantSnapshotGroupRequest instance */ - InsertRegionInstantSnapshotRequest.create = function create(properties) { - return new InsertRegionInstantSnapshotRequest(properties); + InsertRegionInstantSnapshotGroupRequest.create = function create(properties) { + return new InsertRegionInstantSnapshotGroupRequest(properties); }; /** - * Encodes the specified InsertRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified InsertRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.IInsertRegionInstantSnapshotRequest} message InsertRegionInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest} message InsertRegionInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InsertRegionInstantSnapshotRequest.encode = function encode(message, writer) { + InsertRegionInstantSnapshotGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); if (message.region != null && Object.hasOwnProperty.call(message, "region")) writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.instantSnapshotGroupResource != null && Object.hasOwnProperty.call(message, "instantSnapshotGroupResource")) + $root.google.cloud.compute.v1beta.InstantSnapshotGroup.encode(message.instantSnapshotGroupResource, writer.uint32(/* id 145067339, wireType 2 =*/1160538714).fork()).ldelim(); if (message.project != null && Object.hasOwnProperty.call(message, "project")) writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); - if (message.instantSnapshotResource != null && Object.hasOwnProperty.call(message, "instantSnapshotResource")) - $root.google.cloud.compute.v1beta.InstantSnapshot.encode(message.instantSnapshotResource, writer.uint32(/* id 383915339, wireType 2 =*/3071322714).fork()).ldelim(); + if (message.sourceConsistencyGroup != null && Object.hasOwnProperty.call(message, "sourceConsistencyGroup")) + writer.uint32(/* id 531359348, wireType 2 =*/4250874786).string(message.sourceConsistencyGroup); return writer; }; /** - * Encodes the specified InsertRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified InsertRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.IInsertRegionInstantSnapshotRequest} message InsertRegionInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest} message InsertRegionInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InsertRegionInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + InsertRegionInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InsertRegionInstantSnapshotRequest message from the specified reader or buffer. + * Decodes an InsertRegionInstantSnapshotGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest} InsertRegionInstantSnapshotRequest + * @returns {google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest} InsertRegionInstantSnapshotGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InsertRegionInstantSnapshotRequest.decode = function decode(reader, length, error) { + InsertRegionInstantSnapshotGroupRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 383915339: { - message.instantSnapshotResource = $root.google.cloud.compute.v1beta.InstantSnapshot.decode(reader, reader.uint32()); + case 145067339: { + message.instantSnapshotGroupResource = $root.google.cloud.compute.v1beta.InstantSnapshotGroup.decode(reader, reader.uint32()); break; } case 227560217: { @@ -894733,6 +900937,10 @@ message.requestId = reader.string(); break; } + case 531359348: { + message.sourceConsistencyGroup = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -894742,37 +900950,37 @@ }; /** - * Decodes an InsertRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes an InsertRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest} InsertRegionInstantSnapshotRequest + * @returns {google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest} InsertRegionInstantSnapshotGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InsertRegionInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + InsertRegionInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InsertRegionInstantSnapshotRequest message. + * Verifies an InsertRegionInstantSnapshotGroupRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InsertRegionInstantSnapshotRequest.verify = function verify(message) { + InsertRegionInstantSnapshotGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.instantSnapshotResource != null && message.hasOwnProperty("instantSnapshotResource")) { - var error = $root.google.cloud.compute.v1beta.InstantSnapshot.verify(message.instantSnapshotResource); + if (message.instantSnapshotGroupResource != null && message.hasOwnProperty("instantSnapshotGroupResource")) { + var error = $root.google.cloud.compute.v1beta.InstantSnapshotGroup.verify(message.instantSnapshotGroupResource); if (error) - return "instantSnapshotResource." + error; + return "instantSnapshotGroupResource." + error; } if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) @@ -894785,25 +900993,30 @@ if (!$util.isString(message.requestId)) return "requestId: string expected"; } + if (message.sourceConsistencyGroup != null && message.hasOwnProperty("sourceConsistencyGroup")) { + properties._sourceConsistencyGroup = 1; + if (!$util.isString(message.sourceConsistencyGroup)) + return "sourceConsistencyGroup: string expected"; + } return null; }; /** - * Creates an InsertRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InsertRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest} InsertRegionInstantSnapshotRequest + * @returns {google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest} InsertRegionInstantSnapshotGroupRequest */ - InsertRegionInstantSnapshotRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest) + InsertRegionInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest) return object; - var message = new $root.google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest(); - if (object.instantSnapshotResource != null) { - if (typeof object.instantSnapshotResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest.instantSnapshotResource: object expected"); - message.instantSnapshotResource = $root.google.cloud.compute.v1beta.InstantSnapshot.fromObject(object.instantSnapshotResource); + var message = new $root.google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest(); + if (object.instantSnapshotGroupResource != null) { + if (typeof object.instantSnapshotGroupResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest.instantSnapshotGroupResource: object expected"); + message.instantSnapshotGroupResource = $root.google.cloud.compute.v1beta.InstantSnapshotGroup.fromObject(object.instantSnapshotGroupResource); } if (object.project != null) message.project = String(object.project); @@ -894811,26 +901024,28 @@ message.region = String(object.region); if (object.requestId != null) message.requestId = String(object.requestId); + if (object.sourceConsistencyGroup != null) + message.sourceConsistencyGroup = String(object.sourceConsistencyGroup); return message; }; /** - * Creates a plain object from an InsertRegionInstantSnapshotRequest message. Also converts values to other types if specified. + * Creates a plain object from an InsertRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest} message InsertRegionInstantSnapshotRequest + * @param {google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest} message InsertRegionInstantSnapshotGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InsertRegionInstantSnapshotRequest.toObject = function toObject(message, options) { + InsertRegionInstantSnapshotGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.region = ""; + object.instantSnapshotGroupResource = null; object.project = ""; - object.instantSnapshotResource = null; } if (message.requestId != null && message.hasOwnProperty("requestId")) { object.requestId = message.requestId; @@ -894839,63 +901054,68 @@ } if (message.region != null && message.hasOwnProperty("region")) object.region = message.region; + if (message.instantSnapshotGroupResource != null && message.hasOwnProperty("instantSnapshotGroupResource")) + object.instantSnapshotGroupResource = $root.google.cloud.compute.v1beta.InstantSnapshotGroup.toObject(message.instantSnapshotGroupResource, options); if (message.project != null && message.hasOwnProperty("project")) object.project = message.project; - if (message.instantSnapshotResource != null && message.hasOwnProperty("instantSnapshotResource")) - object.instantSnapshotResource = $root.google.cloud.compute.v1beta.InstantSnapshot.toObject(message.instantSnapshotResource, options); + if (message.sourceConsistencyGroup != null && message.hasOwnProperty("sourceConsistencyGroup")) { + object.sourceConsistencyGroup = message.sourceConsistencyGroup; + if (options.oneofs) + object._sourceConsistencyGroup = "sourceConsistencyGroup"; + } return object; }; /** - * Converts this InsertRegionInstantSnapshotRequest to JSON. + * Converts this InsertRegionInstantSnapshotGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest * @instance * @returns {Object.} JSON object */ - InsertRegionInstantSnapshotRequest.prototype.toJSON = function toJSON() { + InsertRegionInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InsertRegionInstantSnapshotRequest + * Gets the default type url for InsertRegionInstantSnapshotGroupRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InsertRegionInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InsertRegionInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest"; }; - return InsertRegionInstantSnapshotRequest; + return InsertRegionInstantSnapshotGroupRequest; })(); - v1beta.InsertRegionMultiMigRequest = (function() { + v1beta.InsertRegionInstantSnapshotRequest = (function() { /** - * Properties of an InsertRegionMultiMigRequest. + * Properties of an InsertRegionInstantSnapshotRequest. * @memberof google.cloud.compute.v1beta - * @interface IInsertRegionMultiMigRequest - * @property {google.cloud.compute.v1beta.IMultiMig|null} [multiMigResource] InsertRegionMultiMigRequest multiMigResource - * @property {string|null} [project] InsertRegionMultiMigRequest project - * @property {string|null} [region] InsertRegionMultiMigRequest region - * @property {string|null} [requestId] InsertRegionMultiMigRequest requestId + * @interface IInsertRegionInstantSnapshotRequest + * @property {google.cloud.compute.v1beta.IInstantSnapshot|null} [instantSnapshotResource] InsertRegionInstantSnapshotRequest instantSnapshotResource + * @property {string|null} [project] InsertRegionInstantSnapshotRequest project + * @property {string|null} [region] InsertRegionInstantSnapshotRequest region + * @property {string|null} [requestId] InsertRegionInstantSnapshotRequest requestId */ /** - * Constructs a new InsertRegionMultiMigRequest. + * Constructs a new InsertRegionInstantSnapshotRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an InsertRegionMultiMigRequest. - * @implements IInsertRegionMultiMigRequest + * @classdesc Represents an InsertRegionInstantSnapshotRequest. + * @implements IInsertRegionInstantSnapshotRequest * @constructor - * @param {google.cloud.compute.v1beta.IInsertRegionMultiMigRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IInsertRegionInstantSnapshotRequest=} [properties] Properties to set */ - function InsertRegionMultiMigRequest(properties) { + function InsertRegionInstantSnapshotRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -894903,116 +901123,410 @@ } /** - * InsertRegionMultiMigRequest multiMigResource. - * @member {google.cloud.compute.v1beta.IMultiMig|null|undefined} multiMigResource - * @memberof google.cloud.compute.v1beta.InsertRegionMultiMigRequest + * InsertRegionInstantSnapshotRequest instantSnapshotResource. + * @member {google.cloud.compute.v1beta.IInstantSnapshot|null|undefined} instantSnapshotResource + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest * @instance */ - InsertRegionMultiMigRequest.prototype.multiMigResource = null; + InsertRegionInstantSnapshotRequest.prototype.instantSnapshotResource = null; /** - * InsertRegionMultiMigRequest project. + * InsertRegionInstantSnapshotRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.InsertRegionMultiMigRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest * @instance */ - InsertRegionMultiMigRequest.prototype.project = ""; + InsertRegionInstantSnapshotRequest.prototype.project = ""; /** - * InsertRegionMultiMigRequest region. + * InsertRegionInstantSnapshotRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.InsertRegionMultiMigRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest * @instance */ - InsertRegionMultiMigRequest.prototype.region = ""; + InsertRegionInstantSnapshotRequest.prototype.region = ""; /** - * InsertRegionMultiMigRequest requestId. + * InsertRegionInstantSnapshotRequest requestId. * @member {string|null|undefined} requestId - * @memberof google.cloud.compute.v1beta.InsertRegionMultiMigRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest * @instance */ - InsertRegionMultiMigRequest.prototype.requestId = null; + InsertRegionInstantSnapshotRequest.prototype.requestId = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(InsertRegionMultiMigRequest.prototype, "_requestId", { + Object.defineProperty(InsertRegionInstantSnapshotRequest.prototype, "_requestId", { get: $util.oneOfGetter($oneOfFields = ["requestId"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new InsertRegionMultiMigRequest instance using the specified properties. + * Creates a new InsertRegionInstantSnapshotRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.InsertRegionMultiMigRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.IInsertRegionMultiMigRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.InsertRegionMultiMigRequest} InsertRegionMultiMigRequest instance + * @param {google.cloud.compute.v1beta.IInsertRegionInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest} InsertRegionInstantSnapshotRequest instance */ - InsertRegionMultiMigRequest.create = function create(properties) { - return new InsertRegionMultiMigRequest(properties); + InsertRegionInstantSnapshotRequest.create = function create(properties) { + return new InsertRegionInstantSnapshotRequest(properties); }; /** - * Encodes the specified InsertRegionMultiMigRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionMultiMigRequest.verify|verify} messages. + * Encodes the specified InsertRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.InsertRegionMultiMigRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.IInsertRegionMultiMigRequest} message InsertRegionMultiMigRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IInsertRegionInstantSnapshotRequest} message InsertRegionInstantSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InsertRegionMultiMigRequest.encode = function encode(message, writer) { + InsertRegionInstantSnapshotRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); if (message.region != null && Object.hasOwnProperty.call(message, "region")) writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); - if (message.multiMigResource != null && Object.hasOwnProperty.call(message, "multiMigResource")) - $root.google.cloud.compute.v1beta.MultiMig.encode(message.multiMigResource, writer.uint32(/* id 173722824, wireType 2 =*/1389782594).fork()).ldelim(); if (message.project != null && Object.hasOwnProperty.call(message, "project")) writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.instantSnapshotResource != null && Object.hasOwnProperty.call(message, "instantSnapshotResource")) + $root.google.cloud.compute.v1beta.InstantSnapshot.encode(message.instantSnapshotResource, writer.uint32(/* id 383915339, wireType 2 =*/3071322714).fork()).ldelim(); return writer; }; /** - * Encodes the specified InsertRegionMultiMigRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionMultiMigRequest.verify|verify} messages. + * Encodes the specified InsertRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.InsertRegionMultiMigRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.IInsertRegionMultiMigRequest} message InsertRegionMultiMigRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IInsertRegionInstantSnapshotRequest} message InsertRegionInstantSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InsertRegionMultiMigRequest.encodeDelimited = function encodeDelimited(message, writer) { + InsertRegionInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InsertRegionMultiMigRequest message from the specified reader or buffer. + * Decodes an InsertRegionInstantSnapshotRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.InsertRegionMultiMigRequest + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.InsertRegionMultiMigRequest} InsertRegionMultiMigRequest + * @returns {google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest} InsertRegionInstantSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InsertRegionMultiMigRequest.decode = function decode(reader, length, error) { + InsertRegionInstantSnapshotRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InsertRegionMultiMigRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 173722824: { - message.multiMigResource = $root.google.cloud.compute.v1beta.MultiMig.decode(reader, reader.uint32()); + case 383915339: { + message.instantSnapshotResource = $root.google.cloud.compute.v1beta.InstantSnapshot.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsertRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest} InsertRegionInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertRegionInstantSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertRegionInstantSnapshotRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instantSnapshotResource != null && message.hasOwnProperty("instantSnapshotResource")) { + var error = $root.google.cloud.compute.v1beta.InstantSnapshot.verify(message.instantSnapshotResource); + if (error) + return "instantSnapshotResource." + error; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates an InsertRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest} InsertRegionInstantSnapshotRequest + */ + InsertRegionInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest(); + if (object.instantSnapshotResource != null) { + if (typeof object.instantSnapshotResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest.instantSnapshotResource: object expected"); + message.instantSnapshotResource = $root.google.cloud.compute.v1beta.InstantSnapshot.fromObject(object.instantSnapshotResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from an InsertRegionInstantSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest} message InsertRegionInstantSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertRegionInstantSnapshotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.instantSnapshotResource = null; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.instantSnapshotResource != null && message.hasOwnProperty("instantSnapshotResource")) + object.instantSnapshotResource = $root.google.cloud.compute.v1beta.InstantSnapshot.toObject(message.instantSnapshotResource, options); + return object; + }; + + /** + * Converts this InsertRegionInstantSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + InsertRegionInstantSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsertRegionInstantSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsertRegionInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InsertRegionInstantSnapshotRequest"; + }; + + return InsertRegionInstantSnapshotRequest; + })(); + + v1beta.InsertRegionMultiMigRequest = (function() { + + /** + * Properties of an InsertRegionMultiMigRequest. + * @memberof google.cloud.compute.v1beta + * @interface IInsertRegionMultiMigRequest + * @property {google.cloud.compute.v1beta.IMultiMig|null} [multiMigResource] InsertRegionMultiMigRequest multiMigResource + * @property {string|null} [project] InsertRegionMultiMigRequest project + * @property {string|null} [region] InsertRegionMultiMigRequest region + * @property {string|null} [requestId] InsertRegionMultiMigRequest requestId + */ + + /** + * Constructs a new InsertRegionMultiMigRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InsertRegionMultiMigRequest. + * @implements IInsertRegionMultiMigRequest + * @constructor + * @param {google.cloud.compute.v1beta.IInsertRegionMultiMigRequest=} [properties] Properties to set + */ + function InsertRegionMultiMigRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InsertRegionMultiMigRequest multiMigResource. + * @member {google.cloud.compute.v1beta.IMultiMig|null|undefined} multiMigResource + * @memberof google.cloud.compute.v1beta.InsertRegionMultiMigRequest + * @instance + */ + InsertRegionMultiMigRequest.prototype.multiMigResource = null; + + /** + * InsertRegionMultiMigRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.InsertRegionMultiMigRequest + * @instance + */ + InsertRegionMultiMigRequest.prototype.project = ""; + + /** + * InsertRegionMultiMigRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.InsertRegionMultiMigRequest + * @instance + */ + InsertRegionMultiMigRequest.prototype.region = ""; + + /** + * InsertRegionMultiMigRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.InsertRegionMultiMigRequest + * @instance + */ + InsertRegionMultiMigRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InsertRegionMultiMigRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertRegionMultiMigRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InsertRegionMultiMigRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertRegionMultiMigRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InsertRegionMultiMigRequest} InsertRegionMultiMigRequest instance + */ + InsertRegionMultiMigRequest.create = function create(properties) { + return new InsertRegionMultiMigRequest(properties); + }; + + /** + * Encodes the specified InsertRegionMultiMigRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionMultiMigRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InsertRegionMultiMigRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertRegionMultiMigRequest} message InsertRegionMultiMigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionMultiMigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.multiMigResource != null && Object.hasOwnProperty.call(message, "multiMigResource")) + $root.google.cloud.compute.v1beta.MultiMig.encode(message.multiMigResource, writer.uint32(/* id 173722824, wireType 2 =*/1389782594).fork()).ldelim(); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified InsertRegionMultiMigRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionMultiMigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InsertRegionMultiMigRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertRegionMultiMigRequest} message InsertRegionMultiMigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionMultiMigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertRegionMultiMigRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InsertRegionMultiMigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InsertRegionMultiMigRequest} InsertRegionMultiMigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionMultiMigRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InsertRegionMultiMigRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 173722824: { + message.multiMigResource = $root.google.cloud.compute.v1beta.MultiMig.decode(reader, reader.uint32()); break; } case 227560217: { @@ -900752,6 +907266,277 @@ return InsertServiceAttachmentRequest; })(); + v1beta.InsertSnapshotGroupRequest = (function() { + + /** + * Properties of an InsertSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @interface IInsertSnapshotGroupRequest + * @property {string|null} [project] InsertSnapshotGroupRequest project + * @property {string|null} [requestId] InsertSnapshotGroupRequest requestId + * @property {google.cloud.compute.v1beta.ISnapshotGroup|null} [snapshotGroupResource] InsertSnapshotGroupRequest snapshotGroupResource + */ + + /** + * Constructs a new InsertSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InsertSnapshotGroupRequest. + * @implements IInsertSnapshotGroupRequest + * @constructor + * @param {google.cloud.compute.v1beta.IInsertSnapshotGroupRequest=} [properties] Properties to set + */ + function InsertSnapshotGroupRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InsertSnapshotGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.InsertSnapshotGroupRequest + * @instance + */ + InsertSnapshotGroupRequest.prototype.project = ""; + + /** + * InsertSnapshotGroupRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.InsertSnapshotGroupRequest + * @instance + */ + InsertSnapshotGroupRequest.prototype.requestId = null; + + /** + * InsertSnapshotGroupRequest snapshotGroupResource. + * @member {google.cloud.compute.v1beta.ISnapshotGroup|null|undefined} snapshotGroupResource + * @memberof google.cloud.compute.v1beta.InsertSnapshotGroupRequest + * @instance + */ + InsertSnapshotGroupRequest.prototype.snapshotGroupResource = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InsertSnapshotGroupRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertSnapshotGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InsertSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InsertSnapshotGroupRequest} InsertSnapshotGroupRequest instance + */ + InsertSnapshotGroupRequest.create = function create(properties) { + return new InsertSnapshotGroupRequest(properties); + }; + + /** + * Encodes the specified InsertSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertSnapshotGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InsertSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertSnapshotGroupRequest} message InsertSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertSnapshotGroupRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.snapshotGroupResource != null && Object.hasOwnProperty.call(message, "snapshotGroupResource")) + $root.google.cloud.compute.v1beta.SnapshotGroup.encode(message.snapshotGroupResource, writer.uint32(/* id 265205161, wireType 2 =*/2121641290).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InsertSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertSnapshotGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InsertSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertSnapshotGroupRequest} message InsertSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertSnapshotGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InsertSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InsertSnapshotGroupRequest} InsertSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertSnapshotGroupRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InsertSnapshotGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 265205161: { + message.snapshotGroupResource = $root.google.cloud.compute.v1beta.SnapshotGroup.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsertSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InsertSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InsertSnapshotGroupRequest} InsertSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.InsertSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertSnapshotGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.snapshotGroupResource != null && message.hasOwnProperty("snapshotGroupResource")) { + var error = $root.google.cloud.compute.v1beta.SnapshotGroup.verify(message.snapshotGroupResource); + if (error) + return "snapshotGroupResource." + error; + } + return null; + }; + + /** + * Creates an InsertSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InsertSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InsertSnapshotGroupRequest} InsertSnapshotGroupRequest + */ + InsertSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InsertSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.InsertSnapshotGroupRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.snapshotGroupResource != null) { + if (typeof object.snapshotGroupResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.InsertSnapshotGroupRequest.snapshotGroupResource: object expected"); + message.snapshotGroupResource = $root.google.cloud.compute.v1beta.SnapshotGroup.fromObject(object.snapshotGroupResource); + } + return message; + }; + + /** + * Creates a plain object from an InsertSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InsertSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.InsertSnapshotGroupRequest} message InsertSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.project = ""; + object.snapshotGroupResource = null; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.snapshotGroupResource != null && message.hasOwnProperty("snapshotGroupResource")) + object.snapshotGroupResource = $root.google.cloud.compute.v1beta.SnapshotGroup.toObject(message.snapshotGroupResource, options); + return object; + }; + + /** + * Converts this InsertSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InsertSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + InsertSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsertSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InsertSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsertSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InsertSnapshotGroupRequest"; + }; + + return InsertSnapshotGroupRequest; + })(); + v1beta.InsertSnapshotRequest = (function() { /** @@ -905926,6 +912711,7 @@ * @property {string|null} [status] Instance status * @property {string|null} [statusMessage] Instance statusMessage * @property {google.cloud.compute.v1beta.ITags|null} [tags] Instance tags + * @property {google.cloud.compute.v1beta.IWorkloadIdentityConfig|null} [workloadIdentityConfig] Instance workloadIdentityConfig * @property {string|null} [zone] Instance zone */ @@ -906351,6 +913137,14 @@ */ Instance.prototype.tags = null; + /** + * Instance workloadIdentityConfig. + * @member {google.cloud.compute.v1beta.IWorkloadIdentityConfig|null|undefined} workloadIdentityConfig + * @memberof google.cloud.compute.v1beta.Instance + * @instance + */ + Instance.prototype.workloadIdentityConfig = null; + /** * Instance zone. * @member {string|null|undefined} zone @@ -906620,6 +913414,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Instance.prototype, "_workloadIdentityConfig", { + get: $util.oneOfGetter($oneOfFields = ["workloadIdentityConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Instance.prototype, "_zone", { get: $util.oneOfGetter($oneOfFields = ["zone"]), @@ -906725,6 +913525,8 @@ writer.uint32(/* id 292972897, wireType 2 =*/2343783178).string(message.postKeyRevocationActionType); if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) writer.uint32(/* id 297428154, wireType 2 =*/2379425234).string(message.statusMessage); + if (message.workloadIdentityConfig != null && Object.hasOwnProperty.call(message, "workloadIdentityConfig")) + $root.google.cloud.compute.v1beta.WorkloadIdentityConfig.encode(message.workloadIdentityConfig, writer.uint32(/* id 338198811, wireType 2 =*/2705590490).fork()).ldelim(); if (message.lastSuspendedTimestamp != null && Object.hasOwnProperty.call(message, "lastSuspendedTimestamp")) writer.uint32(/* id 356275337, wireType 2 =*/2850202698).string(message.lastSuspendedTimestamp); if (message.scheduling != null && Object.hasOwnProperty.call(message, "scheduling")) @@ -907045,6 +913847,10 @@ message.tags = $root.google.cloud.compute.v1beta.Tags.decode(reader, reader.uint32()); break; } + case 338198811: { + message.workloadIdentityConfig = $root.google.cloud.compute.v1beta.WorkloadIdentityConfig.decode(reader, reader.uint32()); + break; + } case 3744684: { message.zone = reader.string(); break; @@ -907409,6 +914215,14 @@ return "tags." + error; } } + if (message.workloadIdentityConfig != null && message.hasOwnProperty("workloadIdentityConfig")) { + properties._workloadIdentityConfig = 1; + { + var error = $root.google.cloud.compute.v1beta.WorkloadIdentityConfig.verify(message.workloadIdentityConfig); + if (error) + return "workloadIdentityConfig." + error; + } + } if (message.zone != null && message.hasOwnProperty("zone")) { properties._zone = 1; if (!$util.isString(message.zone)) @@ -907634,6 +914448,11 @@ throw TypeError(".google.cloud.compute.v1beta.Instance.tags: object expected"); message.tags = $root.google.cloud.compute.v1beta.Tags.fromObject(object.tags); } + if (object.workloadIdentityConfig != null) { + if (typeof object.workloadIdentityConfig !== "object") + throw TypeError(".google.cloud.compute.v1beta.Instance.workloadIdentityConfig: object expected"); + message.workloadIdentityConfig = $root.google.cloud.compute.v1beta.WorkloadIdentityConfig.fromObject(object.workloadIdentityConfig); + } if (object.zone != null) message.zone = String(object.zone); return message; @@ -907837,6 +914656,11 @@ if (options.oneofs) object._statusMessage = "statusMessage"; } + if (message.workloadIdentityConfig != null && message.hasOwnProperty("workloadIdentityConfig")) { + object.workloadIdentityConfig = $root.google.cloud.compute.v1beta.WorkloadIdentityConfig.toObject(message.workloadIdentityConfig, options); + if (options.oneofs) + object._workloadIdentityConfig = "workloadIdentityConfig"; + } if (message.lastSuspendedTimestamp != null && message.hasOwnProperty("lastSuspendedTimestamp")) { object.lastSuspendedTimestamp = message.lastSuspendedTimestamp; if (options.oneofs) @@ -918529,6 +925353,7 @@ * @property {google.cloud.compute.v1beta.IInstanceGroupManagerStatusAllInstancesConfig|null} [allInstancesConfig] InstanceGroupManagerStatus allInstancesConfig * @property {string|null} [autoscaler] InstanceGroupManagerStatus autoscaler * @property {google.cloud.compute.v1beta.IInstanceGroupManagerStatusBulkInstanceOperation|null} [bulkInstanceOperation] InstanceGroupManagerStatus bulkInstanceOperation + * @property {google.cloud.compute.v1beta.IInstanceGroupManagerStatusInstanceStatusSummary|null} [currentInstanceStatuses] InstanceGroupManagerStatus currentInstanceStatuses * @property {boolean|null} [isStable] InstanceGroupManagerStatus isStable * @property {google.cloud.compute.v1beta.IInstanceGroupManagerStatusStateful|null} [stateful] InstanceGroupManagerStatus stateful * @property {google.cloud.compute.v1beta.IInstanceGroupManagerStatusVersionTarget|null} [versionTarget] InstanceGroupManagerStatus versionTarget @@ -918573,6 +925398,14 @@ */ InstanceGroupManagerStatus.prototype.bulkInstanceOperation = null; + /** + * InstanceGroupManagerStatus currentInstanceStatuses. + * @member {google.cloud.compute.v1beta.IInstanceGroupManagerStatusInstanceStatusSummary|null|undefined} currentInstanceStatuses + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatus + * @instance + */ + InstanceGroupManagerStatus.prototype.currentInstanceStatuses = null; + /** * InstanceGroupManagerStatus isStable. * @member {boolean|null|undefined} isStable @@ -918618,6 +925451,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatus.prototype, "_currentInstanceStatuses", { + get: $util.oneOfGetter($oneOfFields = ["currentInstanceStatuses"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(InstanceGroupManagerStatus.prototype, "_isStable", { get: $util.oneOfGetter($oneOfFields = ["isStable"]), @@ -918666,6 +925505,8 @@ $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusAllInstancesConfig.encode(message.allInstancesConfig, writer.uint32(/* id 112596737, wireType 2 =*/900773898).fork()).ldelim(); if (message.stateful != null && Object.hasOwnProperty.call(message, "stateful")) $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusStateful.encode(message.stateful, writer.uint32(/* id 244462412, wireType 2 =*/1955699298).fork()).ldelim(); + if (message.currentInstanceStatuses != null && Object.hasOwnProperty.call(message, "currentInstanceStatuses")) + $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary.encode(message.currentInstanceStatuses, writer.uint32(/* id 269432644, wireType 2 =*/2155461154).fork()).ldelim(); if (message.versionTarget != null && Object.hasOwnProperty.call(message, "versionTarget")) $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusVersionTarget.encode(message.versionTarget, writer.uint32(/* id 289386200, wireType 2 =*/2315089602).fork()).ldelim(); if (message.bulkInstanceOperation != null && Object.hasOwnProperty.call(message, "bulkInstanceOperation")) @@ -918720,6 +925561,10 @@ message.bulkInstanceOperation = $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusBulkInstanceOperation.decode(reader, reader.uint32()); break; } + case 269432644: { + message.currentInstanceStatuses = $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary.decode(reader, reader.uint32()); + break; + } case 108410864: { message.isStable = reader.bool(); break; @@ -918789,6 +925634,14 @@ return "bulkInstanceOperation." + error; } } + if (message.currentInstanceStatuses != null && message.hasOwnProperty("currentInstanceStatuses")) { + properties._currentInstanceStatuses = 1; + { + var error = $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary.verify(message.currentInstanceStatuses); + if (error) + return "currentInstanceStatuses." + error; + } + } if (message.isStable != null && message.hasOwnProperty("isStable")) { properties._isStable = 1; if (typeof message.isStable !== "boolean") @@ -918837,6 +925690,11 @@ throw TypeError(".google.cloud.compute.v1beta.InstanceGroupManagerStatus.bulkInstanceOperation: object expected"); message.bulkInstanceOperation = $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusBulkInstanceOperation.fromObject(object.bulkInstanceOperation); } + if (object.currentInstanceStatuses != null) { + if (typeof object.currentInstanceStatuses !== "object") + throw TypeError(".google.cloud.compute.v1beta.InstanceGroupManagerStatus.currentInstanceStatuses: object expected"); + message.currentInstanceStatuses = $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary.fromObject(object.currentInstanceStatuses); + } if (object.isStable != null) message.isStable = Boolean(object.isStable); if (object.stateful != null) { @@ -918880,6 +925738,11 @@ if (options.oneofs) object._stateful = "stateful"; } + if (message.currentInstanceStatuses != null && message.hasOwnProperty("currentInstanceStatuses")) { + object.currentInstanceStatuses = $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary.toObject(message.currentInstanceStatuses, options); + if (options.oneofs) + object._currentInstanceStatuses = "currentInstanceStatuses"; + } if (message.versionTarget != null && message.hasOwnProperty("versionTarget")) { object.versionTarget = $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusVersionTarget.toObject(message.versionTarget, options); if (options.oneofs) @@ -919692,6 +926555,620 @@ return InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck; })(); + v1beta.InstanceGroupManagerStatusInstanceStatusSummary = (function() { + + /** + * Properties of an InstanceGroupManagerStatusInstanceStatusSummary. + * @memberof google.cloud.compute.v1beta + * @interface IInstanceGroupManagerStatusInstanceStatusSummary + * @property {number|null} [deprovisioning] InstanceGroupManagerStatusInstanceStatusSummary deprovisioning + * @property {number|null} [nonExistent] InstanceGroupManagerStatusInstanceStatusSummary nonExistent + * @property {number|null} [pending] InstanceGroupManagerStatusInstanceStatusSummary pending + * @property {number|null} [pendingStop] InstanceGroupManagerStatusInstanceStatusSummary pendingStop + * @property {number|null} [provisioning] InstanceGroupManagerStatusInstanceStatusSummary provisioning + * @property {number|null} [repairing] InstanceGroupManagerStatusInstanceStatusSummary repairing + * @property {number|null} [running] InstanceGroupManagerStatusInstanceStatusSummary running + * @property {number|null} [staging] InstanceGroupManagerStatusInstanceStatusSummary staging + * @property {number|null} [stopped] InstanceGroupManagerStatusInstanceStatusSummary stopped + * @property {number|null} [stopping] InstanceGroupManagerStatusInstanceStatusSummary stopping + * @property {number|null} [suspended] InstanceGroupManagerStatusInstanceStatusSummary suspended + * @property {number|null} [suspending] InstanceGroupManagerStatusInstanceStatusSummary suspending + * @property {number|null} [terminated] InstanceGroupManagerStatusInstanceStatusSummary terminated + */ + + /** + * Constructs a new InstanceGroupManagerStatusInstanceStatusSummary. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InstanceGroupManagerStatusInstanceStatusSummary. + * @implements IInstanceGroupManagerStatusInstanceStatusSummary + * @constructor + * @param {google.cloud.compute.v1beta.IInstanceGroupManagerStatusInstanceStatusSummary=} [properties] Properties to set + */ + function InstanceGroupManagerStatusInstanceStatusSummary(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstanceGroupManagerStatusInstanceStatusSummary deprovisioning. + * @member {number|null|undefined} deprovisioning + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.deprovisioning = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary nonExistent. + * @member {number|null|undefined} nonExistent + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.nonExistent = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary pending. + * @member {number|null|undefined} pending + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.pending = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary pendingStop. + * @member {number|null|undefined} pendingStop + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.pendingStop = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary provisioning. + * @member {number|null|undefined} provisioning + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.provisioning = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary repairing. + * @member {number|null|undefined} repairing + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.repairing = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary running. + * @member {number|null|undefined} running + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.running = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary staging. + * @member {number|null|undefined} staging + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.staging = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary stopped. + * @member {number|null|undefined} stopped + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.stopped = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary stopping. + * @member {number|null|undefined} stopping + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.stopping = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary suspended. + * @member {number|null|undefined} suspended + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.suspended = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary suspending. + * @member {number|null|undefined} suspending + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.suspending = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary terminated. + * @member {number|null|undefined} terminated + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.terminated = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_deprovisioning", { + get: $util.oneOfGetter($oneOfFields = ["deprovisioning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_nonExistent", { + get: $util.oneOfGetter($oneOfFields = ["nonExistent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_pending", { + get: $util.oneOfGetter($oneOfFields = ["pending"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_pendingStop", { + get: $util.oneOfGetter($oneOfFields = ["pendingStop"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_provisioning", { + get: $util.oneOfGetter($oneOfFields = ["provisioning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_repairing", { + get: $util.oneOfGetter($oneOfFields = ["repairing"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_running", { + get: $util.oneOfGetter($oneOfFields = ["running"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_staging", { + get: $util.oneOfGetter($oneOfFields = ["staging"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_stopped", { + get: $util.oneOfGetter($oneOfFields = ["stopped"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_stopping", { + get: $util.oneOfGetter($oneOfFields = ["stopping"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_suspended", { + get: $util.oneOfGetter($oneOfFields = ["suspended"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_suspending", { + get: $util.oneOfGetter($oneOfFields = ["suspending"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_terminated", { + get: $util.oneOfGetter($oneOfFields = ["terminated"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstanceGroupManagerStatusInstanceStatusSummary instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagerStatusInstanceStatusSummary=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary} InstanceGroupManagerStatusInstanceStatusSummary instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.create = function create(properties) { + return new InstanceGroupManagerStatusInstanceStatusSummary(properties); + }; + + /** + * Encodes the specified InstanceGroupManagerStatusInstanceStatusSummary message. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagerStatusInstanceStatusSummary} message InstanceGroupManagerStatusInstanceStatusSummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerStatusInstanceStatusSummary.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.suspending != null && Object.hasOwnProperty.call(message, "suspending")) + writer.uint32(/* id 29113894, wireType 0 =*/232911152).int32(message.suspending); + if (message.stopping != null && Object.hasOwnProperty.call(message, "stopping")) + writer.uint32(/* id 105035892, wireType 0 =*/840287136).int32(message.stopping); + if (message.provisioning != null && Object.hasOwnProperty.call(message, "provisioning")) + writer.uint32(/* id 121098989, wireType 0 =*/968791912).int32(message.provisioning); + if (message.pendingStop != null && Object.hasOwnProperty.call(message, "pendingStop")) + writer.uint32(/* id 163159466, wireType 0 =*/1305275728).int32(message.pendingStop); + if (message.staging != null && Object.hasOwnProperty.call(message, "staging")) + writer.uint32(/* id 249960507, wireType 0 =*/1999684056).int32(message.staging); + if (message.stopped != null && Object.hasOwnProperty.call(message, "stopped")) + writer.uint32(/* id 263164365, wireType 0 =*/2105314920).int32(message.stopped); + if (message.terminated != null && Object.hasOwnProperty.call(message, "terminated")) + writer.uint32(/* id 301796899, wireType 0 =*/2414375192).int32(message.terminated); + if (message.repairing != null && Object.hasOwnProperty.call(message, "repairing")) + writer.uint32(/* id 311243061, wireType 0 =*/2489944488).int32(message.repairing); + if (message.pending != null && Object.hasOwnProperty.call(message, "pending")) + writer.uint32(/* id 391154071, wireType 0 =*/3129232568).int32(message.pending); + if (message.deprovisioning != null && Object.hasOwnProperty.call(message, "deprovisioning")) + writer.uint32(/* id 462169582, wireType 0 =*/3697356656).int32(message.deprovisioning); + if (message.nonExistent != null && Object.hasOwnProperty.call(message, "nonExistent")) + writer.uint32(/* id 468485062, wireType 0 =*/3747880496).int32(message.nonExistent); + if (message.running != null && Object.hasOwnProperty.call(message, "running")) + writer.uint32(/* id 477042111, wireType 0 =*/3816336888).int32(message.running); + if (message.suspended != null && Object.hasOwnProperty.call(message, "suspended")) + writer.uint32(/* id 485854683, wireType 0 =*/3886837464).int32(message.suspended); + return writer; + }; + + /** + * Encodes the specified InstanceGroupManagerStatusInstanceStatusSummary message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagerStatusInstanceStatusSummary} message InstanceGroupManagerStatusInstanceStatusSummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerStatusInstanceStatusSummary.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceGroupManagerStatusInstanceStatusSummary message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary} InstanceGroupManagerStatusInstanceStatusSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerStatusInstanceStatusSummary.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 462169582: { + message.deprovisioning = reader.int32(); + break; + } + case 468485062: { + message.nonExistent = reader.int32(); + break; + } + case 391154071: { + message.pending = reader.int32(); + break; + } + case 163159466: { + message.pendingStop = reader.int32(); + break; + } + case 121098989: { + message.provisioning = reader.int32(); + break; + } + case 311243061: { + message.repairing = reader.int32(); + break; + } + case 477042111: { + message.running = reader.int32(); + break; + } + case 249960507: { + message.staging = reader.int32(); + break; + } + case 263164365: { + message.stopped = reader.int32(); + break; + } + case 105035892: { + message.stopping = reader.int32(); + break; + } + case 485854683: { + message.suspended = reader.int32(); + break; + } + case 29113894: { + message.suspending = reader.int32(); + break; + } + case 301796899: { + message.terminated = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceGroupManagerStatusInstanceStatusSummary message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary} InstanceGroupManagerStatusInstanceStatusSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerStatusInstanceStatusSummary.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceGroupManagerStatusInstanceStatusSummary message. + * @function verify + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceGroupManagerStatusInstanceStatusSummary.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.deprovisioning != null && message.hasOwnProperty("deprovisioning")) { + properties._deprovisioning = 1; + if (!$util.isInteger(message.deprovisioning)) + return "deprovisioning: integer expected"; + } + if (message.nonExistent != null && message.hasOwnProperty("nonExistent")) { + properties._nonExistent = 1; + if (!$util.isInteger(message.nonExistent)) + return "nonExistent: integer expected"; + } + if (message.pending != null && message.hasOwnProperty("pending")) { + properties._pending = 1; + if (!$util.isInteger(message.pending)) + return "pending: integer expected"; + } + if (message.pendingStop != null && message.hasOwnProperty("pendingStop")) { + properties._pendingStop = 1; + if (!$util.isInteger(message.pendingStop)) + return "pendingStop: integer expected"; + } + if (message.provisioning != null && message.hasOwnProperty("provisioning")) { + properties._provisioning = 1; + if (!$util.isInteger(message.provisioning)) + return "provisioning: integer expected"; + } + if (message.repairing != null && message.hasOwnProperty("repairing")) { + properties._repairing = 1; + if (!$util.isInteger(message.repairing)) + return "repairing: integer expected"; + } + if (message.running != null && message.hasOwnProperty("running")) { + properties._running = 1; + if (!$util.isInteger(message.running)) + return "running: integer expected"; + } + if (message.staging != null && message.hasOwnProperty("staging")) { + properties._staging = 1; + if (!$util.isInteger(message.staging)) + return "staging: integer expected"; + } + if (message.stopped != null && message.hasOwnProperty("stopped")) { + properties._stopped = 1; + if (!$util.isInteger(message.stopped)) + return "stopped: integer expected"; + } + if (message.stopping != null && message.hasOwnProperty("stopping")) { + properties._stopping = 1; + if (!$util.isInteger(message.stopping)) + return "stopping: integer expected"; + } + if (message.suspended != null && message.hasOwnProperty("suspended")) { + properties._suspended = 1; + if (!$util.isInteger(message.suspended)) + return "suspended: integer expected"; + } + if (message.suspending != null && message.hasOwnProperty("suspending")) { + properties._suspending = 1; + if (!$util.isInteger(message.suspending)) + return "suspending: integer expected"; + } + if (message.terminated != null && message.hasOwnProperty("terminated")) { + properties._terminated = 1; + if (!$util.isInteger(message.terminated)) + return "terminated: integer expected"; + } + return null; + }; + + /** + * Creates an InstanceGroupManagerStatusInstanceStatusSummary message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary} InstanceGroupManagerStatusInstanceStatusSummary + */ + InstanceGroupManagerStatusInstanceStatusSummary.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary) + return object; + var message = new $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary(); + if (object.deprovisioning != null) + message.deprovisioning = object.deprovisioning | 0; + if (object.nonExistent != null) + message.nonExistent = object.nonExistent | 0; + if (object.pending != null) + message.pending = object.pending | 0; + if (object.pendingStop != null) + message.pendingStop = object.pendingStop | 0; + if (object.provisioning != null) + message.provisioning = object.provisioning | 0; + if (object.repairing != null) + message.repairing = object.repairing | 0; + if (object.running != null) + message.running = object.running | 0; + if (object.staging != null) + message.staging = object.staging | 0; + if (object.stopped != null) + message.stopped = object.stopped | 0; + if (object.stopping != null) + message.stopping = object.stopping | 0; + if (object.suspended != null) + message.suspended = object.suspended | 0; + if (object.suspending != null) + message.suspending = object.suspending | 0; + if (object.terminated != null) + message.terminated = object.terminated | 0; + return message; + }; + + /** + * Creates a plain object from an InstanceGroupManagerStatusInstanceStatusSummary message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @static + * @param {google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary} message InstanceGroupManagerStatusInstanceStatusSummary + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceGroupManagerStatusInstanceStatusSummary.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.suspending != null && message.hasOwnProperty("suspending")) { + object.suspending = message.suspending; + if (options.oneofs) + object._suspending = "suspending"; + } + if (message.stopping != null && message.hasOwnProperty("stopping")) { + object.stopping = message.stopping; + if (options.oneofs) + object._stopping = "stopping"; + } + if (message.provisioning != null && message.hasOwnProperty("provisioning")) { + object.provisioning = message.provisioning; + if (options.oneofs) + object._provisioning = "provisioning"; + } + if (message.pendingStop != null && message.hasOwnProperty("pendingStop")) { + object.pendingStop = message.pendingStop; + if (options.oneofs) + object._pendingStop = "pendingStop"; + } + if (message.staging != null && message.hasOwnProperty("staging")) { + object.staging = message.staging; + if (options.oneofs) + object._staging = "staging"; + } + if (message.stopped != null && message.hasOwnProperty("stopped")) { + object.stopped = message.stopped; + if (options.oneofs) + object._stopped = "stopped"; + } + if (message.terminated != null && message.hasOwnProperty("terminated")) { + object.terminated = message.terminated; + if (options.oneofs) + object._terminated = "terminated"; + } + if (message.repairing != null && message.hasOwnProperty("repairing")) { + object.repairing = message.repairing; + if (options.oneofs) + object._repairing = "repairing"; + } + if (message.pending != null && message.hasOwnProperty("pending")) { + object.pending = message.pending; + if (options.oneofs) + object._pending = "pending"; + } + if (message.deprovisioning != null && message.hasOwnProperty("deprovisioning")) { + object.deprovisioning = message.deprovisioning; + if (options.oneofs) + object._deprovisioning = "deprovisioning"; + } + if (message.nonExistent != null && message.hasOwnProperty("nonExistent")) { + object.nonExistent = message.nonExistent; + if (options.oneofs) + object._nonExistent = "nonExistent"; + } + if (message.running != null && message.hasOwnProperty("running")) { + object.running = message.running; + if (options.oneofs) + object._running = "running"; + } + if (message.suspended != null && message.hasOwnProperty("suspended")) { + object.suspended = message.suspended; + if (options.oneofs) + object._suspended = "suspended"; + } + return object; + }; + + /** + * Converts this InstanceGroupManagerStatusInstanceStatusSummary to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + * @returns {Object.} JSON object + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceGroupManagerStatusInstanceStatusSummary + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceGroupManagerStatusInstanceStatusSummary.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary"; + }; + + return InstanceGroupManagerStatusInstanceStatusSummary; + })(); + v1beta.InstanceGroupManagerStatusStateful = (function() { /** @@ -922040,6 +929517,246 @@ return InstanceGroupManagersApplyUpdatesRequest; })(); + v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest = (function() { + + /** + * Properties of an InstanceGroupManagersConfigureAcceleratorTopologiesRequest. + * @memberof google.cloud.compute.v1beta + * @interface IInstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @property {Object.|null} [acceleratorTopologyActions] InstanceGroupManagersConfigureAcceleratorTopologiesRequest acceleratorTopologyActions + */ + + /** + * Constructs a new InstanceGroupManagersConfigureAcceleratorTopologiesRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InstanceGroupManagersConfigureAcceleratorTopologiesRequest. + * @implements IInstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @constructor + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequest=} [properties] Properties to set + */ + function InstanceGroupManagersConfigureAcceleratorTopologiesRequest(properties) { + this.acceleratorTopologyActions = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstanceGroupManagersConfigureAcceleratorTopologiesRequest acceleratorTopologyActions. + * @member {Object.} acceleratorTopologyActions + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @instance + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequest.prototype.acceleratorTopologyActions = $util.emptyObject; + + /** + * Creates a new InstanceGroupManagersConfigureAcceleratorTopologiesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest} InstanceGroupManagersConfigureAcceleratorTopologiesRequest instance + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequest.create = function create(properties) { + return new InstanceGroupManagersConfigureAcceleratorTopologiesRequest(properties); + }; + + /** + * Encodes the specified InstanceGroupManagersConfigureAcceleratorTopologiesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequest} message InstanceGroupManagersConfigureAcceleratorTopologiesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.acceleratorTopologyActions != null && Object.hasOwnProperty.call(message, "acceleratorTopologyActions")) + for (var keys = Object.keys(message.acceleratorTopologyActions), i = 0; i < keys.length; ++i) + writer.uint32(/* id 16520833, wireType 2 =*/132166666).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.acceleratorTopologyActions[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified InstanceGroupManagersConfigureAcceleratorTopologiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequest} message InstanceGroupManagersConfigureAcceleratorTopologiesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceGroupManagersConfigureAcceleratorTopologiesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest} InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 16520833: { + if (message.acceleratorTopologyActions === $util.emptyObject) + message.acceleratorTopologyActions = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.acceleratorTopologyActions[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceGroupManagersConfigureAcceleratorTopologiesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest} InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceGroupManagersConfigureAcceleratorTopologiesRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.acceleratorTopologyActions != null && message.hasOwnProperty("acceleratorTopologyActions")) { + if (!$util.isObject(message.acceleratorTopologyActions)) + return "acceleratorTopologyActions: object expected"; + var key = Object.keys(message.acceleratorTopologyActions); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.acceleratorTopologyActions[key[i]])) + return "acceleratorTopologyActions: string{k:string} expected"; + } + return null; + }; + + /** + * Creates an InstanceGroupManagersConfigureAcceleratorTopologiesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest} InstanceGroupManagersConfigureAcceleratorTopologiesRequest + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest(); + if (object.acceleratorTopologyActions) { + if (typeof object.acceleratorTopologyActions !== "object") + throw TypeError(".google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest.acceleratorTopologyActions: object expected"); + message.acceleratorTopologyActions = {}; + for (var keys = Object.keys(object.acceleratorTopologyActions), i = 0; i < keys.length; ++i) + message.acceleratorTopologyActions[keys[i]] = String(object.acceleratorTopologyActions[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from an InstanceGroupManagersConfigureAcceleratorTopologiesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @static + * @param {google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest} message InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.acceleratorTopologyActions = {}; + var keys2; + if (message.acceleratorTopologyActions && (keys2 = Object.keys(message.acceleratorTopologyActions)).length) { + object.acceleratorTopologyActions = {}; + for (var j = 0; j < keys2.length; ++j) + object.acceleratorTopologyActions[keys2[j]] = message.acceleratorTopologyActions[keys2[j]]; + } + return object; + }; + + /** + * Converts this InstanceGroupManagersConfigureAcceleratorTopologiesRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @instance + * @returns {Object.} JSON object + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest"; + }; + + return InstanceGroupManagersConfigureAcceleratorTopologiesRequest; + })(); + v1beta.InstanceGroupManagersCreateInstancesRequest = (function() { /** @@ -922752,6 +930469,7 @@ * @memberof google.cloud.compute.v1beta * @interface IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse * @property {Object.|null} [acceleratorTopologiesInfo] InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse acceleratorTopologiesInfo + * @property {string|null} [multiMig] InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse multiMig */ /** @@ -922778,6 +930496,23 @@ */ InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.prototype.acceleratorTopologiesInfo = $util.emptyObject; + /** + * InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse multiMig. + * @member {string|null|undefined} multiMig + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @instance + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.prototype.multiMig = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.prototype, "_multiMig", { + get: $util.oneOfGetter($oneOfFields = ["multiMig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse instance using the specified properties. * @function create @@ -922807,6 +930542,8 @@ writer.uint32(/* id 84833420, wireType 2 =*/678667362).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.encode(message.acceleratorTopologiesInfo[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); } + if (message.multiMig != null && Object.hasOwnProperty.call(message, "multiMig")) + writer.uint32(/* id 403990085, wireType 2 =*/3231920682).string(message.multiMig); return writer; }; @@ -922866,6 +930603,10 @@ message.acceleratorTopologiesInfo[key] = value; break; } + case 403990085: { + message.multiMig = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -922901,6 +930642,7 @@ InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.acceleratorTopologiesInfo != null && message.hasOwnProperty("acceleratorTopologiesInfo")) { if (!$util.isObject(message.acceleratorTopologiesInfo)) return "acceleratorTopologiesInfo: object expected"; @@ -922911,6 +930653,11 @@ return "acceleratorTopologiesInfo." + error; } } + if (message.multiMig != null && message.hasOwnProperty("multiMig")) { + properties._multiMig = 1; + if (!$util.isString(message.multiMig)) + return "multiMig: string expected"; + } return null; }; @@ -922936,6 +930683,8 @@ message.acceleratorTopologiesInfo[keys[i]] = $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.fromObject(object.acceleratorTopologiesInfo[keys[i]]); } } + if (object.multiMig != null) + message.multiMig = String(object.multiMig); return message; }; @@ -922960,6 +930709,11 @@ for (var j = 0; j < keys2.length; ++j) object.acceleratorTopologiesInfo[keys2[j]] = $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.toObject(message.acceleratorTopologiesInfo[keys2[j]], options); } + if (message.multiMig != null && message.hasOwnProperty("multiMig")) { + object.multiMig = message.multiMig; + if (options.oneofs) + object._multiMig = "multiMig"; + } return object; }; @@ -923000,6 +930754,9 @@ * @interface IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo * @property {string|null} [acceleratorTopology] InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo acceleratorTopology * @property {string|null} [acceleratorTopologyHealth] InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo acceleratorTopologyHealth + * @property {google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState|null} [acceleratorTopologyState] InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo acceleratorTopologyState + * @property {string|null} [instancesHealth] InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo instancesHealth + * @property {string|null} [parent] InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo parent */ /** @@ -923033,6 +930790,30 @@ */ InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.prototype.acceleratorTopologyHealth = null; + /** + * InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo acceleratorTopologyState. + * @member {google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState|null|undefined} acceleratorTopologyState + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @instance + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.prototype.acceleratorTopologyState = null; + + /** + * InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo instancesHealth. + * @member {string|null|undefined} instancesHealth + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @instance + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.prototype.instancesHealth = null; + + /** + * InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo parent. + * @member {string|null|undefined} parent + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @instance + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.prototype.parent = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -923048,6 +930829,24 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.prototype, "_acceleratorTopologyState", { + get: $util.oneOfGetter($oneOfFields = ["acceleratorTopologyState"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.prototype, "_instancesHealth", { + get: $util.oneOfGetter($oneOfFields = ["instancesHealth"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.prototype, "_parent", { + get: $util.oneOfGetter($oneOfFields = ["parent"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo instance using the specified properties. * @function create @@ -923072,6 +930871,12 @@ InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 78317738, wireType 2 =*/626541906).string(message.parent); + if (message.instancesHealth != null && Object.hasOwnProperty.call(message, "instancesHealth")) + writer.uint32(/* id 165893949, wireType 2 =*/1327151594).string(message.instancesHealth); + if (message.acceleratorTopologyState != null && Object.hasOwnProperty.call(message, "acceleratorTopologyState")) + $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.encode(message.acceleratorTopologyState, writer.uint32(/* id 228860693, wireType 2 =*/1830885546).fork()).ldelim(); if (message.acceleratorTopologyHealth != null && Object.hasOwnProperty.call(message, "acceleratorTopologyHealth")) writer.uint32(/* id 323449944, wireType 2 =*/2587599554).string(message.acceleratorTopologyHealth); if (message.acceleratorTopology != null && Object.hasOwnProperty.call(message, "acceleratorTopology")) @@ -923120,6 +930925,18 @@ message.acceleratorTopologyHealth = reader.string(); break; } + case 228860693: { + message.acceleratorTopologyState = $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.decode(reader, reader.uint32()); + break; + } + case 165893949: { + message.instancesHealth = reader.string(); + break; + } + case 78317738: { + message.parent = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -923166,6 +930983,24 @@ if (!$util.isString(message.acceleratorTopologyHealth)) return "acceleratorTopologyHealth: string expected"; } + if (message.acceleratorTopologyState != null && message.hasOwnProperty("acceleratorTopologyState")) { + properties._acceleratorTopologyState = 1; + { + var error = $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.verify(message.acceleratorTopologyState); + if (error) + return "acceleratorTopologyState." + error; + } + } + if (message.instancesHealth != null && message.hasOwnProperty("instancesHealth")) { + properties._instancesHealth = 1; + if (!$util.isString(message.instancesHealth)) + return "instancesHealth: string expected"; + } + if (message.parent != null && message.hasOwnProperty("parent")) { + properties._parent = 1; + if (!$util.isString(message.parent)) + return "parent: string expected"; + } return null; }; @@ -923185,6 +931020,15 @@ message.acceleratorTopology = String(object.acceleratorTopology); if (object.acceleratorTopologyHealth != null) message.acceleratorTopologyHealth = String(object.acceleratorTopologyHealth); + if (object.acceleratorTopologyState != null) { + if (typeof object.acceleratorTopologyState !== "object") + throw TypeError(".google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.acceleratorTopologyState: object expected"); + message.acceleratorTopologyState = $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.fromObject(object.acceleratorTopologyState); + } + if (object.instancesHealth != null) + message.instancesHealth = String(object.instancesHealth); + if (object.parent != null) + message.parent = String(object.parent); return message; }; @@ -923201,6 +931045,21 @@ if (!options) options = {}; var object = {}; + if (message.parent != null && message.hasOwnProperty("parent")) { + object.parent = message.parent; + if (options.oneofs) + object._parent = "parent"; + } + if (message.instancesHealth != null && message.hasOwnProperty("instancesHealth")) { + object.instancesHealth = message.instancesHealth; + if (options.oneofs) + object._instancesHealth = "instancesHealth"; + } + if (message.acceleratorTopologyState != null && message.hasOwnProperty("acceleratorTopologyState")) { + object.acceleratorTopologyState = $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.toObject(message.acceleratorTopologyState, options); + if (options.oneofs) + object._acceleratorTopologyState = "acceleratorTopologyState"; + } if (message.acceleratorTopologyHealth != null && message.hasOwnProperty("acceleratorTopologyHealth")) { object.acceleratorTopologyHealth = message.acceleratorTopologyHealth; if (options.oneofs) @@ -923248,6 +931107,7 @@ * @property {number} DEGRADED=396890926 DEGRADED value * @property {number} HEALTHY=439801213 HEALTHY value * @property {number} UNHEALTHY=462118084 UNHEALTHY value + * @property {number} UNKNOWN=433141802 UNKNOWN value */ InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.AcceleratorTopologyHealth = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -923255,12 +931115,345 @@ values[valuesById[396890926] = "DEGRADED"] = 396890926; values[valuesById[439801213] = "HEALTHY"] = 439801213; values[valuesById[462118084] = "UNHEALTHY"] = 462118084; + values[valuesById[433141802] = "UNKNOWN"] = 433141802; + return values; + })(); + + /** + * InstancesHealth enum. + * @name google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.InstancesHealth + * @enum {number} + * @property {number} UNDEFINED_INSTANCES_HEALTH=0 UNDEFINED_INSTANCES_HEALTH value + * @property {number} ALL_HEALTHY=519465151 ALL_HEALTHY value + * @property {number} UNHEALTHY_OR_MISSING=59982149 UNHEALTHY_OR_MISSING value + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.InstancesHealth = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_INSTANCES_HEALTH"] = 0; + values[valuesById[519465151] = "ALL_HEALTHY"] = 519465151; + values[valuesById[59982149] = "UNHEALTHY_OR_MISSING"] = 59982149; return values; })(); return InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo; })(); + v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState = (function() { + + /** + * Properties of an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState. + * @memberof google.cloud.compute.v1beta + * @interface IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @property {string|null} [currentState] InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState currentState + * @property {google.cloud.compute.v1beta.IError|null} [error] InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState error + * @property {string|null} [errorTimestamp] InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState errorTimestamp + */ + + /** + * Constructs a new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState. + * @implements IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @constructor + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState=} [properties] Properties to set + */ + function InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState currentState. + * @member {string|null|undefined} currentState + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @instance + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.prototype.currentState = null; + + /** + * InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState error. + * @member {google.cloud.compute.v1beta.IError|null|undefined} error + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @instance + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.prototype.error = null; + + /** + * InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState errorTimestamp. + * @member {string|null|undefined} errorTimestamp + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @instance + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.prototype.errorTimestamp = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.prototype, "_currentState", { + get: $util.oneOfGetter($oneOfFields = ["currentState"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.prototype, "_error", { + get: $util.oneOfGetter($oneOfFields = ["error"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.prototype, "_errorTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["errorTimestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState} InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState instance + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.create = function create(properties) { + return new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState(properties); + }; + + /** + * Encodes the specified InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState message. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState} message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.cloud.compute.v1beta.Error.encode(message.error, writer.uint32(/* id 96784904, wireType 2 =*/774279234).fork()).ldelim(); + if (message.errorTimestamp != null && Object.hasOwnProperty.call(message, "errorTimestamp")) + writer.uint32(/* id 219548575, wireType 2 =*/1756388602).string(message.errorTimestamp); + if (message.currentState != null && Object.hasOwnProperty.call(message, "currentState")) + writer.uint32(/* id 438511179, wireType 2 =*/3508089434).string(message.currentState); + return writer; + }; + + /** + * Encodes the specified InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState} message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState} InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 438511179: { + message.currentState = reader.string(); + break; + } + case 96784904: { + message.error = $root.google.cloud.compute.v1beta.Error.decode(reader, reader.uint32()); + break; + } + case 219548575: { + message.errorTimestamp = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState} InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState message. + * @function verify + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.currentState != null && message.hasOwnProperty("currentState")) { + properties._currentState = 1; + if (!$util.isString(message.currentState)) + return "currentState: string expected"; + } + if (message.error != null && message.hasOwnProperty("error")) { + properties._error = 1; + { + var error = $root.google.cloud.compute.v1beta.Error.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.errorTimestamp != null && message.hasOwnProperty("errorTimestamp")) { + properties._errorTimestamp = 1; + if (!$util.isString(message.errorTimestamp)) + return "errorTimestamp: string expected"; + } + return null; + }; + + /** + * Creates an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState} InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState) + return object; + var message = new $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState(); + if (object.currentState != null) + message.currentState = String(object.currentState); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.error: object expected"); + message.error = $root.google.cloud.compute.v1beta.Error.fromObject(object.error); + } + if (object.errorTimestamp != null) + message.errorTimestamp = String(object.errorTimestamp); + return message; + }; + + /** + * Creates a plain object from an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @static + * @param {google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState} message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.error != null && message.hasOwnProperty("error")) { + object.error = $root.google.cloud.compute.v1beta.Error.toObject(message.error, options); + if (options.oneofs) + object._error = "error"; + } + if (message.errorTimestamp != null && message.hasOwnProperty("errorTimestamp")) { + object.errorTimestamp = message.errorTimestamp; + if (options.oneofs) + object._errorTimestamp = "errorTimestamp"; + } + if (message.currentState != null && message.hasOwnProperty("currentState")) { + object.currentState = message.currentState; + if (options.oneofs) + object._currentState = "currentState"; + } + return object; + }; + + /** + * Converts this InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @instance + * @returns {Object.} JSON object + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState"; + }; + + /** + * CurrentState enum. + * @name google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.CurrentState + * @enum {number} + * @property {number} UNDEFINED_CURRENT_STATE=0 UNDEFINED_CURRENT_STATE value + * @property {number} ACTIVATING=378825968 ACTIVATING value + * @property {number} ACTIVE=314733318 ACTIVE value + * @property {number} ACTIVE_DEGRADED=471128135 ACTIVE_DEGRADED value + * @property {number} DEACTIVATING=57182257 DEACTIVATING value + * @property {number} FAILED=455706685 FAILED value + * @property {number} INACTIVE=270421099 INACTIVE value + * @property {number} INCOMPLETE=11941214 INCOMPLETE value + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.CurrentState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_CURRENT_STATE"] = 0; + values[valuesById[378825968] = "ACTIVATING"] = 378825968; + values[valuesById[314733318] = "ACTIVE"] = 314733318; + values[valuesById[471128135] = "ACTIVE_DEGRADED"] = 471128135; + values[valuesById[57182257] = "DEACTIVATING"] = 57182257; + values[valuesById[455706685] = "FAILED"] = 455706685; + values[valuesById[270421099] = "INACTIVE"] = 270421099; + values[valuesById[11941214] = "INCOMPLETE"] = 11941214; + return values; + })(); + + return InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState; + })(); + v1beta.InstanceGroupManagersListErrorsResponse = (function() { /** @@ -930805,6 +938998,7 @@ * @property {google.cloud.compute.v1beta.IShieldedInstanceConfig|null} [shieldedInstanceConfig] InstanceProperties shieldedInstanceConfig * @property {google.cloud.compute.v1beta.IShieldedVmConfig|null} [shieldedVmConfig] InstanceProperties shieldedVmConfig * @property {google.cloud.compute.v1beta.ITags|null} [tags] InstanceProperties tags + * @property {google.cloud.compute.v1beta.IWorkloadIdentityConfig|null} [workloadIdentityConfig] InstanceProperties workloadIdentityConfig */ /** @@ -931030,6 +939224,14 @@ */ InstanceProperties.prototype.tags = null; + /** + * InstanceProperties workloadIdentityConfig. + * @member {google.cloud.compute.v1beta.IWorkloadIdentityConfig|null|undefined} workloadIdentityConfig + * @memberof google.cloud.compute.v1beta.InstanceProperties + * @instance + */ + InstanceProperties.prototype.workloadIdentityConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -931135,6 +939337,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceProperties.prototype, "_workloadIdentityConfig", { + get: $util.oneOfGetter($oneOfFields = ["workloadIdentityConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new InstanceProperties instance using the specified properties. * @function create @@ -931196,6 +939404,8 @@ $root.google.cloud.compute.v1beta.ServiceAccount.encode(message.serviceAccounts[i], writer.uint32(/* id 277537328, wireType 2 =*/2220298626).fork()).ldelim(); if (message.postKeyRevocationActionType != null && Object.hasOwnProperty.call(message, "postKeyRevocationActionType")) writer.uint32(/* id 292972897, wireType 2 =*/2343783178).string(message.postKeyRevocationActionType); + if (message.workloadIdentityConfig != null && Object.hasOwnProperty.call(message, "workloadIdentityConfig")) + $root.google.cloud.compute.v1beta.WorkloadIdentityConfig.encode(message.workloadIdentityConfig, writer.uint32(/* id 338198811, wireType 2 =*/2705590490).fork()).ldelim(); if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) for (var keys = Object.keys(message.resourceManagerTags), i = 0; i < keys.length; ++i) writer.uint32(/* id 377671164, wireType 2 =*/3021369314).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceManagerTags[keys[i]]).ldelim(); @@ -931422,6 +939632,10 @@ message.tags = $root.google.cloud.compute.v1beta.Tags.decode(reader, reader.uint32()); break; } + case 338198811: { + message.workloadIdentityConfig = $root.google.cloud.compute.v1beta.WorkloadIdentityConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -931642,6 +939856,14 @@ return "tags." + error; } } + if (message.workloadIdentityConfig != null && message.hasOwnProperty("workloadIdentityConfig")) { + properties._workloadIdentityConfig = 1; + { + var error = $root.google.cloud.compute.v1beta.WorkloadIdentityConfig.verify(message.workloadIdentityConfig); + if (error) + return "workloadIdentityConfig." + error; + } + } return null; }; @@ -931792,6 +940014,11 @@ throw TypeError(".google.cloud.compute.v1beta.InstanceProperties.tags: object expected"); message.tags = $root.google.cloud.compute.v1beta.Tags.fromObject(object.tags); } + if (object.workloadIdentityConfig != null) { + if (typeof object.workloadIdentityConfig !== "object") + throw TypeError(".google.cloud.compute.v1beta.InstanceProperties.workloadIdentityConfig: object expected"); + message.workloadIdentityConfig = $root.google.cloud.compute.v1beta.WorkloadIdentityConfig.fromObject(object.workloadIdentityConfig); + } return message; }; @@ -931896,6 +940123,11 @@ if (options.oneofs) object._postKeyRevocationActionType = "postKeyRevocationActionType"; } + if (message.workloadIdentityConfig != null && message.hasOwnProperty("workloadIdentityConfig")) { + object.workloadIdentityConfig = $root.google.cloud.compute.v1beta.WorkloadIdentityConfig.toObject(message.workloadIdentityConfig, options); + if (options.oneofs) + object._workloadIdentityConfig = "workloadIdentityConfig"; + } if (message.resourceManagerTags && (keys2 = Object.keys(message.resourceManagerTags)).length) { object.resourceManagerTags = {}; for (var j = 0; j < keys2.length; ++j) @@ -937385,6 +945617,7 @@ * @enum {number} * @property {number} UNDEFINED_BEHAVIOR=0 UNDEFINED_BEHAVIOR value * @property {number} BEHAVIOR_UNSPECIFIED=85734570 BEHAVIOR_UNSPECIFIED value + * @property {number} CHIP_ERROR=263151669 CHIP_ERROR value * @property {number} PERFORMANCE=135701520 PERFORMANCE value * @property {number} SILENT_DATA_CORRUPTION=111360678 SILENT_DATA_CORRUPTION value * @property {number} UNRECOVERABLE_GPU_ERROR=363710747 UNRECOVERABLE_GPU_ERROR value @@ -937393,6 +945626,7 @@ var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_BEHAVIOR"] = 0; values[valuesById[85734570] = "BEHAVIOR_UNSPECIFIED"] = 85734570; + values[valuesById[263151669] = "CHIP_ERROR"] = 263151669; values[valuesById[135701520] = "PERFORMANCE"] = 135701520; values[valuesById[111360678] = "SILENT_DATA_CORRUPTION"] = 111360678; values[valuesById[363710747] = "UNRECOVERABLE_GPU_ERROR"] = 363710747; @@ -939887,6 +948121,7 @@ * @property {string|null} [labelFingerprint] InstantSnapshot labelFingerprint * @property {Object.|null} [labels] InstantSnapshot labels * @property {string|null} [name] InstantSnapshot name + * @property {google.cloud.compute.v1beta.IInstantSnapshotParams|null} [params] InstantSnapshot params * @property {string|null} [region] InstantSnapshot region * @property {google.cloud.compute.v1beta.IInstantSnapshotResourceStatus|null} [resourceStatus] InstantSnapshot resourceStatus * @property {boolean|null} [satisfiesPzi] InstantSnapshot satisfiesPzi @@ -939895,6 +948130,8 @@ * @property {string|null} [selfLinkWithId] InstantSnapshot selfLinkWithId * @property {string|null} [sourceDisk] InstantSnapshot sourceDisk * @property {string|null} [sourceDiskId] InstantSnapshot sourceDiskId + * @property {string|null} [sourceInstantSnapshotGroup] InstantSnapshot sourceInstantSnapshotGroup + * @property {string|null} [sourceInstantSnapshotGroupId] InstantSnapshot sourceInstantSnapshotGroupId * @property {string|null} [status] InstantSnapshot status * @property {string|null} [zone] InstantSnapshot zone */ @@ -939987,6 +948224,14 @@ */ InstantSnapshot.prototype.name = null; + /** + * InstantSnapshot params. + * @member {google.cloud.compute.v1beta.IInstantSnapshotParams|null|undefined} params + * @memberof google.cloud.compute.v1beta.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.params = null; + /** * InstantSnapshot region. * @member {string|null|undefined} region @@ -940051,6 +948296,22 @@ */ InstantSnapshot.prototype.sourceDiskId = null; + /** + * InstantSnapshot sourceInstantSnapshotGroup. + * @member {string|null|undefined} sourceInstantSnapshotGroup + * @memberof google.cloud.compute.v1beta.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.sourceInstantSnapshotGroup = null; + + /** + * InstantSnapshot sourceInstantSnapshotGroupId. + * @member {string|null|undefined} sourceInstantSnapshotGroupId + * @memberof google.cloud.compute.v1beta.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.sourceInstantSnapshotGroupId = null; + /** * InstantSnapshot status. * @member {string|null|undefined} status @@ -940118,6 +948379,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshot.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(InstantSnapshot.prototype, "_region", { get: $util.oneOfGetter($oneOfFields = ["region"]), @@ -940166,6 +948433,18 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshot.prototype, "_sourceInstantSnapshotGroup", { + get: $util.oneOfGetter($oneOfFields = ["sourceInstantSnapshotGroup"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshot.prototype, "_sourceInstantSnapshotGroupId", { + get: $util.oneOfGetter($oneOfFields = ["sourceInstantSnapshotGroupId"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(InstantSnapshot.prototype, "_status", { get: $util.oneOfGetter($oneOfFields = ["status"]), @@ -940214,8 +948493,12 @@ writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); if (message.selfLinkWithId != null && Object.hasOwnProperty.call(message, "selfLinkWithId")) writer.uint32(/* id 44520962, wireType 2 =*/356167698).string(message.selfLinkWithId); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1beta.InstantSnapshotParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.sourceInstantSnapshotGroupId != null && Object.hasOwnProperty.call(message, "sourceInstantSnapshotGroupId")) + writer.uint32(/* id 167103732, wireType 2 =*/1336829858).string(message.sourceInstantSnapshotGroupId); if (message.labelFingerprint != null && Object.hasOwnProperty.call(message, "labelFingerprint")) writer.uint32(/* id 178124825, wireType 2 =*/1424998602).string(message.labelFingerprint); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -940241,6 +948524,8 @@ if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) writer.uint32(/* id 500195327, wireType 2 =*/4001562618).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.sourceInstantSnapshotGroup != null && Object.hasOwnProperty.call(message, "sourceInstantSnapshotGroup")) + writer.uint32(/* id 525991686, wireType 2 =*/4207933490).string(message.sourceInstantSnapshotGroup); return writer; }; @@ -940332,6 +948617,10 @@ message.name = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1beta.InstantSnapshotParams.decode(reader, reader.uint32()); + break; + } case 138946292: { message.region = reader.string(); break; @@ -940364,6 +948653,14 @@ message.sourceDiskId = reader.string(); break; } + case 525991686: { + message.sourceInstantSnapshotGroup = reader.string(); + break; + } + case 167103732: { + message.sourceInstantSnapshotGroupId = reader.string(); + break; + } case 181260274: { message.status = reader.string(); break; @@ -940456,6 +948753,14 @@ if (!$util.isString(message.name)) return "name: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1beta.InstantSnapshotParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.region != null && message.hasOwnProperty("region")) { properties._region = 1; if (!$util.isString(message.region)) @@ -940499,6 +948804,16 @@ if (!$util.isString(message.sourceDiskId)) return "sourceDiskId: string expected"; } + if (message.sourceInstantSnapshotGroup != null && message.hasOwnProperty("sourceInstantSnapshotGroup")) { + properties._sourceInstantSnapshotGroup = 1; + if (!$util.isString(message.sourceInstantSnapshotGroup)) + return "sourceInstantSnapshotGroup: string expected"; + } + if (message.sourceInstantSnapshotGroupId != null && message.hasOwnProperty("sourceInstantSnapshotGroupId")) { + properties._sourceInstantSnapshotGroupId = 1; + if (!$util.isString(message.sourceInstantSnapshotGroupId)) + return "sourceInstantSnapshotGroupId: string expected"; + } if (message.status != null && message.hasOwnProperty("status")) { properties._status = 1; if (!$util.isString(message.status)) @@ -940561,6 +948876,11 @@ } if (object.name != null) message.name = String(object.name); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1beta.InstantSnapshot.params: object expected"); + message.params = $root.google.cloud.compute.v1beta.InstantSnapshotParams.fromObject(object.params); + } if (object.region != null) message.region = String(object.region); if (object.resourceStatus != null) { @@ -940580,6 +948900,10 @@ message.sourceDisk = String(object.sourceDisk); if (object.sourceDiskId != null) message.sourceDiskId = String(object.sourceDiskId); + if (object.sourceInstantSnapshotGroup != null) + message.sourceInstantSnapshotGroup = String(object.sourceInstantSnapshotGroup); + if (object.sourceInstantSnapshotGroupId != null) + message.sourceInstantSnapshotGroupId = String(object.sourceInstantSnapshotGroupId); if (object.status != null) message.status = String(object.status); if (object.zone != null) @@ -940635,11 +948959,21 @@ if (options.oneofs) object._selfLinkWithId = "selfLinkWithId"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1beta.InstantSnapshotParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } if (message.region != null && message.hasOwnProperty("region")) { object.region = message.region; if (options.oneofs) object._region = "region"; } + if (message.sourceInstantSnapshotGroupId != null && message.hasOwnProperty("sourceInstantSnapshotGroupId")) { + object.sourceInstantSnapshotGroupId = message.sourceInstantSnapshotGroupId; + if (options.oneofs) + object._sourceInstantSnapshotGroupId = "sourceInstantSnapshotGroupId"; + } if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) { object.labelFingerprint = message.labelFingerprint; if (options.oneofs) @@ -940704,6 +949038,11 @@ for (var j = 0; j < keys2.length; ++j) object.labels[keys2[j]] = message.labels[keys2[j]]; } + if (message.sourceInstantSnapshotGroup != null && message.hasOwnProperty("sourceInstantSnapshotGroup")) { + object.sourceInstantSnapshotGroup = message.sourceInstantSnapshotGroup; + if (options.oneofs) + object._sourceInstantSnapshotGroup = "sourceInstantSnapshotGroup"; + } return object; }; @@ -941238,6 +949577,1353 @@ return InstantSnapshotAggregatedList; })(); + v1beta.InstantSnapshotGroup = (function() { + + /** + * Properties of an InstantSnapshotGroup. + * @memberof google.cloud.compute.v1beta + * @interface IInstantSnapshotGroup + * @property {string|null} [creationTimestamp] InstantSnapshotGroup creationTimestamp + * @property {string|null} [description] InstantSnapshotGroup description + * @property {number|Long|null} [id] InstantSnapshotGroup id + * @property {string|null} [kind] InstantSnapshotGroup kind + * @property {string|null} [name] InstantSnapshotGroup name + * @property {string|null} [region] InstantSnapshotGroup region + * @property {google.cloud.compute.v1beta.IInstantSnapshotGroupResourceStatus|null} [resourceStatus] InstantSnapshotGroup resourceStatus + * @property {string|null} [selfLink] InstantSnapshotGroup selfLink + * @property {string|null} [selfLinkWithId] InstantSnapshotGroup selfLinkWithId + * @property {string|null} [sourceConsistencyGroup] InstantSnapshotGroup sourceConsistencyGroup + * @property {string|null} [status] InstantSnapshotGroup status + * @property {string|null} [zone] InstantSnapshotGroup zone + */ + + /** + * Constructs a new InstantSnapshotGroup. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InstantSnapshotGroup. + * @implements IInstantSnapshotGroup + * @constructor + * @param {google.cloud.compute.v1beta.IInstantSnapshotGroup=} [properties] Properties to set + */ + function InstantSnapshotGroup(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstantSnapshotGroup creationTimestamp. + * @member {string|null|undefined} creationTimestamp + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.creationTimestamp = null; + + /** + * InstantSnapshotGroup description. + * @member {string|null|undefined} description + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.description = null; + + /** + * InstantSnapshotGroup id. + * @member {number|Long|null|undefined} id + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.id = null; + + /** + * InstantSnapshotGroup kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.kind = null; + + /** + * InstantSnapshotGroup name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.name = null; + + /** + * InstantSnapshotGroup region. + * @member {string|null|undefined} region + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.region = null; + + /** + * InstantSnapshotGroup resourceStatus. + * @member {google.cloud.compute.v1beta.IInstantSnapshotGroupResourceStatus|null|undefined} resourceStatus + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.resourceStatus = null; + + /** + * InstantSnapshotGroup selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.selfLink = null; + + /** + * InstantSnapshotGroup selfLinkWithId. + * @member {string|null|undefined} selfLinkWithId + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.selfLinkWithId = null; + + /** + * InstantSnapshotGroup sourceConsistencyGroup. + * @member {string|null|undefined} sourceConsistencyGroup + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.sourceConsistencyGroup = null; + + /** + * InstantSnapshotGroup status. + * @member {string|null|undefined} status + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.status = null; + + /** + * InstantSnapshotGroup zone. + * @member {string|null|undefined} zone + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.zone = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_creationTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_description", { + get: $util.oneOfGetter($oneOfFields = ["description"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_region", { + get: $util.oneOfGetter($oneOfFields = ["region"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_resourceStatus", { + get: $util.oneOfGetter($oneOfFields = ["resourceStatus"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_selfLinkWithId", { + get: $util.oneOfGetter($oneOfFields = ["selfLinkWithId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_sourceConsistencyGroup", { + get: $util.oneOfGetter($oneOfFields = ["sourceConsistencyGroup"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_status", { + get: $util.oneOfGetter($oneOfFields = ["status"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_zone", { + get: $util.oneOfGetter($oneOfFields = ["zone"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstantSnapshotGroup instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @static + * @param {google.cloud.compute.v1beta.IInstantSnapshotGroup=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InstantSnapshotGroup} InstantSnapshotGroup instance + */ + InstantSnapshotGroup.create = function create(properties) { + return new InstantSnapshotGroup(properties); + }; + + /** + * Encodes the specified InstantSnapshotGroup message. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotGroup.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @static + * @param {google.cloud.compute.v1beta.IInstantSnapshotGroup} message InstantSnapshotGroup message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotGroup.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 0 =*/26840).uint64(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) + writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.selfLinkWithId != null && Object.hasOwnProperty.call(message, "selfLinkWithId")) + writer.uint32(/* id 44520962, wireType 2 =*/356167698).string(message.selfLinkWithId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 181260274, wireType 2 =*/1450082194).string(message.status); + if (message.resourceStatus != null && Object.hasOwnProperty.call(message, "resourceStatus")) + $root.google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus.encode(message.resourceStatus, writer.uint32(/* id 249429315, wireType 2 =*/1995434522).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + if (message.sourceConsistencyGroup != null && Object.hasOwnProperty.call(message, "sourceConsistencyGroup")) + writer.uint32(/* id 531359348, wireType 2 =*/4250874786).string(message.sourceConsistencyGroup); + return writer; + }; + + /** + * Encodes the specified InstantSnapshotGroup message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotGroup.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @static + * @param {google.cloud.compute.v1beta.IInstantSnapshotGroup} message InstantSnapshotGroup message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotGroup.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstantSnapshotGroup message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InstantSnapshotGroup} InstantSnapshotGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotGroup.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InstantSnapshotGroup(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 30525366: { + message.creationTimestamp = reader.string(); + break; + } + case 422937596: { + message.description = reader.string(); + break; + } + case 3355: { + message.id = reader.uint64(); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 3373707: { + message.name = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 249429315: { + message.resourceStatus = $root.google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus.decode(reader, reader.uint32()); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 44520962: { + message.selfLinkWithId = reader.string(); + break; + } + case 531359348: { + message.sourceConsistencyGroup = reader.string(); + break; + } + case 181260274: { + message.status = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstantSnapshotGroup message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InstantSnapshotGroup} InstantSnapshotGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotGroup.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstantSnapshotGroup message. + * @function verify + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstantSnapshotGroup.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + properties._creationTimestamp = 1; + if (!$util.isString(message.creationTimestamp)) + return "creationTimestamp: string expected"; + } + if (message.description != null && message.hasOwnProperty("description")) { + properties._description = 1; + if (!$util.isString(message.description)) + return "description: string expected"; + } + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.name != null && message.hasOwnProperty("name")) { + properties._name = 1; + if (!$util.isString(message.name)) + return "name: string expected"; + } + if (message.region != null && message.hasOwnProperty("region")) { + properties._region = 1; + if (!$util.isString(message.region)) + return "region: string expected"; + } + if (message.resourceStatus != null && message.hasOwnProperty("resourceStatus")) { + properties._resourceStatus = 1; + { + var error = $root.google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus.verify(message.resourceStatus); + if (error) + return "resourceStatus." + error; + } + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + properties._selfLinkWithId = 1; + if (!$util.isString(message.selfLinkWithId)) + return "selfLinkWithId: string expected"; + } + if (message.sourceConsistencyGroup != null && message.hasOwnProperty("sourceConsistencyGroup")) { + properties._sourceConsistencyGroup = 1; + if (!$util.isString(message.sourceConsistencyGroup)) + return "sourceConsistencyGroup: string expected"; + } + if (message.status != null && message.hasOwnProperty("status")) { + properties._status = 1; + if (!$util.isString(message.status)) + return "status: string expected"; + } + if (message.zone != null && message.hasOwnProperty("zone")) { + properties._zone = 1; + if (!$util.isString(message.zone)) + return "zone: string expected"; + } + return null; + }; + + /** + * Creates an InstantSnapshotGroup message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InstantSnapshotGroup} InstantSnapshotGroup + */ + InstantSnapshotGroup.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InstantSnapshotGroup) + return object; + var message = new $root.google.cloud.compute.v1beta.InstantSnapshotGroup(); + if (object.creationTimestamp != null) + message.creationTimestamp = String(object.creationTimestamp); + if (object.description != null) + message.description = String(object.description); + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = true; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + message.id = object.id; + else if (typeof object.id === "object") + message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true); + if (object.kind != null) + message.kind = String(object.kind); + if (object.name != null) + message.name = String(object.name); + if (object.region != null) + message.region = String(object.region); + if (object.resourceStatus != null) { + if (typeof object.resourceStatus !== "object") + throw TypeError(".google.cloud.compute.v1beta.InstantSnapshotGroup.resourceStatus: object expected"); + message.resourceStatus = $root.google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus.fromObject(object.resourceStatus); + } + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.selfLinkWithId != null) + message.selfLinkWithId = String(object.selfLinkWithId); + if (object.sourceConsistencyGroup != null) + message.sourceConsistencyGroup = String(object.sourceConsistencyGroup); + if (object.status != null) + message.status = String(object.status); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from an InstantSnapshotGroup message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @static + * @param {google.cloud.compute.v1beta.InstantSnapshotGroup} message InstantSnapshotGroup + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstantSnapshotGroup.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.id != null && message.hasOwnProperty("id")) { + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber(true) : message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.name != null && message.hasOwnProperty("name")) { + object.name = message.name; + if (options.oneofs) + object._name = "name"; + } + if (message.zone != null && message.hasOwnProperty("zone")) { + object.zone = message.zone; + if (options.oneofs) + object._zone = "zone"; + } + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + object.creationTimestamp = message.creationTimestamp; + if (options.oneofs) + object._creationTimestamp = "creationTimestamp"; + } + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + object.selfLinkWithId = message.selfLinkWithId; + if (options.oneofs) + object._selfLinkWithId = "selfLinkWithId"; + } + if (message.region != null && message.hasOwnProperty("region")) { + object.region = message.region; + if (options.oneofs) + object._region = "region"; + } + if (message.status != null && message.hasOwnProperty("status")) { + object.status = message.status; + if (options.oneofs) + object._status = "status"; + } + if (message.resourceStatus != null && message.hasOwnProperty("resourceStatus")) { + object.resourceStatus = $root.google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus.toObject(message.resourceStatus, options); + if (options.oneofs) + object._resourceStatus = "resourceStatus"; + } + if (message.description != null && message.hasOwnProperty("description")) { + object.description = message.description; + if (options.oneofs) + object._description = "description"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + if (message.sourceConsistencyGroup != null && message.hasOwnProperty("sourceConsistencyGroup")) { + object.sourceConsistencyGroup = message.sourceConsistencyGroup; + if (options.oneofs) + object._sourceConsistencyGroup = "sourceConsistencyGroup"; + } + return object; + }; + + /** + * Converts this InstantSnapshotGroup to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @instance + * @returns {Object.} JSON object + */ + InstantSnapshotGroup.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstantSnapshotGroup + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroup + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstantSnapshotGroup.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InstantSnapshotGroup"; + }; + + /** + * Status enum. + * @name google.cloud.compute.v1beta.InstantSnapshotGroup.Status + * @enum {number} + * @property {number} UNDEFINED_STATUS=0 UNDEFINED_STATUS value + * @property {number} CREATING=455564985 CREATING value + * @property {number} DELETING=528602024 DELETING value + * @property {number} FAILED=455706685 FAILED value + * @property {number} INVALID=530283991 INVALID value + * @property {number} READY=77848963 READY value + * @property {number} UNKNOWN=433141802 UNKNOWN value + */ + InstantSnapshotGroup.Status = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STATUS"] = 0; + values[valuesById[455564985] = "CREATING"] = 455564985; + values[valuesById[528602024] = "DELETING"] = 528602024; + values[valuesById[455706685] = "FAILED"] = 455706685; + values[valuesById[530283991] = "INVALID"] = 530283991; + values[valuesById[77848963] = "READY"] = 77848963; + values[valuesById[433141802] = "UNKNOWN"] = 433141802; + return values; + })(); + + return InstantSnapshotGroup; + })(); + + v1beta.InstantSnapshotGroupParameters = (function() { + + /** + * Properties of an InstantSnapshotGroupParameters. + * @memberof google.cloud.compute.v1beta + * @interface IInstantSnapshotGroupParameters + * @property {string|null} [sourceInstantSnapshotGroup] InstantSnapshotGroupParameters sourceInstantSnapshotGroup + */ + + /** + * Constructs a new InstantSnapshotGroupParameters. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InstantSnapshotGroupParameters. + * @implements IInstantSnapshotGroupParameters + * @constructor + * @param {google.cloud.compute.v1beta.IInstantSnapshotGroupParameters=} [properties] Properties to set + */ + function InstantSnapshotGroupParameters(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstantSnapshotGroupParameters sourceInstantSnapshotGroup. + * @member {string|null|undefined} sourceInstantSnapshotGroup + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupParameters + * @instance + */ + InstantSnapshotGroupParameters.prototype.sourceInstantSnapshotGroup = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroupParameters.prototype, "_sourceInstantSnapshotGroup", { + get: $util.oneOfGetter($oneOfFields = ["sourceInstantSnapshotGroup"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstantSnapshotGroupParameters instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupParameters + * @static + * @param {google.cloud.compute.v1beta.IInstantSnapshotGroupParameters=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InstantSnapshotGroupParameters} InstantSnapshotGroupParameters instance + */ + InstantSnapshotGroupParameters.create = function create(properties) { + return new InstantSnapshotGroupParameters(properties); + }; + + /** + * Encodes the specified InstantSnapshotGroupParameters message. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotGroupParameters.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupParameters + * @static + * @param {google.cloud.compute.v1beta.IInstantSnapshotGroupParameters} message InstantSnapshotGroupParameters message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotGroupParameters.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sourceInstantSnapshotGroup != null && Object.hasOwnProperty.call(message, "sourceInstantSnapshotGroup")) + writer.uint32(/* id 525991686, wireType 2 =*/4207933490).string(message.sourceInstantSnapshotGroup); + return writer; + }; + + /** + * Encodes the specified InstantSnapshotGroupParameters message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotGroupParameters.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupParameters + * @static + * @param {google.cloud.compute.v1beta.IInstantSnapshotGroupParameters} message InstantSnapshotGroupParameters message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotGroupParameters.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstantSnapshotGroupParameters message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupParameters + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InstantSnapshotGroupParameters} InstantSnapshotGroupParameters + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotGroupParameters.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InstantSnapshotGroupParameters(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 525991686: { + message.sourceInstantSnapshotGroup = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstantSnapshotGroupParameters message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupParameters + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InstantSnapshotGroupParameters} InstantSnapshotGroupParameters + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotGroupParameters.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstantSnapshotGroupParameters message. + * @function verify + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupParameters + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstantSnapshotGroupParameters.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.sourceInstantSnapshotGroup != null && message.hasOwnProperty("sourceInstantSnapshotGroup")) { + properties._sourceInstantSnapshotGroup = 1; + if (!$util.isString(message.sourceInstantSnapshotGroup)) + return "sourceInstantSnapshotGroup: string expected"; + } + return null; + }; + + /** + * Creates an InstantSnapshotGroupParameters message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupParameters + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InstantSnapshotGroupParameters} InstantSnapshotGroupParameters + */ + InstantSnapshotGroupParameters.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InstantSnapshotGroupParameters) + return object; + var message = new $root.google.cloud.compute.v1beta.InstantSnapshotGroupParameters(); + if (object.sourceInstantSnapshotGroup != null) + message.sourceInstantSnapshotGroup = String(object.sourceInstantSnapshotGroup); + return message; + }; + + /** + * Creates a plain object from an InstantSnapshotGroupParameters message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupParameters + * @static + * @param {google.cloud.compute.v1beta.InstantSnapshotGroupParameters} message InstantSnapshotGroupParameters + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstantSnapshotGroupParameters.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.sourceInstantSnapshotGroup != null && message.hasOwnProperty("sourceInstantSnapshotGroup")) { + object.sourceInstantSnapshotGroup = message.sourceInstantSnapshotGroup; + if (options.oneofs) + object._sourceInstantSnapshotGroup = "sourceInstantSnapshotGroup"; + } + return object; + }; + + /** + * Converts this InstantSnapshotGroupParameters to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupParameters + * @instance + * @returns {Object.} JSON object + */ + InstantSnapshotGroupParameters.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstantSnapshotGroupParameters + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupParameters + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstantSnapshotGroupParameters.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InstantSnapshotGroupParameters"; + }; + + return InstantSnapshotGroupParameters; + })(); + + v1beta.InstantSnapshotGroupResourceStatus = (function() { + + /** + * Properties of an InstantSnapshotGroupResourceStatus. + * @memberof google.cloud.compute.v1beta + * @interface IInstantSnapshotGroupResourceStatus + * @property {string|null} [consistencyMembershipResolutionTime] InstantSnapshotGroupResourceStatus consistencyMembershipResolutionTime + * @property {google.cloud.compute.v1beta.IInstantSnapshotGroupSourceInfo|null} [sourceInfo] InstantSnapshotGroupResourceStatus sourceInfo + */ + + /** + * Constructs a new InstantSnapshotGroupResourceStatus. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InstantSnapshotGroupResourceStatus. + * @implements IInstantSnapshotGroupResourceStatus + * @constructor + * @param {google.cloud.compute.v1beta.IInstantSnapshotGroupResourceStatus=} [properties] Properties to set + */ + function InstantSnapshotGroupResourceStatus(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstantSnapshotGroupResourceStatus consistencyMembershipResolutionTime. + * @member {string|null|undefined} consistencyMembershipResolutionTime + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus + * @instance + */ + InstantSnapshotGroupResourceStatus.prototype.consistencyMembershipResolutionTime = null; + + /** + * InstantSnapshotGroupResourceStatus sourceInfo. + * @member {google.cloud.compute.v1beta.IInstantSnapshotGroupSourceInfo|null|undefined} sourceInfo + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus + * @instance + */ + InstantSnapshotGroupResourceStatus.prototype.sourceInfo = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroupResourceStatus.prototype, "_consistencyMembershipResolutionTime", { + get: $util.oneOfGetter($oneOfFields = ["consistencyMembershipResolutionTime"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroupResourceStatus.prototype, "_sourceInfo", { + get: $util.oneOfGetter($oneOfFields = ["sourceInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstantSnapshotGroupResourceStatus instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus + * @static + * @param {google.cloud.compute.v1beta.IInstantSnapshotGroupResourceStatus=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus} InstantSnapshotGroupResourceStatus instance + */ + InstantSnapshotGroupResourceStatus.create = function create(properties) { + return new InstantSnapshotGroupResourceStatus(properties); + }; + + /** + * Encodes the specified InstantSnapshotGroupResourceStatus message. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus + * @static + * @param {google.cloud.compute.v1beta.IInstantSnapshotGroupResourceStatus} message InstantSnapshotGroupResourceStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotGroupResourceStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.consistencyMembershipResolutionTime != null && Object.hasOwnProperty.call(message, "consistencyMembershipResolutionTime")) + writer.uint32(/* id 346675870, wireType 2 =*/2773406962).string(message.consistencyMembershipResolutionTime); + if (message.sourceInfo != null && Object.hasOwnProperty.call(message, "sourceInfo")) + $root.google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo.encode(message.sourceInfo, writer.uint32(/* id 451907154, wireType 2 =*/3615257234).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InstantSnapshotGroupResourceStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus + * @static + * @param {google.cloud.compute.v1beta.IInstantSnapshotGroupResourceStatus} message InstantSnapshotGroupResourceStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotGroupResourceStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstantSnapshotGroupResourceStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus} InstantSnapshotGroupResourceStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotGroupResourceStatus.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 346675870: { + message.consistencyMembershipResolutionTime = reader.string(); + break; + } + case 451907154: { + message.sourceInfo = $root.google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstantSnapshotGroupResourceStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus} InstantSnapshotGroupResourceStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotGroupResourceStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstantSnapshotGroupResourceStatus message. + * @function verify + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstantSnapshotGroupResourceStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.consistencyMembershipResolutionTime != null && message.hasOwnProperty("consistencyMembershipResolutionTime")) { + properties._consistencyMembershipResolutionTime = 1; + if (!$util.isString(message.consistencyMembershipResolutionTime)) + return "consistencyMembershipResolutionTime: string expected"; + } + if (message.sourceInfo != null && message.hasOwnProperty("sourceInfo")) { + properties._sourceInfo = 1; + { + var error = $root.google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo.verify(message.sourceInfo); + if (error) + return "sourceInfo." + error; + } + } + return null; + }; + + /** + * Creates an InstantSnapshotGroupResourceStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus} InstantSnapshotGroupResourceStatus + */ + InstantSnapshotGroupResourceStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus) + return object; + var message = new $root.google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus(); + if (object.consistencyMembershipResolutionTime != null) + message.consistencyMembershipResolutionTime = String(object.consistencyMembershipResolutionTime); + if (object.sourceInfo != null) { + if (typeof object.sourceInfo !== "object") + throw TypeError(".google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus.sourceInfo: object expected"); + message.sourceInfo = $root.google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo.fromObject(object.sourceInfo); + } + return message; + }; + + /** + * Creates a plain object from an InstantSnapshotGroupResourceStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus + * @static + * @param {google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus} message InstantSnapshotGroupResourceStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstantSnapshotGroupResourceStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.consistencyMembershipResolutionTime != null && message.hasOwnProperty("consistencyMembershipResolutionTime")) { + object.consistencyMembershipResolutionTime = message.consistencyMembershipResolutionTime; + if (options.oneofs) + object._consistencyMembershipResolutionTime = "consistencyMembershipResolutionTime"; + } + if (message.sourceInfo != null && message.hasOwnProperty("sourceInfo")) { + object.sourceInfo = $root.google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo.toObject(message.sourceInfo, options); + if (options.oneofs) + object._sourceInfo = "sourceInfo"; + } + return object; + }; + + /** + * Converts this InstantSnapshotGroupResourceStatus to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus + * @instance + * @returns {Object.} JSON object + */ + InstantSnapshotGroupResourceStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstantSnapshotGroupResourceStatus + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstantSnapshotGroupResourceStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InstantSnapshotGroupResourceStatus"; + }; + + return InstantSnapshotGroupResourceStatus; + })(); + + v1beta.InstantSnapshotGroupSourceInfo = (function() { + + /** + * Properties of an InstantSnapshotGroupSourceInfo. + * @memberof google.cloud.compute.v1beta + * @interface IInstantSnapshotGroupSourceInfo + * @property {string|null} [consistencyGroup] InstantSnapshotGroupSourceInfo consistencyGroup + * @property {string|null} [consistencyGroupId] InstantSnapshotGroupSourceInfo consistencyGroupId + */ + + /** + * Constructs a new InstantSnapshotGroupSourceInfo. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InstantSnapshotGroupSourceInfo. + * @implements IInstantSnapshotGroupSourceInfo + * @constructor + * @param {google.cloud.compute.v1beta.IInstantSnapshotGroupSourceInfo=} [properties] Properties to set + */ + function InstantSnapshotGroupSourceInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstantSnapshotGroupSourceInfo consistencyGroup. + * @member {string|null|undefined} consistencyGroup + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo + * @instance + */ + InstantSnapshotGroupSourceInfo.prototype.consistencyGroup = null; + + /** + * InstantSnapshotGroupSourceInfo consistencyGroupId. + * @member {string|null|undefined} consistencyGroupId + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo + * @instance + */ + InstantSnapshotGroupSourceInfo.prototype.consistencyGroupId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroupSourceInfo.prototype, "_consistencyGroup", { + get: $util.oneOfGetter($oneOfFields = ["consistencyGroup"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroupSourceInfo.prototype, "_consistencyGroupId", { + get: $util.oneOfGetter($oneOfFields = ["consistencyGroupId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstantSnapshotGroupSourceInfo instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo + * @static + * @param {google.cloud.compute.v1beta.IInstantSnapshotGroupSourceInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo} InstantSnapshotGroupSourceInfo instance + */ + InstantSnapshotGroupSourceInfo.create = function create(properties) { + return new InstantSnapshotGroupSourceInfo(properties); + }; + + /** + * Encodes the specified InstantSnapshotGroupSourceInfo message. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo + * @static + * @param {google.cloud.compute.v1beta.IInstantSnapshotGroupSourceInfo} message InstantSnapshotGroupSourceInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotGroupSourceInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.consistencyGroupId != null && Object.hasOwnProperty.call(message, "consistencyGroupId")) + writer.uint32(/* id 85599522, wireType 2 =*/684796178).string(message.consistencyGroupId); + if (message.consistencyGroup != null && Object.hasOwnProperty.call(message, "consistencyGroup")) + writer.uint32(/* id 508183960, wireType 2 =*/4065471682).string(message.consistencyGroup); + return writer; + }; + + /** + * Encodes the specified InstantSnapshotGroupSourceInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo + * @static + * @param {google.cloud.compute.v1beta.IInstantSnapshotGroupSourceInfo} message InstantSnapshotGroupSourceInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotGroupSourceInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstantSnapshotGroupSourceInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo} InstantSnapshotGroupSourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotGroupSourceInfo.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 508183960: { + message.consistencyGroup = reader.string(); + break; + } + case 85599522: { + message.consistencyGroupId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstantSnapshotGroupSourceInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo} InstantSnapshotGroupSourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotGroupSourceInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstantSnapshotGroupSourceInfo message. + * @function verify + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstantSnapshotGroupSourceInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.consistencyGroup != null && message.hasOwnProperty("consistencyGroup")) { + properties._consistencyGroup = 1; + if (!$util.isString(message.consistencyGroup)) + return "consistencyGroup: string expected"; + } + if (message.consistencyGroupId != null && message.hasOwnProperty("consistencyGroupId")) { + properties._consistencyGroupId = 1; + if (!$util.isString(message.consistencyGroupId)) + return "consistencyGroupId: string expected"; + } + return null; + }; + + /** + * Creates an InstantSnapshotGroupSourceInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo} InstantSnapshotGroupSourceInfo + */ + InstantSnapshotGroupSourceInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo) + return object; + var message = new $root.google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo(); + if (object.consistencyGroup != null) + message.consistencyGroup = String(object.consistencyGroup); + if (object.consistencyGroupId != null) + message.consistencyGroupId = String(object.consistencyGroupId); + return message; + }; + + /** + * Creates a plain object from an InstantSnapshotGroupSourceInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo + * @static + * @param {google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo} message InstantSnapshotGroupSourceInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstantSnapshotGroupSourceInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.consistencyGroupId != null && message.hasOwnProperty("consistencyGroupId")) { + object.consistencyGroupId = message.consistencyGroupId; + if (options.oneofs) + object._consistencyGroupId = "consistencyGroupId"; + } + if (message.consistencyGroup != null && message.hasOwnProperty("consistencyGroup")) { + object.consistencyGroup = message.consistencyGroup; + if (options.oneofs) + object._consistencyGroup = "consistencyGroup"; + } + return object; + }; + + /** + * Converts this InstantSnapshotGroupSourceInfo to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo + * @instance + * @returns {Object.} JSON object + */ + InstantSnapshotGroupSourceInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstantSnapshotGroupSourceInfo + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstantSnapshotGroupSourceInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InstantSnapshotGroupSourceInfo"; + }; + + return InstantSnapshotGroupSourceInfo; + })(); + v1beta.InstantSnapshotList = (function() { /** @@ -941639,6 +951325,246 @@ return InstantSnapshotList; })(); + v1beta.InstantSnapshotParams = (function() { + + /** + * Properties of an InstantSnapshotParams. + * @memberof google.cloud.compute.v1beta + * @interface IInstantSnapshotParams + * @property {Object.|null} [resourceManagerTags] InstantSnapshotParams resourceManagerTags + */ + + /** + * Constructs a new InstantSnapshotParams. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InstantSnapshotParams. + * @implements IInstantSnapshotParams + * @constructor + * @param {google.cloud.compute.v1beta.IInstantSnapshotParams=} [properties] Properties to set + */ + function InstantSnapshotParams(properties) { + this.resourceManagerTags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstantSnapshotParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1beta.InstantSnapshotParams + * @instance + */ + InstantSnapshotParams.prototype.resourceManagerTags = $util.emptyObject; + + /** + * Creates a new InstantSnapshotParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InstantSnapshotParams + * @static + * @param {google.cloud.compute.v1beta.IInstantSnapshotParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InstantSnapshotParams} InstantSnapshotParams instance + */ + InstantSnapshotParams.create = function create(properties) { + return new InstantSnapshotParams(properties); + }; + + /** + * Encodes the specified InstantSnapshotParams message. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InstantSnapshotParams + * @static + * @param {google.cloud.compute.v1beta.IInstantSnapshotParams} message InstantSnapshotParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + for (var keys = Object.keys(message.resourceManagerTags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 377671164, wireType 2 =*/3021369314).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceManagerTags[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified InstantSnapshotParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstantSnapshotParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InstantSnapshotParams + * @static + * @param {google.cloud.compute.v1beta.IInstantSnapshotParams} message InstantSnapshotParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstantSnapshotParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InstantSnapshotParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InstantSnapshotParams} InstantSnapshotParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotParams.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InstantSnapshotParams(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 377671164: { + if (message.resourceManagerTags === $util.emptyObject) + message.resourceManagerTags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.resourceManagerTags[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstantSnapshotParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InstantSnapshotParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InstantSnapshotParams} InstantSnapshotParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstantSnapshotParams message. + * @function verify + * @memberof google.cloud.compute.v1beta.InstantSnapshotParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstantSnapshotParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + if (!$util.isObject(message.resourceManagerTags)) + return "resourceManagerTags: object expected"; + var key = Object.keys(message.resourceManagerTags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourceManagerTags[key[i]])) + return "resourceManagerTags: string{k:string} expected"; + } + return null; + }; + + /** + * Creates an InstantSnapshotParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InstantSnapshotParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InstantSnapshotParams} InstantSnapshotParams + */ + InstantSnapshotParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InstantSnapshotParams) + return object; + var message = new $root.google.cloud.compute.v1beta.InstantSnapshotParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1beta.InstantSnapshotParams.resourceManagerTags: object expected"); + message.resourceManagerTags = {}; + for (var keys = Object.keys(object.resourceManagerTags), i = 0; i < keys.length; ++i) + message.resourceManagerTags[keys[i]] = String(object.resourceManagerTags[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from an InstantSnapshotParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InstantSnapshotParams + * @static + * @param {google.cloud.compute.v1beta.InstantSnapshotParams} message InstantSnapshotParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstantSnapshotParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.resourceManagerTags = {}; + var keys2; + if (message.resourceManagerTags && (keys2 = Object.keys(message.resourceManagerTags)).length) { + object.resourceManagerTags = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourceManagerTags[keys2[j]] = message.resourceManagerTags[keys2[j]]; + } + return object; + }; + + /** + * Converts this InstantSnapshotParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InstantSnapshotParams + * @instance + * @returns {Object.} JSON object + */ + InstantSnapshotParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstantSnapshotParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InstantSnapshotParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstantSnapshotParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InstantSnapshotParams"; + }; + + return InstantSnapshotParams; + })(); + v1beta.InstantSnapshotResourceStatus = (function() { /** @@ -988500,6 +998426,878 @@ return ListInstancesRequest; })(); + v1beta.ListInstantSnapshotGroups = (function() { + + /** + * Properties of a ListInstantSnapshotGroups. + * @memberof google.cloud.compute.v1beta + * @interface IListInstantSnapshotGroups + * @property {string|null} [etag] ListInstantSnapshotGroups etag + * @property {string|null} [id] ListInstantSnapshotGroups id + * @property {Array.|null} [items] ListInstantSnapshotGroups items + * @property {string|null} [kind] ListInstantSnapshotGroups kind + * @property {string|null} [nextPageToken] ListInstantSnapshotGroups nextPageToken + * @property {string|null} [selfLink] ListInstantSnapshotGroups selfLink + * @property {Array.|null} [unreachables] ListInstantSnapshotGroups unreachables + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] ListInstantSnapshotGroups warning + */ + + /** + * Constructs a new ListInstantSnapshotGroups. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ListInstantSnapshotGroups. + * @implements IListInstantSnapshotGroups + * @constructor + * @param {google.cloud.compute.v1beta.IListInstantSnapshotGroups=} [properties] Properties to set + */ + function ListInstantSnapshotGroups(properties) { + this.items = []; + this.unreachables = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListInstantSnapshotGroups etag. + * @member {string|null|undefined} etag + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroups + * @instance + */ + ListInstantSnapshotGroups.prototype.etag = null; + + /** + * ListInstantSnapshotGroups id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroups + * @instance + */ + ListInstantSnapshotGroups.prototype.id = null; + + /** + * ListInstantSnapshotGroups items. + * @member {Array.} items + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroups + * @instance + */ + ListInstantSnapshotGroups.prototype.items = $util.emptyArray; + + /** + * ListInstantSnapshotGroups kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroups + * @instance + */ + ListInstantSnapshotGroups.prototype.kind = null; + + /** + * ListInstantSnapshotGroups nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroups + * @instance + */ + ListInstantSnapshotGroups.prototype.nextPageToken = null; + + /** + * ListInstantSnapshotGroups selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroups + * @instance + */ + ListInstantSnapshotGroups.prototype.selfLink = null; + + /** + * ListInstantSnapshotGroups unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroups + * @instance + */ + ListInstantSnapshotGroups.prototype.unreachables = $util.emptyArray; + + /** + * ListInstantSnapshotGroups warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroups + * @instance + */ + ListInstantSnapshotGroups.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroups.prototype, "_etag", { + get: $util.oneOfGetter($oneOfFields = ["etag"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroups.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroups.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroups.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroups.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroups.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListInstantSnapshotGroups instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroups + * @static + * @param {google.cloud.compute.v1beta.IListInstantSnapshotGroups=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListInstantSnapshotGroups} ListInstantSnapshotGroups instance + */ + ListInstantSnapshotGroups.create = function create(properties) { + return new ListInstantSnapshotGroups(properties); + }; + + /** + * Encodes the specified ListInstantSnapshotGroups message. Does not implicitly {@link google.cloud.compute.v1beta.ListInstantSnapshotGroups.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroups + * @static + * @param {google.cloud.compute.v1beta.IListInstantSnapshotGroups} message ListInstantSnapshotGroups message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListInstantSnapshotGroups.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3123477, wireType 2 =*/24987818).string(message.etag); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1beta.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); + if (message.items != null && message.items.length) + for (var i = 0; i < message.items.length; ++i) + $root.google.cloud.compute.v1beta.InstantSnapshotGroup.encode(message.items[i], writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork()).ldelim(); + if (message.unreachables != null && message.unreachables.length) + for (var i = 0; i < message.unreachables.length; ++i) + writer.uint32(/* id 243372063, wireType 2 =*/1946976506).string(message.unreachables[i]); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified ListInstantSnapshotGroups message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListInstantSnapshotGroups.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroups + * @static + * @param {google.cloud.compute.v1beta.IListInstantSnapshotGroups} message ListInstantSnapshotGroups message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListInstantSnapshotGroups.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListInstantSnapshotGroups message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroups + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ListInstantSnapshotGroups} ListInstantSnapshotGroups + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListInstantSnapshotGroups.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListInstantSnapshotGroups(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3123477: { + message.etag = reader.string(); + break; + } + case 3355: { + message.id = reader.string(); + break; + } + case 100526016: { + if (!(message.items && message.items.length)) + message.items = []; + message.items.push($root.google.cloud.compute.v1beta.InstantSnapshotGroup.decode(reader, reader.uint32())); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 79797525: { + message.nextPageToken = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 243372063: { + if (!(message.unreachables && message.unreachables.length)) + message.unreachables = []; + message.unreachables.push(reader.string()); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListInstantSnapshotGroups message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroups + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ListInstantSnapshotGroups} ListInstantSnapshotGroups + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListInstantSnapshotGroups.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListInstantSnapshotGroups message. + * @function verify + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroups + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListInstantSnapshotGroups.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.etag != null && message.hasOwnProperty("etag")) { + properties._etag = 1; + if (!$util.isString(message.etag)) + return "etag: string expected"; + } + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!Array.isArray(message.items)) + return "items: array expected"; + for (var i = 0; i < message.items.length; ++i) { + var error = $root.google.cloud.compute.v1beta.InstantSnapshotGroup.verify(message.items[i]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.unreachables != null && message.hasOwnProperty("unreachables")) { + if (!Array.isArray(message.unreachables)) + return "unreachables: array expected"; + for (var i = 0; i < message.unreachables.length; ++i) + if (!$util.isString(message.unreachables[i])) + return "unreachables: string[] expected"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a ListInstantSnapshotGroups message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroups + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ListInstantSnapshotGroups} ListInstantSnapshotGroups + */ + ListInstantSnapshotGroups.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListInstantSnapshotGroups) + return object; + var message = new $root.google.cloud.compute.v1beta.ListInstantSnapshotGroups(); + if (object.etag != null) + message.etag = String(object.etag); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (!Array.isArray(object.items)) + throw TypeError(".google.cloud.compute.v1beta.ListInstantSnapshotGroups.items: array expected"); + message.items = []; + for (var i = 0; i < object.items.length; ++i) { + if (typeof object.items[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.ListInstantSnapshotGroups.items: object expected"); + message.items[i] = $root.google.cloud.compute.v1beta.InstantSnapshotGroup.fromObject(object.items[i]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.unreachables) { + if (!Array.isArray(object.unreachables)) + throw TypeError(".google.cloud.compute.v1beta.ListInstantSnapshotGroups.unreachables: array expected"); + message.unreachables = []; + for (var i = 0; i < object.unreachables.length; ++i) + message.unreachables[i] = String(object.unreachables[i]); + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1beta.ListInstantSnapshotGroups.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a ListInstantSnapshotGroups message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroups + * @static + * @param {google.cloud.compute.v1beta.ListInstantSnapshotGroups} message ListInstantSnapshotGroups + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListInstantSnapshotGroups.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.items = []; + object.unreachables = []; + } + if (message.id != null && message.hasOwnProperty("id")) { + object.id = message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.etag != null && message.hasOwnProperty("etag")) { + object.etag = message.etag; + if (options.oneofs) + object._etag = "etag"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + if (message.items && message.items.length) { + object.items = []; + for (var j = 0; j < message.items.length; ++j) + object.items[j] = $root.google.cloud.compute.v1beta.InstantSnapshotGroup.toObject(message.items[j], options); + } + if (message.unreachables && message.unreachables.length) { + object.unreachables = []; + for (var j = 0; j < message.unreachables.length; ++j) + object.unreachables[j] = message.unreachables[j]; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this ListInstantSnapshotGroups to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroups + * @instance + * @returns {Object.} JSON object + */ + ListInstantSnapshotGroups.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListInstantSnapshotGroups + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroups + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListInstantSnapshotGroups.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListInstantSnapshotGroups"; + }; + + return ListInstantSnapshotGroups; + })(); + + v1beta.ListInstantSnapshotGroupsRequest = (function() { + + /** + * Properties of a ListInstantSnapshotGroupsRequest. + * @memberof google.cloud.compute.v1beta + * @interface IListInstantSnapshotGroupsRequest + * @property {string|null} [filter] ListInstantSnapshotGroupsRequest filter + * @property {number|null} [maxResults] ListInstantSnapshotGroupsRequest maxResults + * @property {string|null} [orderBy] ListInstantSnapshotGroupsRequest orderBy + * @property {string|null} [pageToken] ListInstantSnapshotGroupsRequest pageToken + * @property {string|null} [project] ListInstantSnapshotGroupsRequest project + * @property {boolean|null} [returnPartialSuccess] ListInstantSnapshotGroupsRequest returnPartialSuccess + * @property {string|null} [zone] ListInstantSnapshotGroupsRequest zone + */ + + /** + * Constructs a new ListInstantSnapshotGroupsRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ListInstantSnapshotGroupsRequest. + * @implements IListInstantSnapshotGroupsRequest + * @constructor + * @param {google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest=} [properties] Properties to set + */ + function ListInstantSnapshotGroupsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListInstantSnapshotGroupsRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest + * @instance + */ + ListInstantSnapshotGroupsRequest.prototype.filter = null; + + /** + * ListInstantSnapshotGroupsRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest + * @instance + */ + ListInstantSnapshotGroupsRequest.prototype.maxResults = null; + + /** + * ListInstantSnapshotGroupsRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest + * @instance + */ + ListInstantSnapshotGroupsRequest.prototype.orderBy = null; + + /** + * ListInstantSnapshotGroupsRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest + * @instance + */ + ListInstantSnapshotGroupsRequest.prototype.pageToken = null; + + /** + * ListInstantSnapshotGroupsRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest + * @instance + */ + ListInstantSnapshotGroupsRequest.prototype.project = ""; + + /** + * ListInstantSnapshotGroupsRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest + * @instance + */ + ListInstantSnapshotGroupsRequest.prototype.returnPartialSuccess = null; + + /** + * ListInstantSnapshotGroupsRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest + * @instance + */ + ListInstantSnapshotGroupsRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroupsRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroupsRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroupsRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroupsRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroupsRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListInstantSnapshotGroupsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest + * @static + * @param {google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest} ListInstantSnapshotGroupsRequest instance + */ + ListInstantSnapshotGroupsRequest.create = function create(properties) { + return new ListInstantSnapshotGroupsRequest(properties); + }; + + /** + * Encodes the specified ListInstantSnapshotGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest + * @static + * @param {google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest} message ListInstantSnapshotGroupsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListInstantSnapshotGroupsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified ListInstantSnapshotGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest + * @static + * @param {google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest} message ListInstantSnapshotGroupsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListInstantSnapshotGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListInstantSnapshotGroupsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest} ListInstantSnapshotGroupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListInstantSnapshotGroupsRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListInstantSnapshotGroupsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest} ListInstantSnapshotGroupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListInstantSnapshotGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListInstantSnapshotGroupsRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListInstantSnapshotGroupsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a ListInstantSnapshotGroupsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest} ListInstantSnapshotGroupsRequest + */ + ListInstantSnapshotGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a ListInstantSnapshotGroupsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest + * @static + * @param {google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest} message ListInstantSnapshotGroupsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListInstantSnapshotGroupsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.project = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this ListInstantSnapshotGroupsRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest + * @instance + * @returns {Object.} JSON object + */ + ListInstantSnapshotGroupsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListInstantSnapshotGroupsRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListInstantSnapshotGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest"; + }; + + return ListInstantSnapshotGroupsRequest; + })(); + v1beta.ListInstantSnapshotsRequest = (function() { /** @@ -993154,30 +1003952,31 @@ return ListManagedInstancesRegionInstanceGroupManagersRequest; })(); - v1beta.ListNetworkAttachmentsRequest = (function() { + v1beta.ListNamedSetsRoutersRequest = (function() { /** - * Properties of a ListNetworkAttachmentsRequest. + * Properties of a ListNamedSetsRoutersRequest. * @memberof google.cloud.compute.v1beta - * @interface IListNetworkAttachmentsRequest - * @property {string|null} [filter] ListNetworkAttachmentsRequest filter - * @property {number|null} [maxResults] ListNetworkAttachmentsRequest maxResults - * @property {string|null} [orderBy] ListNetworkAttachmentsRequest orderBy - * @property {string|null} [pageToken] ListNetworkAttachmentsRequest pageToken - * @property {string|null} [project] ListNetworkAttachmentsRequest project - * @property {string|null} [region] ListNetworkAttachmentsRequest region - * @property {boolean|null} [returnPartialSuccess] ListNetworkAttachmentsRequest returnPartialSuccess + * @interface IListNamedSetsRoutersRequest + * @property {string|null} [filter] ListNamedSetsRoutersRequest filter + * @property {number|null} [maxResults] ListNamedSetsRoutersRequest maxResults + * @property {string|null} [orderBy] ListNamedSetsRoutersRequest orderBy + * @property {string|null} [pageToken] ListNamedSetsRoutersRequest pageToken + * @property {string|null} [project] ListNamedSetsRoutersRequest project + * @property {string|null} [region] ListNamedSetsRoutersRequest region + * @property {boolean|null} [returnPartialSuccess] ListNamedSetsRoutersRequest returnPartialSuccess + * @property {string|null} [router] ListNamedSetsRoutersRequest router */ /** - * Constructs a new ListNetworkAttachmentsRequest. + * Constructs a new ListNamedSetsRoutersRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListNetworkAttachmentsRequest. - * @implements IListNetworkAttachmentsRequest + * @classdesc Represents a ListNamedSetsRoutersRequest. + * @implements IListNamedSetsRoutersRequest * @constructor - * @param {google.cloud.compute.v1beta.IListNetworkAttachmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListNamedSetsRoutersRequest=} [properties] Properties to set */ - function ListNetworkAttachmentsRequest(properties) { + function ListNamedSetsRoutersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -993185,116 +1003984,124 @@ } /** - * ListNetworkAttachmentsRequest filter. + * ListNamedSetsRoutersRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.ListNamedSetsRoutersRequest * @instance */ - ListNetworkAttachmentsRequest.prototype.filter = null; + ListNamedSetsRoutersRequest.prototype.filter = null; /** - * ListNetworkAttachmentsRequest maxResults. + * ListNamedSetsRoutersRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.ListNamedSetsRoutersRequest * @instance */ - ListNetworkAttachmentsRequest.prototype.maxResults = null; + ListNamedSetsRoutersRequest.prototype.maxResults = null; /** - * ListNetworkAttachmentsRequest orderBy. + * ListNamedSetsRoutersRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.ListNamedSetsRoutersRequest * @instance */ - ListNetworkAttachmentsRequest.prototype.orderBy = null; + ListNamedSetsRoutersRequest.prototype.orderBy = null; /** - * ListNetworkAttachmentsRequest pageToken. + * ListNamedSetsRoutersRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.ListNamedSetsRoutersRequest * @instance */ - ListNetworkAttachmentsRequest.prototype.pageToken = null; + ListNamedSetsRoutersRequest.prototype.pageToken = null; /** - * ListNetworkAttachmentsRequest project. + * ListNamedSetsRoutersRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.ListNamedSetsRoutersRequest * @instance */ - ListNetworkAttachmentsRequest.prototype.project = ""; + ListNamedSetsRoutersRequest.prototype.project = ""; /** - * ListNetworkAttachmentsRequest region. + * ListNamedSetsRoutersRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.ListNamedSetsRoutersRequest * @instance */ - ListNetworkAttachmentsRequest.prototype.region = ""; + ListNamedSetsRoutersRequest.prototype.region = ""; /** - * ListNetworkAttachmentsRequest returnPartialSuccess. + * ListNamedSetsRoutersRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.ListNamedSetsRoutersRequest * @instance */ - ListNetworkAttachmentsRequest.prototype.returnPartialSuccess = null; + ListNamedSetsRoutersRequest.prototype.returnPartialSuccess = null; + + /** + * ListNamedSetsRoutersRequest router. + * @member {string} router + * @memberof google.cloud.compute.v1beta.ListNamedSetsRoutersRequest + * @instance + */ + ListNamedSetsRoutersRequest.prototype.router = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListNetworkAttachmentsRequest.prototype, "_filter", { + Object.defineProperty(ListNamedSetsRoutersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListNetworkAttachmentsRequest.prototype, "_maxResults", { + Object.defineProperty(ListNamedSetsRoutersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListNetworkAttachmentsRequest.prototype, "_orderBy", { + Object.defineProperty(ListNamedSetsRoutersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListNetworkAttachmentsRequest.prototype, "_pageToken", { + Object.defineProperty(ListNamedSetsRoutersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListNetworkAttachmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListNamedSetsRoutersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListNetworkAttachmentsRequest instance using the specified properties. + * Creates a new ListNamedSetsRoutersRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.ListNamedSetsRoutersRequest * @static - * @param {google.cloud.compute.v1beta.IListNetworkAttachmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListNetworkAttachmentsRequest} ListNetworkAttachmentsRequest instance + * @param {google.cloud.compute.v1beta.IListNamedSetsRoutersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListNamedSetsRoutersRequest} ListNamedSetsRoutersRequest instance */ - ListNetworkAttachmentsRequest.create = function create(properties) { - return new ListNetworkAttachmentsRequest(properties); + ListNamedSetsRoutersRequest.create = function create(properties) { + return new ListNamedSetsRoutersRequest(properties); }; /** - * Encodes the specified ListNetworkAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListNetworkAttachmentsRequest.verify|verify} messages. + * Encodes the specified ListNamedSetsRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListNamedSetsRoutersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.ListNamedSetsRoutersRequest * @static - * @param {google.cloud.compute.v1beta.IListNetworkAttachmentsRequest} message ListNetworkAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListNamedSetsRoutersRequest} message ListNamedSetsRoutersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNetworkAttachmentsRequest.encode = function encode(message, writer) { + ListNamedSetsRoutersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -993303,6 +1004110,8 @@ writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); if (message.region != null && Object.hasOwnProperty.call(message, "region")) writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.router != null && Object.hasOwnProperty.call(message, "router")) + writer.uint32(/* id 148608841, wireType 2 =*/1188870730).string(message.router); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -993315,33 +1004124,33 @@ }; /** - * Encodes the specified ListNetworkAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListNetworkAttachmentsRequest.verify|verify} messages. + * Encodes the specified ListNamedSetsRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListNamedSetsRoutersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.ListNamedSetsRoutersRequest * @static - * @param {google.cloud.compute.v1beta.IListNetworkAttachmentsRequest} message ListNetworkAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListNamedSetsRoutersRequest} message ListNamedSetsRoutersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNetworkAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNamedSetsRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNetworkAttachmentsRequest message from the specified reader or buffer. + * Decodes a ListNamedSetsRoutersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.ListNamedSetsRoutersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListNetworkAttachmentsRequest} ListNetworkAttachmentsRequest + * @returns {google.cloud.compute.v1beta.ListNamedSetsRoutersRequest} ListNamedSetsRoutersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNetworkAttachmentsRequest.decode = function decode(reader, length, error) { + ListNamedSetsRoutersRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListNetworkAttachmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -993375,6 +1004184,10 @@ message.returnPartialSuccess = reader.bool(); break; } + case 148608841: { + message.router = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -993384,30 +1004197,30 @@ }; /** - * Decodes a ListNetworkAttachmentsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNamedSetsRoutersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.ListNamedSetsRoutersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListNetworkAttachmentsRequest} ListNetworkAttachmentsRequest + * @returns {google.cloud.compute.v1beta.ListNamedSetsRoutersRequest} ListNamedSetsRoutersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNetworkAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { + ListNamedSetsRoutersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNetworkAttachmentsRequest message. + * Verifies a ListNamedSetsRoutersRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.ListNamedSetsRoutersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNetworkAttachmentsRequest.verify = function verify(message) { + ListNamedSetsRoutersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -993442,21 +1004255,24 @@ if (typeof message.returnPartialSuccess !== "boolean") return "returnPartialSuccess: boolean expected"; } + if (message.router != null && message.hasOwnProperty("router")) + if (!$util.isString(message.router)) + return "router: string expected"; return null; }; /** - * Creates a ListNetworkAttachmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNamedSetsRoutersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.ListNamedSetsRoutersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListNetworkAttachmentsRequest} ListNetworkAttachmentsRequest + * @returns {google.cloud.compute.v1beta.ListNamedSetsRoutersRequest} ListNamedSetsRoutersRequest */ - ListNetworkAttachmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListNetworkAttachmentsRequest) + ListNamedSetsRoutersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListNetworkAttachmentsRequest(); + var message = new $root.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -993471,24 +1004287,27 @@ message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + if (object.router != null) + message.router = String(object.router); return message; }; /** - * Creates a plain object from a ListNetworkAttachmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNamedSetsRoutersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.ListNamedSetsRoutersRequest * @static - * @param {google.cloud.compute.v1beta.ListNetworkAttachmentsRequest} message ListNetworkAttachmentsRequest + * @param {google.cloud.compute.v1beta.ListNamedSetsRoutersRequest} message ListNamedSetsRoutersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNetworkAttachmentsRequest.toObject = function toObject(message, options) { + ListNamedSetsRoutersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.region = ""; + object.router = ""; object.project = ""; } if (message.pageToken != null && message.hasOwnProperty("pageToken")) { @@ -993503,6 +1004322,8 @@ } if (message.region != null && message.hasOwnProperty("region")) object.region = message.region; + if (message.router != null && message.hasOwnProperty("router")) + object.router = message.router; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -993524,58 +1004345,58 @@ }; /** - * Converts this ListNetworkAttachmentsRequest to JSON. + * Converts this ListNamedSetsRoutersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.ListNamedSetsRoutersRequest * @instance * @returns {Object.} JSON object */ - ListNetworkAttachmentsRequest.prototype.toJSON = function toJSON() { + ListNamedSetsRoutersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListNetworkAttachmentsRequest + * Gets the default type url for ListNamedSetsRoutersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.ListNamedSetsRoutersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListNetworkAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNamedSetsRoutersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListNetworkAttachmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListNamedSetsRoutersRequest"; }; - return ListNetworkAttachmentsRequest; + return ListNamedSetsRoutersRequest; })(); - v1beta.ListNetworkEndpointGroupsRequest = (function() { + v1beta.ListNetworkAttachmentsRequest = (function() { /** - * Properties of a ListNetworkEndpointGroupsRequest. + * Properties of a ListNetworkAttachmentsRequest. * @memberof google.cloud.compute.v1beta - * @interface IListNetworkEndpointGroupsRequest - * @property {string|null} [filter] ListNetworkEndpointGroupsRequest filter - * @property {number|null} [maxResults] ListNetworkEndpointGroupsRequest maxResults - * @property {string|null} [orderBy] ListNetworkEndpointGroupsRequest orderBy - * @property {string|null} [pageToken] ListNetworkEndpointGroupsRequest pageToken - * @property {string|null} [project] ListNetworkEndpointGroupsRequest project - * @property {boolean|null} [returnPartialSuccess] ListNetworkEndpointGroupsRequest returnPartialSuccess - * @property {string|null} [zone] ListNetworkEndpointGroupsRequest zone + * @interface IListNetworkAttachmentsRequest + * @property {string|null} [filter] ListNetworkAttachmentsRequest filter + * @property {number|null} [maxResults] ListNetworkAttachmentsRequest maxResults + * @property {string|null} [orderBy] ListNetworkAttachmentsRequest orderBy + * @property {string|null} [pageToken] ListNetworkAttachmentsRequest pageToken + * @property {string|null} [project] ListNetworkAttachmentsRequest project + * @property {string|null} [region] ListNetworkAttachmentsRequest region + * @property {boolean|null} [returnPartialSuccess] ListNetworkAttachmentsRequest returnPartialSuccess */ /** - * Constructs a new ListNetworkEndpointGroupsRequest. + * Constructs a new ListNetworkAttachmentsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListNetworkEndpointGroupsRequest. - * @implements IListNetworkEndpointGroupsRequest + * @classdesc Represents a ListNetworkAttachmentsRequest. + * @implements IListNetworkAttachmentsRequest * @constructor - * @param {google.cloud.compute.v1beta.IListNetworkEndpointGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListNetworkAttachmentsRequest=} [properties] Properties to set */ - function ListNetworkEndpointGroupsRequest(properties) { + function ListNetworkAttachmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -993583,124 +1004404,124 @@ } /** - * ListNetworkEndpointGroupsRequest filter. + * ListNetworkAttachmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest * @instance */ - ListNetworkEndpointGroupsRequest.prototype.filter = null; + ListNetworkAttachmentsRequest.prototype.filter = null; /** - * ListNetworkEndpointGroupsRequest maxResults. + * ListNetworkAttachmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest * @instance */ - ListNetworkEndpointGroupsRequest.prototype.maxResults = null; + ListNetworkAttachmentsRequest.prototype.maxResults = null; /** - * ListNetworkEndpointGroupsRequest orderBy. + * ListNetworkAttachmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest * @instance */ - ListNetworkEndpointGroupsRequest.prototype.orderBy = null; + ListNetworkAttachmentsRequest.prototype.orderBy = null; /** - * ListNetworkEndpointGroupsRequest pageToken. + * ListNetworkAttachmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest * @instance */ - ListNetworkEndpointGroupsRequest.prototype.pageToken = null; + ListNetworkAttachmentsRequest.prototype.pageToken = null; /** - * ListNetworkEndpointGroupsRequest project. + * ListNetworkAttachmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest * @instance */ - ListNetworkEndpointGroupsRequest.prototype.project = ""; + ListNetworkAttachmentsRequest.prototype.project = ""; /** - * ListNetworkEndpointGroupsRequest returnPartialSuccess. - * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * ListNetworkAttachmentsRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest * @instance */ - ListNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; + ListNetworkAttachmentsRequest.prototype.region = ""; /** - * ListNetworkEndpointGroupsRequest zone. - * @member {string} zone - * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * ListNetworkAttachmentsRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest * @instance */ - ListNetworkEndpointGroupsRequest.prototype.zone = ""; + ListNetworkAttachmentsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListNetworkEndpointGroupsRequest.prototype, "_filter", { + Object.defineProperty(ListNetworkAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListNetworkEndpointGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(ListNetworkAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListNetworkEndpointGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(ListNetworkAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListNetworkEndpointGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(ListNetworkAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListNetworkAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListNetworkEndpointGroupsRequest instance using the specified properties. + * Creates a new ListNetworkAttachmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.IListNetworkEndpointGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest} ListNetworkEndpointGroupsRequest instance + * @param {google.cloud.compute.v1beta.IListNetworkAttachmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListNetworkAttachmentsRequest} ListNetworkAttachmentsRequest instance */ - ListNetworkEndpointGroupsRequest.create = function create(properties) { - return new ListNetworkEndpointGroupsRequest(properties); + ListNetworkAttachmentsRequest.create = function create(properties) { + return new ListNetworkAttachmentsRequest(properties); }; /** - * Encodes the specified ListNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified ListNetworkAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListNetworkAttachmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.IListNetworkEndpointGroupsRequest} message ListNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListNetworkAttachmentsRequest} message ListNetworkAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNetworkEndpointGroupsRequest.encode = function encode(message, writer) { + ListNetworkAttachmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -993713,33 +1004534,33 @@ }; /** - * Encodes the specified ListNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified ListNetworkAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListNetworkAttachmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.IListNetworkEndpointGroupsRequest} message ListNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListNetworkAttachmentsRequest} message ListNetworkAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNetworkAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNetworkEndpointGroupsRequest message from the specified reader or buffer. + * Decodes a ListNetworkAttachmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest} ListNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1beta.ListNetworkAttachmentsRequest} ListNetworkAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNetworkEndpointGroupsRequest.decode = function decode(reader, length, error) { + ListNetworkAttachmentsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListNetworkAttachmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -993765,12 +1004586,12 @@ message.project = reader.string(); break; } - case 517198390: { - message.returnPartialSuccess = reader.bool(); + case 138946292: { + message.region = reader.string(); break; } - case 3744684: { - message.zone = reader.string(); + case 517198390: { + message.returnPartialSuccess = reader.bool(); break; } default: @@ -993782,30 +1004603,30 @@ }; /** - * Decodes a ListNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNetworkAttachmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest} ListNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1beta.ListNetworkAttachmentsRequest} ListNetworkAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + ListNetworkAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNetworkEndpointGroupsRequest message. + * Verifies a ListNetworkAttachmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNetworkEndpointGroupsRequest.verify = function verify(message) { + ListNetworkAttachmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -993832,29 +1004653,29 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") return "returnPartialSuccess: boolean expected"; } - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; return null; }; /** - * Creates a ListNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNetworkAttachmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest} ListNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1beta.ListNetworkAttachmentsRequest} ListNetworkAttachmentsRequest */ - ListNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest) + ListNetworkAttachmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListNetworkAttachmentsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest(); + var message = new $root.google.cloud.compute.v1beta.ListNetworkAttachmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -993865,32 +1004686,430 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); - if (object.zone != null) - message.zone = String(object.zone); return message; }; /** - * Creates a plain object from a ListNetworkEndpointGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNetworkAttachmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest} message ListNetworkEndpointGroupsRequest + * @param {google.cloud.compute.v1beta.ListNetworkAttachmentsRequest} message ListNetworkAttachmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { + ListNetworkAttachmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.zone = ""; + object.region = ""; object.project = ""; } - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this ListNetworkAttachmentsRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest + * @instance + * @returns {Object.} JSON object + */ + ListNetworkAttachmentsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListNetworkAttachmentsRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ListNetworkAttachmentsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListNetworkAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListNetworkAttachmentsRequest"; + }; + + return ListNetworkAttachmentsRequest; + })(); + + v1beta.ListNetworkEndpointGroupsRequest = (function() { + + /** + * Properties of a ListNetworkEndpointGroupsRequest. + * @memberof google.cloud.compute.v1beta + * @interface IListNetworkEndpointGroupsRequest + * @property {string|null} [filter] ListNetworkEndpointGroupsRequest filter + * @property {number|null} [maxResults] ListNetworkEndpointGroupsRequest maxResults + * @property {string|null} [orderBy] ListNetworkEndpointGroupsRequest orderBy + * @property {string|null} [pageToken] ListNetworkEndpointGroupsRequest pageToken + * @property {string|null} [project] ListNetworkEndpointGroupsRequest project + * @property {boolean|null} [returnPartialSuccess] ListNetworkEndpointGroupsRequest returnPartialSuccess + * @property {string|null} [zone] ListNetworkEndpointGroupsRequest zone + */ + + /** + * Constructs a new ListNetworkEndpointGroupsRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ListNetworkEndpointGroupsRequest. + * @implements IListNetworkEndpointGroupsRequest + * @constructor + * @param {google.cloud.compute.v1beta.IListNetworkEndpointGroupsRequest=} [properties] Properties to set + */ + function ListNetworkEndpointGroupsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListNetworkEndpointGroupsRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @instance + */ + ListNetworkEndpointGroupsRequest.prototype.filter = null; + + /** + * ListNetworkEndpointGroupsRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @instance + */ + ListNetworkEndpointGroupsRequest.prototype.maxResults = null; + + /** + * ListNetworkEndpointGroupsRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @instance + */ + ListNetworkEndpointGroupsRequest.prototype.orderBy = null; + + /** + * ListNetworkEndpointGroupsRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @instance + */ + ListNetworkEndpointGroupsRequest.prototype.pageToken = null; + + /** + * ListNetworkEndpointGroupsRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @instance + */ + ListNetworkEndpointGroupsRequest.prototype.project = ""; + + /** + * ListNetworkEndpointGroupsRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @instance + */ + ListNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; + + /** + * ListNetworkEndpointGroupsRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @instance + */ + ListNetworkEndpointGroupsRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListNetworkEndpointGroupsRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListNetworkEndpointGroupsRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListNetworkEndpointGroupsRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListNetworkEndpointGroupsRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListNetworkEndpointGroupsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @static + * @param {google.cloud.compute.v1beta.IListNetworkEndpointGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest} ListNetworkEndpointGroupsRequest instance + */ + ListNetworkEndpointGroupsRequest.create = function create(properties) { + return new ListNetworkEndpointGroupsRequest(properties); + }; + + /** + * Encodes the specified ListNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @static + * @param {google.cloud.compute.v1beta.IListNetworkEndpointGroupsRequest} message ListNetworkEndpointGroupsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListNetworkEndpointGroupsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified ListNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @static + * @param {google.cloud.compute.v1beta.IListNetworkEndpointGroupsRequest} message ListNetworkEndpointGroupsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListNetworkEndpointGroupsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest} ListNetworkEndpointGroupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListNetworkEndpointGroupsRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest} ListNetworkEndpointGroupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListNetworkEndpointGroupsRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListNetworkEndpointGroupsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a ListNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest} ListNetworkEndpointGroupsRequest + */ + ListNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a ListNetworkEndpointGroupsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest + * @static + * @param {google.cloud.compute.v1beta.ListNetworkEndpointGroupsRequest} message ListNetworkEndpointGroupsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.project = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -1008459,30 +1019678,30 @@ return ListRegionInstanceTemplatesRequest; })(); - v1beta.ListRegionInstantSnapshotsRequest = (function() { + v1beta.ListRegionInstantSnapshotGroupsRequest = (function() { /** - * Properties of a ListRegionInstantSnapshotsRequest. + * Properties of a ListRegionInstantSnapshotGroupsRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionInstantSnapshotsRequest - * @property {string|null} [filter] ListRegionInstantSnapshotsRequest filter - * @property {number|null} [maxResults] ListRegionInstantSnapshotsRequest maxResults - * @property {string|null} [orderBy] ListRegionInstantSnapshotsRequest orderBy - * @property {string|null} [pageToken] ListRegionInstantSnapshotsRequest pageToken - * @property {string|null} [project] ListRegionInstantSnapshotsRequest project - * @property {string|null} [region] ListRegionInstantSnapshotsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionInstantSnapshotsRequest returnPartialSuccess + * @interface IListRegionInstantSnapshotGroupsRequest + * @property {string|null} [filter] ListRegionInstantSnapshotGroupsRequest filter + * @property {number|null} [maxResults] ListRegionInstantSnapshotGroupsRequest maxResults + * @property {string|null} [orderBy] ListRegionInstantSnapshotGroupsRequest orderBy + * @property {string|null} [pageToken] ListRegionInstantSnapshotGroupsRequest pageToken + * @property {string|null} [project] ListRegionInstantSnapshotGroupsRequest project + * @property {string|null} [region] ListRegionInstantSnapshotGroupsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionInstantSnapshotGroupsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionInstantSnapshotsRequest. + * Constructs a new ListRegionInstantSnapshotGroupsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionInstantSnapshotsRequest. - * @implements IListRegionInstantSnapshotsRequest + * @classdesc Represents a ListRegionInstantSnapshotGroupsRequest. + * @implements IListRegionInstantSnapshotGroupsRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionInstantSnapshotsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest=} [properties] Properties to set */ - function ListRegionInstantSnapshotsRequest(properties) { + function ListRegionInstantSnapshotGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1008490,116 +1019709,116 @@ } /** - * ListRegionInstantSnapshotsRequest filter. + * ListRegionInstantSnapshotGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.filter = null; + ListRegionInstantSnapshotGroupsRequest.prototype.filter = null; /** - * ListRegionInstantSnapshotsRequest maxResults. + * ListRegionInstantSnapshotGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.maxResults = null; + ListRegionInstantSnapshotGroupsRequest.prototype.maxResults = null; /** - * ListRegionInstantSnapshotsRequest orderBy. + * ListRegionInstantSnapshotGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.orderBy = null; + ListRegionInstantSnapshotGroupsRequest.prototype.orderBy = null; /** - * ListRegionInstantSnapshotsRequest pageToken. + * ListRegionInstantSnapshotGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.pageToken = null; + ListRegionInstantSnapshotGroupsRequest.prototype.pageToken = null; /** - * ListRegionInstantSnapshotsRequest project. + * ListRegionInstantSnapshotGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.project = ""; + ListRegionInstantSnapshotGroupsRequest.prototype.project = ""; /** - * ListRegionInstantSnapshotsRequest region. + * ListRegionInstantSnapshotGroupsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.region = ""; + ListRegionInstantSnapshotGroupsRequest.prototype.region = ""; /** - * ListRegionInstantSnapshotsRequest returnPartialSuccess. + * ListRegionInstantSnapshotGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.returnPartialSuccess = null; + ListRegionInstantSnapshotGroupsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstantSnapshotGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstantSnapshotGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstantSnapshotGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstantSnapshotGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstantSnapshotGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionInstantSnapshotsRequest instance using the specified properties. + * Creates a new ListRegionInstantSnapshotGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionInstantSnapshotsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest instance + * @param {google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest} ListRegionInstantSnapshotGroupsRequest instance */ - ListRegionInstantSnapshotsRequest.create = function create(properties) { - return new ListRegionInstantSnapshotsRequest(properties); + ListRegionInstantSnapshotGroupsRequest.create = function create(properties) { + return new ListRegionInstantSnapshotGroupsRequest(properties); }; /** - * Encodes the specified ListRegionInstantSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstantSnapshotGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionInstantSnapshotsRequest} message ListRegionInstantSnapshotsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest} message ListRegionInstantSnapshotGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstantSnapshotsRequest.encode = function encode(message, writer) { + ListRegionInstantSnapshotGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -1008620,33 +1019839,33 @@ }; /** - * Encodes the specified ListRegionInstantSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstantSnapshotGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionInstantSnapshotsRequest} message ListRegionInstantSnapshotsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest} message ListRegionInstantSnapshotGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstantSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstantSnapshotGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionInstantSnapshotsRequest message from the specified reader or buffer. + * Decodes a ListRegionInstantSnapshotGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest + * @returns {google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest} ListRegionInstantSnapshotGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstantSnapshotsRequest.decode = function decode(reader, length, error) { + ListRegionInstantSnapshotGroupsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1008689,30 +1019908,30 @@ }; /** - * Decodes a ListRegionInstantSnapshotsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionInstantSnapshotGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest + * @returns {google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest} ListRegionInstantSnapshotGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstantSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionInstantSnapshotGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionInstantSnapshotsRequest message. + * Verifies a ListRegionInstantSnapshotGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionInstantSnapshotsRequest.verify = function verify(message) { + ListRegionInstantSnapshotGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1008751,17 +1019970,17 @@ }; /** - * Creates a ListRegionInstantSnapshotsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionInstantSnapshotGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest + * @returns {google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest} ListRegionInstantSnapshotGroupsRequest */ - ListRegionInstantSnapshotsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest) + ListRegionInstantSnapshotGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1008780,15 +1019999,15 @@ }; /** - * Creates a plain object from a ListRegionInstantSnapshotsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionInstantSnapshotGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest} message ListRegionInstantSnapshotsRequest + * @param {google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest} message ListRegionInstantSnapshotGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionInstantSnapshotsRequest.toObject = function toObject(message, options) { + ListRegionInstantSnapshotGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1008829,59 +1020048,58 @@ }; /** - * Converts this ListRegionInstantSnapshotsRequest to JSON. + * Converts this ListRegionInstantSnapshotGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest * @instance * @returns {Object.} JSON object */ - ListRegionInstantSnapshotsRequest.prototype.toJSON = function toJSON() { + ListRegionInstantSnapshotGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionInstantSnapshotsRequest + * Gets the default type url for ListRegionInstantSnapshotGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionInstantSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstantSnapshotGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest"; }; - return ListRegionInstantSnapshotsRequest; + return ListRegionInstantSnapshotGroupsRequest; })(); - v1beta.ListRegionMultiMigMembersRequest = (function() { + v1beta.ListRegionInstantSnapshotsRequest = (function() { /** - * Properties of a ListRegionMultiMigMembersRequest. + * Properties of a ListRegionInstantSnapshotsRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionMultiMigMembersRequest - * @property {string|null} [filter] ListRegionMultiMigMembersRequest filter - * @property {number|null} [maxResults] ListRegionMultiMigMembersRequest maxResults - * @property {string|null} [multiMig] ListRegionMultiMigMembersRequest multiMig - * @property {string|null} [orderBy] ListRegionMultiMigMembersRequest orderBy - * @property {string|null} [pageToken] ListRegionMultiMigMembersRequest pageToken - * @property {string|null} [project] ListRegionMultiMigMembersRequest project - * @property {string|null} [region] ListRegionMultiMigMembersRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionMultiMigMembersRequest returnPartialSuccess + * @interface IListRegionInstantSnapshotsRequest + * @property {string|null} [filter] ListRegionInstantSnapshotsRequest filter + * @property {number|null} [maxResults] ListRegionInstantSnapshotsRequest maxResults + * @property {string|null} [orderBy] ListRegionInstantSnapshotsRequest orderBy + * @property {string|null} [pageToken] ListRegionInstantSnapshotsRequest pageToken + * @property {string|null} [project] ListRegionInstantSnapshotsRequest project + * @property {string|null} [region] ListRegionInstantSnapshotsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionInstantSnapshotsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionMultiMigMembersRequest. + * Constructs a new ListRegionInstantSnapshotsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionMultiMigMembersRequest. - * @implements IListRegionMultiMigMembersRequest + * @classdesc Represents a ListRegionInstantSnapshotsRequest. + * @implements IListRegionInstantSnapshotsRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionMultiMigMembersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionInstantSnapshotsRequest=} [properties] Properties to set */ - function ListRegionMultiMigMembersRequest(properties) { + function ListRegionInstantSnapshotsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1008889,124 +1020107,116 @@ } /** - * ListRegionMultiMigMembersRequest filter. + * ListRegionInstantSnapshotsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionMultiMigMembersRequest.prototype.filter = null; + ListRegionInstantSnapshotsRequest.prototype.filter = null; /** - * ListRegionMultiMigMembersRequest maxResults. + * ListRegionInstantSnapshotsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest - * @instance - */ - ListRegionMultiMigMembersRequest.prototype.maxResults = null; - - /** - * ListRegionMultiMigMembersRequest multiMig. - * @member {string} multiMig - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionMultiMigMembersRequest.prototype.multiMig = ""; + ListRegionInstantSnapshotsRequest.prototype.maxResults = null; /** - * ListRegionMultiMigMembersRequest orderBy. + * ListRegionInstantSnapshotsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionMultiMigMembersRequest.prototype.orderBy = null; + ListRegionInstantSnapshotsRequest.prototype.orderBy = null; /** - * ListRegionMultiMigMembersRequest pageToken. + * ListRegionInstantSnapshotsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionMultiMigMembersRequest.prototype.pageToken = null; + ListRegionInstantSnapshotsRequest.prototype.pageToken = null; /** - * ListRegionMultiMigMembersRequest project. + * ListRegionInstantSnapshotsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionMultiMigMembersRequest.prototype.project = ""; + ListRegionInstantSnapshotsRequest.prototype.project = ""; /** - * ListRegionMultiMigMembersRequest region. + * ListRegionInstantSnapshotsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionMultiMigMembersRequest.prototype.region = ""; + ListRegionInstantSnapshotsRequest.prototype.region = ""; /** - * ListRegionMultiMigMembersRequest returnPartialSuccess. + * ListRegionInstantSnapshotsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionMultiMigMembersRequest.prototype.returnPartialSuccess = null; + ListRegionInstantSnapshotsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionMultiMigMembersRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionMultiMigMembersRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionMultiMigMembersRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionMultiMigMembersRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionMultiMigMembersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionMultiMigMembersRequest instance using the specified properties. + * Creates a new ListRegionInstantSnapshotsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionMultiMigMembersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest} ListRegionMultiMigMembersRequest instance + * @param {google.cloud.compute.v1beta.IListRegionInstantSnapshotsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest instance */ - ListRegionMultiMigMembersRequest.create = function create(properties) { - return new ListRegionMultiMigMembersRequest(properties); + ListRegionInstantSnapshotsRequest.create = function create(properties) { + return new ListRegionInstantSnapshotsRequest(properties); }; /** - * Encodes the specified ListRegionMultiMigMembersRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest.verify|verify} messages. + * Encodes the specified ListRegionInstantSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionMultiMigMembersRequest} message ListRegionMultiMigMembersRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionInstantSnapshotsRequest} message ListRegionInstantSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionMultiMigMembersRequest.encode = function encode(message, writer) { + ListRegionInstantSnapshotsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -1009021,41 +1020231,39 @@ writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); - if (message.multiMig != null && Object.hasOwnProperty.call(message, "multiMig")) - writer.uint32(/* id 403990085, wireType 2 =*/3231920682).string(message.multiMig); if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); return writer; }; /** - * Encodes the specified ListRegionMultiMigMembersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest.verify|verify} messages. + * Encodes the specified ListRegionInstantSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionMultiMigMembersRequest} message ListRegionMultiMigMembersRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionInstantSnapshotsRequest} message ListRegionInstantSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionMultiMigMembersRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstantSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionMultiMigMembersRequest message from the specified reader or buffer. + * Decodes a ListRegionInstantSnapshotsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest} ListRegionMultiMigMembersRequest + * @returns {google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionMultiMigMembersRequest.decode = function decode(reader, length, error) { + ListRegionInstantSnapshotsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1009069,10 +1020277,6 @@ message.maxResults = reader.uint32(); break; } - case 403990085: { - message.multiMig = reader.string(); - break; - } case 160562920: { message.orderBy = reader.string(); break; @@ -1009102,30 +1020306,30 @@ }; /** - * Decodes a ListRegionMultiMigMembersRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionInstantSnapshotsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest} ListRegionMultiMigMembersRequest + * @returns {google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionMultiMigMembersRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionInstantSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionMultiMigMembersRequest message. + * Verifies a ListRegionInstantSnapshotsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionMultiMigMembersRequest.verify = function verify(message) { + ListRegionInstantSnapshotsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1009139,9 +1020343,6 @@ if (!$util.isInteger(message.maxResults)) return "maxResults: integer expected"; } - if (message.multiMig != null && message.hasOwnProperty("multiMig")) - if (!$util.isString(message.multiMig)) - return "multiMig: string expected"; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { properties._orderBy = 1; if (!$util.isString(message.orderBy)) @@ -1009167,23 +1020368,21 @@ }; /** - * Creates a ListRegionMultiMigMembersRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionInstantSnapshotsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest} ListRegionMultiMigMembersRequest + * @returns {google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest */ - ListRegionMultiMigMembersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest) + ListRegionInstantSnapshotsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) message.maxResults = object.maxResults >>> 0; - if (object.multiMig != null) - message.multiMig = String(object.multiMig); if (object.orderBy != null) message.orderBy = String(object.orderBy); if (object.pageToken != null) @@ -1009198,22 +1020397,21 @@ }; /** - * Creates a plain object from a ListRegionMultiMigMembersRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionInstantSnapshotsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest} message ListRegionMultiMigMembersRequest + * @param {google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest} message ListRegionInstantSnapshotsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionMultiMigMembersRequest.toObject = function toObject(message, options) { + ListRegionInstantSnapshotsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.region = ""; object.project = ""; - object.multiMig = ""; } if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; @@ -1009239,8 +1020437,6 @@ if (options.oneofs) object._filter = "filter"; } - if (message.multiMig != null && message.hasOwnProperty("multiMig")) - object.multiMig = message.multiMig; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { object.returnPartialSuccess = message.returnPartialSuccess; if (options.oneofs) @@ -1009250,58 +1020446,59 @@ }; /** - * Converts this ListRegionMultiMigMembersRequest to JSON. + * Converts this ListRegionInstantSnapshotsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest * @instance * @returns {Object.} JSON object */ - ListRegionMultiMigMembersRequest.prototype.toJSON = function toJSON() { + ListRegionInstantSnapshotsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionMultiMigMembersRequest + * Gets the default type url for ListRegionInstantSnapshotsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest + * @memberof google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionMultiMigMembersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstantSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionInstantSnapshotsRequest"; }; - return ListRegionMultiMigMembersRequest; + return ListRegionInstantSnapshotsRequest; })(); - v1beta.ListRegionMultiMigsRequest = (function() { + v1beta.ListRegionMultiMigMembersRequest = (function() { /** - * Properties of a ListRegionMultiMigsRequest. + * Properties of a ListRegionMultiMigMembersRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionMultiMigsRequest - * @property {string|null} [filter] ListRegionMultiMigsRequest filter - * @property {number|null} [maxResults] ListRegionMultiMigsRequest maxResults - * @property {string|null} [orderBy] ListRegionMultiMigsRequest orderBy - * @property {string|null} [pageToken] ListRegionMultiMigsRequest pageToken - * @property {string|null} [project] ListRegionMultiMigsRequest project - * @property {string|null} [region] ListRegionMultiMigsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionMultiMigsRequest returnPartialSuccess + * @interface IListRegionMultiMigMembersRequest + * @property {string|null} [filter] ListRegionMultiMigMembersRequest filter + * @property {number|null} [maxResults] ListRegionMultiMigMembersRequest maxResults + * @property {string|null} [multiMig] ListRegionMultiMigMembersRequest multiMig + * @property {string|null} [orderBy] ListRegionMultiMigMembersRequest orderBy + * @property {string|null} [pageToken] ListRegionMultiMigMembersRequest pageToken + * @property {string|null} [project] ListRegionMultiMigMembersRequest project + * @property {string|null} [region] ListRegionMultiMigMembersRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionMultiMigMembersRequest returnPartialSuccess */ /** - * Constructs a new ListRegionMultiMigsRequest. + * Constructs a new ListRegionMultiMigMembersRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionMultiMigsRequest. - * @implements IListRegionMultiMigsRequest + * @classdesc Represents a ListRegionMultiMigMembersRequest. + * @implements IListRegionMultiMigMembersRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionMultiMigsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionMultiMigMembersRequest=} [properties] Properties to set */ - function ListRegionMultiMigsRequest(properties) { + function ListRegionMultiMigMembersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1009309,116 +1020506,124 @@ } /** - * ListRegionMultiMigsRequest filter. + * ListRegionMultiMigMembersRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest * @instance */ - ListRegionMultiMigsRequest.prototype.filter = null; + ListRegionMultiMigMembersRequest.prototype.filter = null; /** - * ListRegionMultiMigsRequest maxResults. + * ListRegionMultiMigMembersRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest * @instance */ - ListRegionMultiMigsRequest.prototype.maxResults = null; + ListRegionMultiMigMembersRequest.prototype.maxResults = null; /** - * ListRegionMultiMigsRequest orderBy. + * ListRegionMultiMigMembersRequest multiMig. + * @member {string} multiMig + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest + * @instance + */ + ListRegionMultiMigMembersRequest.prototype.multiMig = ""; + + /** + * ListRegionMultiMigMembersRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest * @instance */ - ListRegionMultiMigsRequest.prototype.orderBy = null; + ListRegionMultiMigMembersRequest.prototype.orderBy = null; /** - * ListRegionMultiMigsRequest pageToken. + * ListRegionMultiMigMembersRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest * @instance */ - ListRegionMultiMigsRequest.prototype.pageToken = null; + ListRegionMultiMigMembersRequest.prototype.pageToken = null; /** - * ListRegionMultiMigsRequest project. + * ListRegionMultiMigMembersRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest * @instance */ - ListRegionMultiMigsRequest.prototype.project = ""; + ListRegionMultiMigMembersRequest.prototype.project = ""; /** - * ListRegionMultiMigsRequest region. + * ListRegionMultiMigMembersRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest * @instance */ - ListRegionMultiMigsRequest.prototype.region = ""; + ListRegionMultiMigMembersRequest.prototype.region = ""; /** - * ListRegionMultiMigsRequest returnPartialSuccess. + * ListRegionMultiMigMembersRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest * @instance */ - ListRegionMultiMigsRequest.prototype.returnPartialSuccess = null; + ListRegionMultiMigMembersRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionMultiMigsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionMultiMigMembersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionMultiMigsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionMultiMigMembersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionMultiMigsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionMultiMigMembersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionMultiMigsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionMultiMigMembersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionMultiMigsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionMultiMigMembersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionMultiMigsRequest instance using the specified properties. + * Creates a new ListRegionMultiMigMembersRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionMultiMigsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionMultiMigsRequest} ListRegionMultiMigsRequest instance + * @param {google.cloud.compute.v1beta.IListRegionMultiMigMembersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest} ListRegionMultiMigMembersRequest instance */ - ListRegionMultiMigsRequest.create = function create(properties) { - return new ListRegionMultiMigsRequest(properties); + ListRegionMultiMigMembersRequest.create = function create(properties) { + return new ListRegionMultiMigMembersRequest(properties); }; /** - * Encodes the specified ListRegionMultiMigsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionMultiMigsRequest.verify|verify} messages. + * Encodes the specified ListRegionMultiMigMembersRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionMultiMigsRequest} message ListRegionMultiMigsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionMultiMigMembersRequest} message ListRegionMultiMigMembersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionMultiMigsRequest.encode = function encode(message, writer) { + ListRegionMultiMigMembersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -1009433,39 +1020638,41 @@ writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.multiMig != null && Object.hasOwnProperty.call(message, "multiMig")) + writer.uint32(/* id 403990085, wireType 2 =*/3231920682).string(message.multiMig); if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); return writer; }; /** - * Encodes the specified ListRegionMultiMigsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionMultiMigsRequest.verify|verify} messages. + * Encodes the specified ListRegionMultiMigMembersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionMultiMigsRequest} message ListRegionMultiMigsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionMultiMigMembersRequest} message ListRegionMultiMigMembersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionMultiMigsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionMultiMigMembersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionMultiMigsRequest message from the specified reader or buffer. + * Decodes a ListRegionMultiMigMembersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionMultiMigsRequest} ListRegionMultiMigsRequest + * @returns {google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest} ListRegionMultiMigMembersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionMultiMigsRequest.decode = function decode(reader, length, error) { + ListRegionMultiMigMembersRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionMultiMigsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1009479,6 +1020686,10 @@ message.maxResults = reader.uint32(); break; } + case 403990085: { + message.multiMig = reader.string(); + break; + } case 160562920: { message.orderBy = reader.string(); break; @@ -1009508,30 +1020719,30 @@ }; /** - * Decodes a ListRegionMultiMigsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionMultiMigMembersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionMultiMigsRequest} ListRegionMultiMigsRequest + * @returns {google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest} ListRegionMultiMigMembersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionMultiMigsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionMultiMigMembersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionMultiMigsRequest message. + * Verifies a ListRegionMultiMigMembersRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionMultiMigsRequest.verify = function verify(message) { + ListRegionMultiMigMembersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1009545,6 +1020756,9 @@ if (!$util.isInteger(message.maxResults)) return "maxResults: integer expected"; } + if (message.multiMig != null && message.hasOwnProperty("multiMig")) + if (!$util.isString(message.multiMig)) + return "multiMig: string expected"; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { properties._orderBy = 1; if (!$util.isString(message.orderBy)) @@ -1009570,21 +1020784,23 @@ }; /** - * Creates a ListRegionMultiMigsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionMultiMigMembersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionMultiMigsRequest} ListRegionMultiMigsRequest + * @returns {google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest} ListRegionMultiMigMembersRequest */ - ListRegionMultiMigsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionMultiMigsRequest) + ListRegionMultiMigMembersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionMultiMigsRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) message.maxResults = object.maxResults >>> 0; + if (object.multiMig != null) + message.multiMig = String(object.multiMig); if (object.orderBy != null) message.orderBy = String(object.orderBy); if (object.pageToken != null) @@ -1009599,21 +1020815,22 @@ }; /** - * Creates a plain object from a ListRegionMultiMigsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionMultiMigMembersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionMultiMigsRequest} message ListRegionMultiMigsRequest + * @param {google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest} message ListRegionMultiMigMembersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionMultiMigsRequest.toObject = function toObject(message, options) { + ListRegionMultiMigMembersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.region = ""; object.project = ""; + object.multiMig = ""; } if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; @@ -1009639,6 +1020856,8 @@ if (options.oneofs) object._filter = "filter"; } + if (message.multiMig != null && message.hasOwnProperty("multiMig")) + object.multiMig = message.multiMig; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { object.returnPartialSuccess = message.returnPartialSuccess; if (options.oneofs) @@ -1009648,58 +1020867,58 @@ }; /** - * Converts this ListRegionMultiMigsRequest to JSON. + * Converts this ListRegionMultiMigMembersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest * @instance * @returns {Object.} JSON object */ - ListRegionMultiMigsRequest.prototype.toJSON = function toJSON() { + ListRegionMultiMigMembersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionMultiMigsRequest + * Gets the default type url for ListRegionMultiMigMembersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionMultiMigsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionMultiMigMembersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionMultiMigsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionMultiMigMembersRequest"; }; - return ListRegionMultiMigsRequest; + return ListRegionMultiMigMembersRequest; })(); - v1beta.ListRegionNetworkEndpointGroupsRequest = (function() { + v1beta.ListRegionMultiMigsRequest = (function() { /** - * Properties of a ListRegionNetworkEndpointGroupsRequest. + * Properties of a ListRegionMultiMigsRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionNetworkEndpointGroupsRequest - * @property {string|null} [filter] ListRegionNetworkEndpointGroupsRequest filter - * @property {number|null} [maxResults] ListRegionNetworkEndpointGroupsRequest maxResults - * @property {string|null} [orderBy] ListRegionNetworkEndpointGroupsRequest orderBy - * @property {string|null} [pageToken] ListRegionNetworkEndpointGroupsRequest pageToken - * @property {string|null} [project] ListRegionNetworkEndpointGroupsRequest project - * @property {string|null} [region] ListRegionNetworkEndpointGroupsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkEndpointGroupsRequest returnPartialSuccess + * @interface IListRegionMultiMigsRequest + * @property {string|null} [filter] ListRegionMultiMigsRequest filter + * @property {number|null} [maxResults] ListRegionMultiMigsRequest maxResults + * @property {string|null} [orderBy] ListRegionMultiMigsRequest orderBy + * @property {string|null} [pageToken] ListRegionMultiMigsRequest pageToken + * @property {string|null} [project] ListRegionMultiMigsRequest project + * @property {string|null} [region] ListRegionMultiMigsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionMultiMigsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionNetworkEndpointGroupsRequest. + * Constructs a new ListRegionMultiMigsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionNetworkEndpointGroupsRequest. - * @implements IListRegionNetworkEndpointGroupsRequest + * @classdesc Represents a ListRegionMultiMigsRequest. + * @implements IListRegionMultiMigsRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionMultiMigsRequest=} [properties] Properties to set */ - function ListRegionNetworkEndpointGroupsRequest(properties) { + function ListRegionMultiMigsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1009707,116 +1020926,116 @@ } /** - * ListRegionNetworkEndpointGroupsRequest filter. + * ListRegionMultiMigsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.filter = null; + ListRegionMultiMigsRequest.prototype.filter = null; /** - * ListRegionNetworkEndpointGroupsRequest maxResults. + * ListRegionMultiMigsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.maxResults = null; + ListRegionMultiMigsRequest.prototype.maxResults = null; /** - * ListRegionNetworkEndpointGroupsRequest orderBy. + * ListRegionMultiMigsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.orderBy = null; + ListRegionMultiMigsRequest.prototype.orderBy = null; /** - * ListRegionNetworkEndpointGroupsRequest pageToken. + * ListRegionMultiMigsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.pageToken = null; + ListRegionMultiMigsRequest.prototype.pageToken = null; /** - * ListRegionNetworkEndpointGroupsRequest project. + * ListRegionMultiMigsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.project = ""; + ListRegionMultiMigsRequest.prototype.project = ""; /** - * ListRegionNetworkEndpointGroupsRequest region. + * ListRegionMultiMigsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.region = ""; + ListRegionMultiMigsRequest.prototype.region = ""; /** - * ListRegionNetworkEndpointGroupsRequest returnPartialSuccess. + * ListRegionMultiMigsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; + ListRegionMultiMigsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionMultiMigsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionMultiMigsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionMultiMigsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionMultiMigsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionMultiMigsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionNetworkEndpointGroupsRequest instance using the specified properties. + * Creates a new ListRegionMultiMigsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest instance + * @param {google.cloud.compute.v1beta.IListRegionMultiMigsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionMultiMigsRequest} ListRegionMultiMigsRequest instance */ - ListRegionNetworkEndpointGroupsRequest.create = function create(properties) { - return new ListRegionNetworkEndpointGroupsRequest(properties); + ListRegionMultiMigsRequest.create = function create(properties) { + return new ListRegionMultiMigsRequest(properties); }; /** - * Encodes the specified ListRegionNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified ListRegionMultiMigsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionMultiMigsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionMultiMigsRequest} message ListRegionMultiMigsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkEndpointGroupsRequest.encode = function encode(message, writer) { + ListRegionMultiMigsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -1009837,33 +1021056,33 @@ }; /** - * Encodes the specified ListRegionNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified ListRegionMultiMigsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionMultiMigsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionMultiMigsRequest} message ListRegionMultiMigsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionMultiMigsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer. + * Decodes a ListRegionMultiMigsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1beta.ListRegionMultiMigsRequest} ListRegionMultiMigsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkEndpointGroupsRequest.decode = function decode(reader, length, error) { + ListRegionMultiMigsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionMultiMigsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1009906,30 +1021125,30 @@ }; /** - * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionMultiMigsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1beta.ListRegionMultiMigsRequest} ListRegionMultiMigsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionMultiMigsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionNetworkEndpointGroupsRequest message. + * Verifies a ListRegionMultiMigsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionNetworkEndpointGroupsRequest.verify = function verify(message) { + ListRegionMultiMigsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1009968,17 +1021187,17 @@ }; /** - * Creates a ListRegionNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionMultiMigsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1beta.ListRegionMultiMigsRequest} ListRegionMultiMigsRequest */ - ListRegionNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest) + ListRegionMultiMigsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionMultiMigsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionMultiMigsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1009997,15 +1021216,15 @@ }; /** - * Creates a plain object from a ListRegionNetworkEndpointGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionMultiMigsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest + * @param {google.cloud.compute.v1beta.ListRegionMultiMigsRequest} message ListRegionMultiMigsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { + ListRegionMultiMigsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1010046,58 +1021265,58 @@ }; /** - * Converts this ListRegionNetworkEndpointGroupsRequest to JSON. + * Converts this ListRegionMultiMigsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest * @instance * @returns {Object.} JSON object */ - ListRegionNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { + ListRegionMultiMigsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionNetworkEndpointGroupsRequest + * Gets the default type url for ListRegionMultiMigsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.ListRegionMultiMigsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionMultiMigsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionMultiMigsRequest"; }; - return ListRegionNetworkEndpointGroupsRequest; + return ListRegionMultiMigsRequest; })(); - v1beta.ListRegionNetworkFirewallPoliciesRequest = (function() { + v1beta.ListRegionNetworkEndpointGroupsRequest = (function() { /** - * Properties of a ListRegionNetworkFirewallPoliciesRequest. + * Properties of a ListRegionNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionNetworkFirewallPoliciesRequest - * @property {string|null} [filter] ListRegionNetworkFirewallPoliciesRequest filter - * @property {number|null} [maxResults] ListRegionNetworkFirewallPoliciesRequest maxResults - * @property {string|null} [orderBy] ListRegionNetworkFirewallPoliciesRequest orderBy - * @property {string|null} [pageToken] ListRegionNetworkFirewallPoliciesRequest pageToken - * @property {string|null} [project] ListRegionNetworkFirewallPoliciesRequest project - * @property {string|null} [region] ListRegionNetworkFirewallPoliciesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess + * @interface IListRegionNetworkEndpointGroupsRequest + * @property {string|null} [filter] ListRegionNetworkEndpointGroupsRequest filter + * @property {number|null} [maxResults] ListRegionNetworkEndpointGroupsRequest maxResults + * @property {string|null} [orderBy] ListRegionNetworkEndpointGroupsRequest orderBy + * @property {string|null} [pageToken] ListRegionNetworkEndpointGroupsRequest pageToken + * @property {string|null} [project] ListRegionNetworkEndpointGroupsRequest project + * @property {string|null} [region] ListRegionNetworkEndpointGroupsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkEndpointGroupsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionNetworkFirewallPoliciesRequest. + * Constructs a new ListRegionNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionNetworkFirewallPoliciesRequest. - * @implements IListRegionNetworkFirewallPoliciesRequest + * @classdesc Represents a ListRegionNetworkEndpointGroupsRequest. + * @implements IListRegionNetworkEndpointGroupsRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set */ - function ListRegionNetworkFirewallPoliciesRequest(properties) { + function ListRegionNetworkEndpointGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1010105,116 +1021324,116 @@ } /** - * ListRegionNetworkFirewallPoliciesRequest filter. + * ListRegionNetworkEndpointGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.filter = null; + ListRegionNetworkEndpointGroupsRequest.prototype.filter = null; /** - * ListRegionNetworkFirewallPoliciesRequest maxResults. + * ListRegionNetworkEndpointGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.maxResults = null; + ListRegionNetworkEndpointGroupsRequest.prototype.maxResults = null; /** - * ListRegionNetworkFirewallPoliciesRequest orderBy. + * ListRegionNetworkEndpointGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.orderBy = null; + ListRegionNetworkEndpointGroupsRequest.prototype.orderBy = null; /** - * ListRegionNetworkFirewallPoliciesRequest pageToken. + * ListRegionNetworkEndpointGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.pageToken = null; + ListRegionNetworkEndpointGroupsRequest.prototype.pageToken = null; /** - * ListRegionNetworkFirewallPoliciesRequest project. + * ListRegionNetworkEndpointGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.project = ""; + ListRegionNetworkEndpointGroupsRequest.prototype.project = ""; /** - * ListRegionNetworkFirewallPoliciesRequest region. + * ListRegionNetworkEndpointGroupsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.region = ""; + ListRegionNetworkEndpointGroupsRequest.prototype.region = ""; /** - * ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess. + * ListRegionNetworkEndpointGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.returnPartialSuccess = null; + ListRegionNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionNetworkFirewallPoliciesRequest instance using the specified properties. + * Creates a new ListRegionNetworkEndpointGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest instance + * @param {google.cloud.compute.v1beta.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest instance */ - ListRegionNetworkFirewallPoliciesRequest.create = function create(properties) { - return new ListRegionNetworkFirewallPoliciesRequest(properties); + ListRegionNetworkEndpointGroupsRequest.create = function create(properties) { + return new ListRegionNetworkEndpointGroupsRequest(properties); }; /** - * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkFirewallPoliciesRequest.encode = function encode(message, writer) { + ListRegionNetworkEndpointGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -1010235,33 +1021454,33 @@ }; /** - * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkFirewallPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkFirewallPoliciesRequest.decode = function decode(reader, length, error) { + ListRegionNetworkEndpointGroupsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1010304,30 +1021523,30 @@ }; /** - * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkFirewallPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionNetworkFirewallPoliciesRequest message. + * Verifies a ListRegionNetworkEndpointGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionNetworkFirewallPoliciesRequest.verify = function verify(message) { + ListRegionNetworkEndpointGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1010366,17 +1021585,17 @@ }; /** - * Creates a ListRegionNetworkFirewallPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest */ - ListRegionNetworkFirewallPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest) + ListRegionNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1010395,15 +1021614,15 @@ }; /** - * Creates a plain object from a ListRegionNetworkFirewallPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionNetworkEndpointGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest + * @param {google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionNetworkFirewallPoliciesRequest.toObject = function toObject(message, options) { + ListRegionNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1010444,58 +1021663,58 @@ }; /** - * Converts this ListRegionNetworkFirewallPoliciesRequest to JSON. + * Converts this ListRegionNetworkEndpointGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest * @instance * @returns {Object.} JSON object */ - ListRegionNetworkFirewallPoliciesRequest.prototype.toJSON = function toJSON() { + ListRegionNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionNetworkFirewallPoliciesRequest + * Gets the default type url for ListRegionNetworkEndpointGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionNetworkFirewallPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionNetworkEndpointGroupsRequest"; }; - return ListRegionNetworkFirewallPoliciesRequest; + return ListRegionNetworkEndpointGroupsRequest; })(); - v1beta.ListRegionNetworkPoliciesRequest = (function() { + v1beta.ListRegionNetworkFirewallPoliciesRequest = (function() { /** - * Properties of a ListRegionNetworkPoliciesRequest. + * Properties of a ListRegionNetworkFirewallPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionNetworkPoliciesRequest - * @property {string|null} [filter] ListRegionNetworkPoliciesRequest filter - * @property {number|null} [maxResults] ListRegionNetworkPoliciesRequest maxResults - * @property {string|null} [orderBy] ListRegionNetworkPoliciesRequest orderBy - * @property {string|null} [pageToken] ListRegionNetworkPoliciesRequest pageToken - * @property {string|null} [project] ListRegionNetworkPoliciesRequest project - * @property {string|null} [region] ListRegionNetworkPoliciesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkPoliciesRequest returnPartialSuccess + * @interface IListRegionNetworkFirewallPoliciesRequest + * @property {string|null} [filter] ListRegionNetworkFirewallPoliciesRequest filter + * @property {number|null} [maxResults] ListRegionNetworkFirewallPoliciesRequest maxResults + * @property {string|null} [orderBy] ListRegionNetworkFirewallPoliciesRequest orderBy + * @property {string|null} [pageToken] ListRegionNetworkFirewallPoliciesRequest pageToken + * @property {string|null} [project] ListRegionNetworkFirewallPoliciesRequest project + * @property {string|null} [region] ListRegionNetworkFirewallPoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionNetworkPoliciesRequest. + * Constructs a new ListRegionNetworkFirewallPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionNetworkPoliciesRequest. - * @implements IListRegionNetworkPoliciesRequest + * @classdesc Represents a ListRegionNetworkFirewallPoliciesRequest. + * @implements IListRegionNetworkFirewallPoliciesRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionNetworkPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set */ - function ListRegionNetworkPoliciesRequest(properties) { + function ListRegionNetworkFirewallPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1010503,116 +1021722,116 @@ } /** - * ListRegionNetworkPoliciesRequest filter. + * ListRegionNetworkFirewallPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNetworkPoliciesRequest.prototype.filter = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.filter = null; /** - * ListRegionNetworkPoliciesRequest maxResults. + * ListRegionNetworkFirewallPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNetworkPoliciesRequest.prototype.maxResults = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.maxResults = null; /** - * ListRegionNetworkPoliciesRequest orderBy. + * ListRegionNetworkFirewallPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNetworkPoliciesRequest.prototype.orderBy = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.orderBy = null; /** - * ListRegionNetworkPoliciesRequest pageToken. + * ListRegionNetworkFirewallPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNetworkPoliciesRequest.prototype.pageToken = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.pageToken = null; /** - * ListRegionNetworkPoliciesRequest project. + * ListRegionNetworkFirewallPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNetworkPoliciesRequest.prototype.project = ""; + ListRegionNetworkFirewallPoliciesRequest.prototype.project = ""; /** - * ListRegionNetworkPoliciesRequest region. + * ListRegionNetworkFirewallPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNetworkPoliciesRequest.prototype.region = ""; + ListRegionNetworkFirewallPoliciesRequest.prototype.region = ""; /** - * ListRegionNetworkPoliciesRequest returnPartialSuccess. + * ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNetworkPoliciesRequest.prototype.returnPartialSuccess = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionNetworkPoliciesRequest instance using the specified properties. + * Creates a new ListRegionNetworkFirewallPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionNetworkPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest} ListRegionNetworkPoliciesRequest instance + * @param {google.cloud.compute.v1beta.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest instance */ - ListRegionNetworkPoliciesRequest.create = function create(properties) { - return new ListRegionNetworkPoliciesRequest(properties); + ListRegionNetworkFirewallPoliciesRequest.create = function create(properties) { + return new ListRegionNetworkFirewallPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionNetworkPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionNetworkPoliciesRequest} message ListRegionNetworkPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkPoliciesRequest.encode = function encode(message, writer) { + ListRegionNetworkFirewallPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -1010633,33 +1021852,33 @@ }; /** - * Encodes the specified ListRegionNetworkPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionNetworkPoliciesRequest} message ListRegionNetworkPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionNetworkFirewallPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionNetworkPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest} ListRegionNetworkPoliciesRequest + * @returns {google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkPoliciesRequest.decode = function decode(reader, length, error) { + ListRegionNetworkFirewallPoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1010702,30 +1021921,30 @@ }; /** - * Decodes a ListRegionNetworkPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest} ListRegionNetworkPoliciesRequest + * @returns {google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionNetworkFirewallPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionNetworkPoliciesRequest message. + * Verifies a ListRegionNetworkFirewallPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionNetworkPoliciesRequest.verify = function verify(message) { + ListRegionNetworkFirewallPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1010764,17 +1021983,17 @@ }; /** - * Creates a ListRegionNetworkPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionNetworkFirewallPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest} ListRegionNetworkPoliciesRequest + * @returns {google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest */ - ListRegionNetworkPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest) + ListRegionNetworkFirewallPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1010793,15 +1022012,15 @@ }; /** - * Creates a plain object from a ListRegionNetworkPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionNetworkFirewallPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest} message ListRegionNetworkPoliciesRequest + * @param {google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionNetworkPoliciesRequest.toObject = function toObject(message, options) { + ListRegionNetworkFirewallPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1010842,58 +1022061,58 @@ }; /** - * Converts this ListRegionNetworkPoliciesRequest to JSON. + * Converts this ListRegionNetworkFirewallPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionNetworkPoliciesRequest.prototype.toJSON = function toJSON() { + ListRegionNetworkFirewallPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionNetworkPoliciesRequest + * Gets the default type url for ListRegionNetworkFirewallPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionNetworkPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionNetworkFirewallPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionNetworkFirewallPoliciesRequest"; }; - return ListRegionNetworkPoliciesRequest; + return ListRegionNetworkFirewallPoliciesRequest; })(); - v1beta.ListRegionNotificationEndpointsRequest = (function() { + v1beta.ListRegionNetworkPoliciesRequest = (function() { /** - * Properties of a ListRegionNotificationEndpointsRequest. + * Properties of a ListRegionNetworkPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionNotificationEndpointsRequest - * @property {string|null} [filter] ListRegionNotificationEndpointsRequest filter - * @property {number|null} [maxResults] ListRegionNotificationEndpointsRequest maxResults - * @property {string|null} [orderBy] ListRegionNotificationEndpointsRequest orderBy - * @property {string|null} [pageToken] ListRegionNotificationEndpointsRequest pageToken - * @property {string|null} [project] ListRegionNotificationEndpointsRequest project - * @property {string|null} [region] ListRegionNotificationEndpointsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionNotificationEndpointsRequest returnPartialSuccess + * @interface IListRegionNetworkPoliciesRequest + * @property {string|null} [filter] ListRegionNetworkPoliciesRequest filter + * @property {number|null} [maxResults] ListRegionNetworkPoliciesRequest maxResults + * @property {string|null} [orderBy] ListRegionNetworkPoliciesRequest orderBy + * @property {string|null} [pageToken] ListRegionNetworkPoliciesRequest pageToken + * @property {string|null} [project] ListRegionNetworkPoliciesRequest project + * @property {string|null} [region] ListRegionNetworkPoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkPoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionNotificationEndpointsRequest. + * Constructs a new ListRegionNetworkPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionNotificationEndpointsRequest. - * @implements IListRegionNotificationEndpointsRequest + * @classdesc Represents a ListRegionNetworkPoliciesRequest. + * @implements IListRegionNetworkPoliciesRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionNotificationEndpointsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionNetworkPoliciesRequest=} [properties] Properties to set */ - function ListRegionNotificationEndpointsRequest(properties) { + function ListRegionNetworkPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1010901,116 +1022120,116 @@ } /** - * ListRegionNotificationEndpointsRequest filter. + * ListRegionNetworkPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.filter = null; + ListRegionNetworkPoliciesRequest.prototype.filter = null; /** - * ListRegionNotificationEndpointsRequest maxResults. + * ListRegionNetworkPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.maxResults = null; + ListRegionNetworkPoliciesRequest.prototype.maxResults = null; /** - * ListRegionNotificationEndpointsRequest orderBy. + * ListRegionNetworkPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.orderBy = null; + ListRegionNetworkPoliciesRequest.prototype.orderBy = null; /** - * ListRegionNotificationEndpointsRequest pageToken. + * ListRegionNetworkPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.pageToken = null; + ListRegionNetworkPoliciesRequest.prototype.pageToken = null; /** - * ListRegionNotificationEndpointsRequest project. + * ListRegionNetworkPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.project = ""; + ListRegionNetworkPoliciesRequest.prototype.project = ""; /** - * ListRegionNotificationEndpointsRequest region. + * ListRegionNetworkPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.region = ""; + ListRegionNetworkPoliciesRequest.prototype.region = ""; /** - * ListRegionNotificationEndpointsRequest returnPartialSuccess. + * ListRegionNetworkPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.returnPartialSuccess = null; + ListRegionNetworkPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionNetworkPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionNetworkPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionNetworkPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionNetworkPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionNetworkPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionNotificationEndpointsRequest instance using the specified properties. + * Creates a new ListRegionNetworkPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionNotificationEndpointsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest instance + * @param {google.cloud.compute.v1beta.IListRegionNetworkPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest} ListRegionNetworkPoliciesRequest instance */ - ListRegionNotificationEndpointsRequest.create = function create(properties) { - return new ListRegionNotificationEndpointsRequest(properties); + ListRegionNetworkPoliciesRequest.create = function create(properties) { + return new ListRegionNetworkPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionNotificationEndpointsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionNetworkPoliciesRequest} message ListRegionNetworkPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNotificationEndpointsRequest.encode = function encode(message, writer) { + ListRegionNetworkPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -1011031,33 +1022250,33 @@ }; /** - * Encodes the specified ListRegionNotificationEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionNetworkPoliciesRequest} message ListRegionNetworkPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNotificationEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionNetworkPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer. + * Decodes a ListRegionNetworkPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest + * @returns {google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest} ListRegionNetworkPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNotificationEndpointsRequest.decode = function decode(reader, length, error) { + ListRegionNetworkPoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1011100,30 +1022319,30 @@ }; /** - * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionNetworkPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest + * @returns {google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest} ListRegionNetworkPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNotificationEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionNetworkPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionNotificationEndpointsRequest message. + * Verifies a ListRegionNetworkPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionNotificationEndpointsRequest.verify = function verify(message) { + ListRegionNetworkPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1011162,17 +1022381,17 @@ }; /** - * Creates a ListRegionNotificationEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionNetworkPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest + * @returns {google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest} ListRegionNetworkPoliciesRequest */ - ListRegionNotificationEndpointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest) + ListRegionNetworkPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1011191,15 +1022410,15 @@ }; /** - * Creates a plain object from a ListRegionNotificationEndpointsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionNetworkPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest + * @param {google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest} message ListRegionNetworkPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionNotificationEndpointsRequest.toObject = function toObject(message, options) { + ListRegionNetworkPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1011240,58 +1022459,58 @@ }; /** - * Converts this ListRegionNotificationEndpointsRequest to JSON. + * Converts this ListRegionNetworkPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionNotificationEndpointsRequest.prototype.toJSON = function toJSON() { + ListRegionNetworkPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionNotificationEndpointsRequest + * Gets the default type url for ListRegionNetworkPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionNotificationEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionNetworkPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionNetworkPoliciesRequest"; }; - return ListRegionNotificationEndpointsRequest; + return ListRegionNetworkPoliciesRequest; })(); - v1beta.ListRegionOperationsRequest = (function() { + v1beta.ListRegionNotificationEndpointsRequest = (function() { /** - * Properties of a ListRegionOperationsRequest. + * Properties of a ListRegionNotificationEndpointsRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionOperationsRequest - * @property {string|null} [filter] ListRegionOperationsRequest filter - * @property {number|null} [maxResults] ListRegionOperationsRequest maxResults - * @property {string|null} [orderBy] ListRegionOperationsRequest orderBy - * @property {string|null} [pageToken] ListRegionOperationsRequest pageToken - * @property {string|null} [project] ListRegionOperationsRequest project - * @property {string|null} [region] ListRegionOperationsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionOperationsRequest returnPartialSuccess + * @interface IListRegionNotificationEndpointsRequest + * @property {string|null} [filter] ListRegionNotificationEndpointsRequest filter + * @property {number|null} [maxResults] ListRegionNotificationEndpointsRequest maxResults + * @property {string|null} [orderBy] ListRegionNotificationEndpointsRequest orderBy + * @property {string|null} [pageToken] ListRegionNotificationEndpointsRequest pageToken + * @property {string|null} [project] ListRegionNotificationEndpointsRequest project + * @property {string|null} [region] ListRegionNotificationEndpointsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionNotificationEndpointsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionOperationsRequest. + * Constructs a new ListRegionNotificationEndpointsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionOperationsRequest. - * @implements IListRegionOperationsRequest + * @classdesc Represents a ListRegionNotificationEndpointsRequest. + * @implements IListRegionNotificationEndpointsRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionOperationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionNotificationEndpointsRequest=} [properties] Properties to set */ - function ListRegionOperationsRequest(properties) { + function ListRegionNotificationEndpointsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1011299,116 +1022518,116 @@ } /** - * ListRegionOperationsRequest filter. + * ListRegionNotificationEndpointsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.filter = null; + ListRegionNotificationEndpointsRequest.prototype.filter = null; /** - * ListRegionOperationsRequest maxResults. + * ListRegionNotificationEndpointsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.maxResults = null; + ListRegionNotificationEndpointsRequest.prototype.maxResults = null; /** - * ListRegionOperationsRequest orderBy. + * ListRegionNotificationEndpointsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.orderBy = null; + ListRegionNotificationEndpointsRequest.prototype.orderBy = null; /** - * ListRegionOperationsRequest pageToken. + * ListRegionNotificationEndpointsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.pageToken = null; + ListRegionNotificationEndpointsRequest.prototype.pageToken = null; /** - * ListRegionOperationsRequest project. + * ListRegionNotificationEndpointsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.project = ""; + ListRegionNotificationEndpointsRequest.prototype.project = ""; /** - * ListRegionOperationsRequest region. + * ListRegionNotificationEndpointsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.region = ""; + ListRegionNotificationEndpointsRequest.prototype.region = ""; /** - * ListRegionOperationsRequest returnPartialSuccess. + * ListRegionNotificationEndpointsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.returnPartialSuccess = null; + ListRegionNotificationEndpointsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionOperationsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionOperationsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionOperationsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionOperationsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionOperationsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionOperationsRequest instance using the specified properties. + * Creates a new ListRegionNotificationEndpointsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionOperationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionOperationsRequest} ListRegionOperationsRequest instance + * @param {google.cloud.compute.v1beta.IListRegionNotificationEndpointsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest instance */ - ListRegionOperationsRequest.create = function create(properties) { - return new ListRegionOperationsRequest(properties); + ListRegionNotificationEndpointsRequest.create = function create(properties) { + return new ListRegionNotificationEndpointsRequest(properties); }; /** - * Encodes the specified ListRegionOperationsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionOperationsRequest.verify|verify} messages. + * Encodes the specified ListRegionNotificationEndpointsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionOperationsRequest.encode = function encode(message, writer) { + ListRegionNotificationEndpointsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -1011429,33 +1022648,33 @@ }; /** - * Encodes the specified ListRegionOperationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionOperationsRequest.verify|verify} messages. + * Encodes the specified ListRegionNotificationEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionNotificationEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionOperationsRequest message from the specified reader or buffer. + * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionOperationsRequest} ListRegionOperationsRequest + * @returns {google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionOperationsRequest.decode = function decode(reader, length, error) { + ListRegionNotificationEndpointsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionOperationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1011498,30 +1022717,30 @@ }; /** - * Decodes a ListRegionOperationsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionOperationsRequest} ListRegionOperationsRequest + * @returns {google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionOperationsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionNotificationEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionOperationsRequest message. + * Verifies a ListRegionNotificationEndpointsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionOperationsRequest.verify = function verify(message) { + ListRegionNotificationEndpointsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1011560,17 +1022779,17 @@ }; /** - * Creates a ListRegionOperationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionNotificationEndpointsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionOperationsRequest} ListRegionOperationsRequest + * @returns {google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest */ - ListRegionOperationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionOperationsRequest) + ListRegionNotificationEndpointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionOperationsRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1011589,15 +1022808,15 @@ }; /** - * Creates a plain object from a ListRegionOperationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionNotificationEndpointsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionOperationsRequest} message ListRegionOperationsRequest + * @param {google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionOperationsRequest.toObject = function toObject(message, options) { + ListRegionNotificationEndpointsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1011638,58 +1022857,58 @@ }; /** - * Converts this ListRegionOperationsRequest to JSON. + * Converts this ListRegionNotificationEndpointsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest * @instance * @returns {Object.} JSON object */ - ListRegionOperationsRequest.prototype.toJSON = function toJSON() { + ListRegionNotificationEndpointsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionOperationsRequest + * Gets the default type url for ListRegionNotificationEndpointsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionOperationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionNotificationEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionOperationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionNotificationEndpointsRequest"; }; - return ListRegionOperationsRequest; + return ListRegionNotificationEndpointsRequest; })(); - v1beta.ListRegionSecurityPoliciesRequest = (function() { + v1beta.ListRegionOperationsRequest = (function() { /** - * Properties of a ListRegionSecurityPoliciesRequest. + * Properties of a ListRegionOperationsRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionSecurityPoliciesRequest - * @property {string|null} [filter] ListRegionSecurityPoliciesRequest filter - * @property {number|null} [maxResults] ListRegionSecurityPoliciesRequest maxResults - * @property {string|null} [orderBy] ListRegionSecurityPoliciesRequest orderBy - * @property {string|null} [pageToken] ListRegionSecurityPoliciesRequest pageToken - * @property {string|null} [project] ListRegionSecurityPoliciesRequest project - * @property {string|null} [region] ListRegionSecurityPoliciesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionSecurityPoliciesRequest returnPartialSuccess + * @interface IListRegionOperationsRequest + * @property {string|null} [filter] ListRegionOperationsRequest filter + * @property {number|null} [maxResults] ListRegionOperationsRequest maxResults + * @property {string|null} [orderBy] ListRegionOperationsRequest orderBy + * @property {string|null} [pageToken] ListRegionOperationsRequest pageToken + * @property {string|null} [project] ListRegionOperationsRequest project + * @property {string|null} [region] ListRegionOperationsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionOperationsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionSecurityPoliciesRequest. + * Constructs a new ListRegionOperationsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionSecurityPoliciesRequest. - * @implements IListRegionSecurityPoliciesRequest + * @classdesc Represents a ListRegionOperationsRequest. + * @implements IListRegionOperationsRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionSecurityPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionOperationsRequest=} [properties] Properties to set */ - function ListRegionSecurityPoliciesRequest(properties) { + function ListRegionOperationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1011697,116 +1022916,116 @@ } /** - * ListRegionSecurityPoliciesRequest filter. + * ListRegionOperationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.filter = null; + ListRegionOperationsRequest.prototype.filter = null; /** - * ListRegionSecurityPoliciesRequest maxResults. + * ListRegionOperationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.maxResults = null; + ListRegionOperationsRequest.prototype.maxResults = null; /** - * ListRegionSecurityPoliciesRequest orderBy. + * ListRegionOperationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.orderBy = null; + ListRegionOperationsRequest.prototype.orderBy = null; /** - * ListRegionSecurityPoliciesRequest pageToken. + * ListRegionOperationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.pageToken = null; + ListRegionOperationsRequest.prototype.pageToken = null; /** - * ListRegionSecurityPoliciesRequest project. + * ListRegionOperationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.project = ""; + ListRegionOperationsRequest.prototype.project = ""; /** - * ListRegionSecurityPoliciesRequest region. + * ListRegionOperationsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.region = ""; + ListRegionOperationsRequest.prototype.region = ""; /** - * ListRegionSecurityPoliciesRequest returnPartialSuccess. + * ListRegionOperationsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.returnPartialSuccess = null; + ListRegionOperationsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionSecurityPoliciesRequest instance using the specified properties. + * Creates a new ListRegionOperationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionSecurityPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest instance + * @param {google.cloud.compute.v1beta.IListRegionOperationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionOperationsRequest} ListRegionOperationsRequest instance */ - ListRegionSecurityPoliciesRequest.create = function create(properties) { - return new ListRegionSecurityPoliciesRequest(properties); + ListRegionOperationsRequest.create = function create(properties) { + return new ListRegionOperationsRequest(properties); }; /** - * Encodes the specified ListRegionSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionOperationsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionOperationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSecurityPoliciesRequest.encode = function encode(message, writer) { + ListRegionOperationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -1011827,33 +1023046,33 @@ }; /** - * Encodes the specified ListRegionSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionOperationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionOperationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRegionOperationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest + * @returns {google.cloud.compute.v1beta.ListRegionOperationsRequest} ListRegionOperationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSecurityPoliciesRequest.decode = function decode(reader, length, error) { + ListRegionOperationsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionOperationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1011896,30 +1023115,30 @@ }; /** - * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionOperationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest + * @returns {google.cloud.compute.v1beta.ListRegionOperationsRequest} ListRegionOperationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionOperationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionSecurityPoliciesRequest message. + * Verifies a ListRegionOperationsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionSecurityPoliciesRequest.verify = function verify(message) { + ListRegionOperationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1011958,17 +1023177,17 @@ }; /** - * Creates a ListRegionSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionOperationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest + * @returns {google.cloud.compute.v1beta.ListRegionOperationsRequest} ListRegionOperationsRequest */ - ListRegionSecurityPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest) + ListRegionOperationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionOperationsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionOperationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1011987,15 +1023206,15 @@ }; /** - * Creates a plain object from a ListRegionSecurityPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionOperationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest + * @param {google.cloud.compute.v1beta.ListRegionOperationsRequest} message ListRegionOperationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionSecurityPoliciesRequest.toObject = function toObject(message, options) { + ListRegionOperationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1012036,58 +1023255,58 @@ }; /** - * Converts this ListRegionSecurityPoliciesRequest to JSON. + * Converts this ListRegionOperationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest * @instance * @returns {Object.} JSON object */ - ListRegionSecurityPoliciesRequest.prototype.toJSON = function toJSON() { + ListRegionOperationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionSecurityPoliciesRequest + * Gets the default type url for ListRegionOperationsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionOperationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionOperationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionOperationsRequest"; }; - return ListRegionSecurityPoliciesRequest; + return ListRegionOperationsRequest; })(); - v1beta.ListRegionSnapshotsRequest = (function() { + v1beta.ListRegionSecurityPoliciesRequest = (function() { /** - * Properties of a ListRegionSnapshotsRequest. + * Properties of a ListRegionSecurityPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionSnapshotsRequest - * @property {string|null} [filter] ListRegionSnapshotsRequest filter - * @property {number|null} [maxResults] ListRegionSnapshotsRequest maxResults - * @property {string|null} [orderBy] ListRegionSnapshotsRequest orderBy - * @property {string|null} [pageToken] ListRegionSnapshotsRequest pageToken - * @property {string|null} [project] ListRegionSnapshotsRequest project - * @property {string|null} [region] ListRegionSnapshotsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionSnapshotsRequest returnPartialSuccess + * @interface IListRegionSecurityPoliciesRequest + * @property {string|null} [filter] ListRegionSecurityPoliciesRequest filter + * @property {number|null} [maxResults] ListRegionSecurityPoliciesRequest maxResults + * @property {string|null} [orderBy] ListRegionSecurityPoliciesRequest orderBy + * @property {string|null} [pageToken] ListRegionSecurityPoliciesRequest pageToken + * @property {string|null} [project] ListRegionSecurityPoliciesRequest project + * @property {string|null} [region] ListRegionSecurityPoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionSecurityPoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionSnapshotsRequest. + * Constructs a new ListRegionSecurityPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionSnapshotsRequest. - * @implements IListRegionSnapshotsRequest + * @classdesc Represents a ListRegionSecurityPoliciesRequest. + * @implements IListRegionSecurityPoliciesRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionSnapshotsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionSecurityPoliciesRequest=} [properties] Properties to set */ - function ListRegionSnapshotsRequest(properties) { + function ListRegionSecurityPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1012095,116 +1023314,116 @@ } /** - * ListRegionSnapshotsRequest filter. + * ListRegionSecurityPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSnapshotsRequest.prototype.filter = null; + ListRegionSecurityPoliciesRequest.prototype.filter = null; /** - * ListRegionSnapshotsRequest maxResults. + * ListRegionSecurityPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSnapshotsRequest.prototype.maxResults = null; + ListRegionSecurityPoliciesRequest.prototype.maxResults = null; /** - * ListRegionSnapshotsRequest orderBy. + * ListRegionSecurityPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSnapshotsRequest.prototype.orderBy = null; + ListRegionSecurityPoliciesRequest.prototype.orderBy = null; /** - * ListRegionSnapshotsRequest pageToken. + * ListRegionSecurityPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSnapshotsRequest.prototype.pageToken = null; + ListRegionSecurityPoliciesRequest.prototype.pageToken = null; /** - * ListRegionSnapshotsRequest project. + * ListRegionSecurityPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSnapshotsRequest.prototype.project = ""; + ListRegionSecurityPoliciesRequest.prototype.project = ""; /** - * ListRegionSnapshotsRequest region. + * ListRegionSecurityPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSnapshotsRequest.prototype.region = ""; + ListRegionSecurityPoliciesRequest.prototype.region = ""; /** - * ListRegionSnapshotsRequest returnPartialSuccess. + * ListRegionSecurityPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSnapshotsRequest.prototype.returnPartialSuccess = null; + ListRegionSecurityPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSnapshotsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSnapshotsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSnapshotsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSnapshotsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSnapshotsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionSnapshotsRequest instance using the specified properties. + * Creates a new ListRegionSecurityPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionSnapshotsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionSnapshotsRequest} ListRegionSnapshotsRequest instance + * @param {google.cloud.compute.v1beta.IListRegionSecurityPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest instance */ - ListRegionSnapshotsRequest.create = function create(properties) { - return new ListRegionSnapshotsRequest(properties); + ListRegionSecurityPoliciesRequest.create = function create(properties) { + return new ListRegionSecurityPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionSnapshotsRequest.verify|verify} messages. + * Encodes the specified ListRegionSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionSnapshotsRequest} message ListRegionSnapshotsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSnapshotsRequest.encode = function encode(message, writer) { + ListRegionSecurityPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -1012225,33 +1023444,33 @@ }; /** - * Encodes the specified ListRegionSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionSnapshotsRequest.verify|verify} messages. + * Encodes the specified ListRegionSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionSnapshotsRequest} message ListRegionSnapshotsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionSnapshotsRequest message from the specified reader or buffer. + * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionSnapshotsRequest} ListRegionSnapshotsRequest + * @returns {google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSnapshotsRequest.decode = function decode(reader, length, error) { + ListRegionSecurityPoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionSnapshotsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1012294,30 +1023513,30 @@ }; /** - * Decodes a ListRegionSnapshotsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionSnapshotsRequest} ListRegionSnapshotsRequest + * @returns {google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionSnapshotsRequest message. + * Verifies a ListRegionSecurityPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionSnapshotsRequest.verify = function verify(message) { + ListRegionSecurityPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1012356,17 +1023575,17 @@ }; /** - * Creates a ListRegionSnapshotsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionSnapshotsRequest} ListRegionSnapshotsRequest + * @returns {google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest */ - ListRegionSnapshotsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionSnapshotsRequest) + ListRegionSecurityPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionSnapshotsRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1012385,15 +1023604,15 @@ }; /** - * Creates a plain object from a ListRegionSnapshotsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionSecurityPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionSnapshotsRequest} message ListRegionSnapshotsRequest + * @param {google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionSnapshotsRequest.toObject = function toObject(message, options) { + ListRegionSecurityPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1012434,58 +1023653,58 @@ }; /** - * Converts this ListRegionSnapshotsRequest to JSON. + * Converts this ListRegionSecurityPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionSnapshotsRequest.prototype.toJSON = function toJSON() { + ListRegionSecurityPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionSnapshotsRequest + * Gets the default type url for ListRegionSecurityPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest + * @memberof google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionSnapshotsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionSecurityPoliciesRequest"; }; - return ListRegionSnapshotsRequest; + return ListRegionSecurityPoliciesRequest; })(); - v1beta.ListRegionSslCertificatesRequest = (function() { + v1beta.ListRegionSnapshotsRequest = (function() { /** - * Properties of a ListRegionSslCertificatesRequest. + * Properties of a ListRegionSnapshotsRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionSslCertificatesRequest - * @property {string|null} [filter] ListRegionSslCertificatesRequest filter - * @property {number|null} [maxResults] ListRegionSslCertificatesRequest maxResults - * @property {string|null} [orderBy] ListRegionSslCertificatesRequest orderBy - * @property {string|null} [pageToken] ListRegionSslCertificatesRequest pageToken - * @property {string|null} [project] ListRegionSslCertificatesRequest project - * @property {string|null} [region] ListRegionSslCertificatesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionSslCertificatesRequest returnPartialSuccess + * @interface IListRegionSnapshotsRequest + * @property {string|null} [filter] ListRegionSnapshotsRequest filter + * @property {number|null} [maxResults] ListRegionSnapshotsRequest maxResults + * @property {string|null} [orderBy] ListRegionSnapshotsRequest orderBy + * @property {string|null} [pageToken] ListRegionSnapshotsRequest pageToken + * @property {string|null} [project] ListRegionSnapshotsRequest project + * @property {string|null} [region] ListRegionSnapshotsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionSnapshotsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionSslCertificatesRequest. + * Constructs a new ListRegionSnapshotsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionSslCertificatesRequest. - * @implements IListRegionSslCertificatesRequest + * @classdesc Represents a ListRegionSnapshotsRequest. + * @implements IListRegionSnapshotsRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionSslCertificatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionSnapshotsRequest=} [properties] Properties to set */ - function ListRegionSslCertificatesRequest(properties) { + function ListRegionSnapshotsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1012493,116 +1023712,116 @@ } /** - * ListRegionSslCertificatesRequest filter. + * ListRegionSnapshotsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.filter = null; + ListRegionSnapshotsRequest.prototype.filter = null; /** - * ListRegionSslCertificatesRequest maxResults. + * ListRegionSnapshotsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.maxResults = null; + ListRegionSnapshotsRequest.prototype.maxResults = null; /** - * ListRegionSslCertificatesRequest orderBy. + * ListRegionSnapshotsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.orderBy = null; + ListRegionSnapshotsRequest.prototype.orderBy = null; /** - * ListRegionSslCertificatesRequest pageToken. + * ListRegionSnapshotsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.pageToken = null; + ListRegionSnapshotsRequest.prototype.pageToken = null; /** - * ListRegionSslCertificatesRequest project. + * ListRegionSnapshotsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.project = ""; + ListRegionSnapshotsRequest.prototype.project = ""; /** - * ListRegionSslCertificatesRequest region. + * ListRegionSnapshotsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.region = ""; + ListRegionSnapshotsRequest.prototype.region = ""; /** - * ListRegionSslCertificatesRequest returnPartialSuccess. + * ListRegionSnapshotsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.returnPartialSuccess = null; + ListRegionSnapshotsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionSnapshotsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionSnapshotsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionSnapshotsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionSnapshotsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionSnapshotsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionSslCertificatesRequest instance using the specified properties. + * Creates a new ListRegionSnapshotsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionSslCertificatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest instance + * @param {google.cloud.compute.v1beta.IListRegionSnapshotsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionSnapshotsRequest} ListRegionSnapshotsRequest instance */ - ListRegionSslCertificatesRequest.create = function create(properties) { - return new ListRegionSslCertificatesRequest(properties); + ListRegionSnapshotsRequest.create = function create(properties) { + return new ListRegionSnapshotsRequest(properties); }; /** - * Encodes the specified ListRegionSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionSslCertificatesRequest.verify|verify} messages. + * Encodes the specified ListRegionSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionSnapshotsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionSnapshotsRequest} message ListRegionSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslCertificatesRequest.encode = function encode(message, writer) { + ListRegionSnapshotsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -1012623,33 +1023842,33 @@ }; /** - * Encodes the specified ListRegionSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionSslCertificatesRequest.verify|verify} messages. + * Encodes the specified ListRegionSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionSnapshotsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionSnapshotsRequest} message ListRegionSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer. + * Decodes a ListRegionSnapshotsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest + * @returns {google.cloud.compute.v1beta.ListRegionSnapshotsRequest} ListRegionSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslCertificatesRequest.decode = function decode(reader, length, error) { + ListRegionSnapshotsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionSslCertificatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionSnapshotsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1012692,30 +1023911,30 @@ }; /** - * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionSnapshotsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest + * @returns {google.cloud.compute.v1beta.ListRegionSnapshotsRequest} ListRegionSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionSslCertificatesRequest message. + * Verifies a ListRegionSnapshotsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionSslCertificatesRequest.verify = function verify(message) { + ListRegionSnapshotsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1012754,17 +1023973,17 @@ }; /** - * Creates a ListRegionSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionSnapshotsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest + * @returns {google.cloud.compute.v1beta.ListRegionSnapshotsRequest} ListRegionSnapshotsRequest */ - ListRegionSslCertificatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionSslCertificatesRequest) + ListRegionSnapshotsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionSnapshotsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionSslCertificatesRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionSnapshotsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1012783,15 +1024002,15 @@ }; /** - * Creates a plain object from a ListRegionSslCertificatesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionSnapshotsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest + * @param {google.cloud.compute.v1beta.ListRegionSnapshotsRequest} message ListRegionSnapshotsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionSslCertificatesRequest.toObject = function toObject(message, options) { + ListRegionSnapshotsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1012832,58 +1024051,58 @@ }; /** - * Converts this ListRegionSslCertificatesRequest to JSON. + * Converts this ListRegionSnapshotsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest * @instance * @returns {Object.} JSON object */ - ListRegionSslCertificatesRequest.prototype.toJSON = function toJSON() { + ListRegionSnapshotsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionSslCertificatesRequest + * Gets the default type url for ListRegionSnapshotsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSnapshotsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionSslCertificatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionSnapshotsRequest"; }; - return ListRegionSslCertificatesRequest; + return ListRegionSnapshotsRequest; })(); - v1beta.ListRegionSslPoliciesRequest = (function() { + v1beta.ListRegionSslCertificatesRequest = (function() { /** - * Properties of a ListRegionSslPoliciesRequest. + * Properties of a ListRegionSslCertificatesRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionSslPoliciesRequest - * @property {string|null} [filter] ListRegionSslPoliciesRequest filter - * @property {number|null} [maxResults] ListRegionSslPoliciesRequest maxResults - * @property {string|null} [orderBy] ListRegionSslPoliciesRequest orderBy - * @property {string|null} [pageToken] ListRegionSslPoliciesRequest pageToken - * @property {string|null} [project] ListRegionSslPoliciesRequest project - * @property {string|null} [region] ListRegionSslPoliciesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionSslPoliciesRequest returnPartialSuccess + * @interface IListRegionSslCertificatesRequest + * @property {string|null} [filter] ListRegionSslCertificatesRequest filter + * @property {number|null} [maxResults] ListRegionSslCertificatesRequest maxResults + * @property {string|null} [orderBy] ListRegionSslCertificatesRequest orderBy + * @property {string|null} [pageToken] ListRegionSslCertificatesRequest pageToken + * @property {string|null} [project] ListRegionSslCertificatesRequest project + * @property {string|null} [region] ListRegionSslCertificatesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionSslCertificatesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionSslPoliciesRequest. + * Constructs a new ListRegionSslCertificatesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionSslPoliciesRequest. - * @implements IListRegionSslPoliciesRequest + * @classdesc Represents a ListRegionSslCertificatesRequest. + * @implements IListRegionSslCertificatesRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionSslPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionSslCertificatesRequest=} [properties] Properties to set */ - function ListRegionSslPoliciesRequest(properties) { + function ListRegionSslCertificatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1012891,116 +1024110,116 @@ } /** - * ListRegionSslPoliciesRequest filter. + * ListRegionSslCertificatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.filter = null; + ListRegionSslCertificatesRequest.prototype.filter = null; /** - * ListRegionSslPoliciesRequest maxResults. + * ListRegionSslCertificatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.maxResults = null; + ListRegionSslCertificatesRequest.prototype.maxResults = null; /** - * ListRegionSslPoliciesRequest orderBy. + * ListRegionSslCertificatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.orderBy = null; + ListRegionSslCertificatesRequest.prototype.orderBy = null; /** - * ListRegionSslPoliciesRequest pageToken. + * ListRegionSslCertificatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.pageToken = null; + ListRegionSslCertificatesRequest.prototype.pageToken = null; /** - * ListRegionSslPoliciesRequest project. + * ListRegionSslCertificatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.project = ""; + ListRegionSslCertificatesRequest.prototype.project = ""; /** - * ListRegionSslPoliciesRequest region. + * ListRegionSslCertificatesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.region = ""; + ListRegionSslCertificatesRequest.prototype.region = ""; /** - * ListRegionSslPoliciesRequest returnPartialSuccess. + * ListRegionSslCertificatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.returnPartialSuccess = null; + ListRegionSslCertificatesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionSslPoliciesRequest instance using the specified properties. + * Creates a new ListRegionSslCertificatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionSslPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest instance + * @param {google.cloud.compute.v1beta.IListRegionSslCertificatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest instance */ - ListRegionSslPoliciesRequest.create = function create(properties) { - return new ListRegionSslPoliciesRequest(properties); + ListRegionSslCertificatesRequest.create = function create(properties) { + return new ListRegionSslCertificatesRequest(properties); }; /** - * Encodes the specified ListRegionSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionSslPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionSslCertificatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslPoliciesRequest.encode = function encode(message, writer) { + ListRegionSslCertificatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -1013021,33 +1024240,33 @@ }; /** - * Encodes the specified ListRegionSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionSslPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionSslCertificatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest + * @returns {google.cloud.compute.v1beta.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslPoliciesRequest.decode = function decode(reader, length, error) { + ListRegionSslCertificatesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionSslPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionSslCertificatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1013090,30 +1024309,30 @@ }; /** - * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest + * @returns {google.cloud.compute.v1beta.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionSslPoliciesRequest message. + * Verifies a ListRegionSslCertificatesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionSslPoliciesRequest.verify = function verify(message) { + ListRegionSslCertificatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1013152,17 +1024371,17 @@ }; /** - * Creates a ListRegionSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest + * @returns {google.cloud.compute.v1beta.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest */ - ListRegionSslPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionSslPoliciesRequest) + ListRegionSslCertificatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionSslCertificatesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionSslPoliciesRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionSslCertificatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1013181,15 +1024400,15 @@ }; /** - * Creates a plain object from a ListRegionSslPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionSslCertificatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest + * @param {google.cloud.compute.v1beta.ListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionSslPoliciesRequest.toObject = function toObject(message, options) { + ListRegionSslCertificatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1013230,58 +1024449,58 @@ }; /** - * Converts this ListRegionSslPoliciesRequest to JSON. + * Converts this ListRegionSslCertificatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest * @instance * @returns {Object.} JSON object */ - ListRegionSslPoliciesRequest.prototype.toJSON = function toJSON() { + ListRegionSslCertificatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionSslPoliciesRequest + * Gets the default type url for ListRegionSslCertificatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslCertificatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionSslPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionSslCertificatesRequest"; }; - return ListRegionSslPoliciesRequest; + return ListRegionSslCertificatesRequest; })(); - v1beta.ListRegionTargetHttpProxiesRequest = (function() { + v1beta.ListRegionSslPoliciesRequest = (function() { /** - * Properties of a ListRegionTargetHttpProxiesRequest. + * Properties of a ListRegionSslPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionTargetHttpProxiesRequest - * @property {string|null} [filter] ListRegionTargetHttpProxiesRequest filter - * @property {number|null} [maxResults] ListRegionTargetHttpProxiesRequest maxResults - * @property {string|null} [orderBy] ListRegionTargetHttpProxiesRequest orderBy - * @property {string|null} [pageToken] ListRegionTargetHttpProxiesRequest pageToken - * @property {string|null} [project] ListRegionTargetHttpProxiesRequest project - * @property {string|null} [region] ListRegionTargetHttpProxiesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpProxiesRequest returnPartialSuccess + * @interface IListRegionSslPoliciesRequest + * @property {string|null} [filter] ListRegionSslPoliciesRequest filter + * @property {number|null} [maxResults] ListRegionSslPoliciesRequest maxResults + * @property {string|null} [orderBy] ListRegionSslPoliciesRequest orderBy + * @property {string|null} [pageToken] ListRegionSslPoliciesRequest pageToken + * @property {string|null} [project] ListRegionSslPoliciesRequest project + * @property {string|null} [region] ListRegionSslPoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionSslPoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionTargetHttpProxiesRequest. + * Constructs a new ListRegionSslPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionTargetHttpProxiesRequest. - * @implements IListRegionTargetHttpProxiesRequest + * @classdesc Represents a ListRegionSslPoliciesRequest. + * @implements IListRegionSslPoliciesRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionSslPoliciesRequest=} [properties] Properties to set */ - function ListRegionTargetHttpProxiesRequest(properties) { + function ListRegionSslPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1013289,116 +1024508,116 @@ } /** - * ListRegionTargetHttpProxiesRequest filter. + * ListRegionSslPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.filter = null; + ListRegionSslPoliciesRequest.prototype.filter = null; /** - * ListRegionTargetHttpProxiesRequest maxResults. + * ListRegionSslPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.maxResults = null; + ListRegionSslPoliciesRequest.prototype.maxResults = null; /** - * ListRegionTargetHttpProxiesRequest orderBy. + * ListRegionSslPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.orderBy = null; + ListRegionSslPoliciesRequest.prototype.orderBy = null; /** - * ListRegionTargetHttpProxiesRequest pageToken. + * ListRegionSslPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.pageToken = null; + ListRegionSslPoliciesRequest.prototype.pageToken = null; /** - * ListRegionTargetHttpProxiesRequest project. + * ListRegionSslPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.project = ""; + ListRegionSslPoliciesRequest.prototype.project = ""; /** - * ListRegionTargetHttpProxiesRequest region. + * ListRegionSslPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.region = ""; + ListRegionSslPoliciesRequest.prototype.region = ""; /** - * ListRegionTargetHttpProxiesRequest returnPartialSuccess. + * ListRegionSslPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; + ListRegionSslPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionTargetHttpProxiesRequest instance using the specified properties. + * Creates a new ListRegionSslPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest instance + * @param {google.cloud.compute.v1beta.IListRegionSslPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest instance */ - ListRegionTargetHttpProxiesRequest.create = function create(properties) { - return new ListRegionTargetHttpProxiesRequest(properties); + ListRegionSslPoliciesRequest.create = function create(properties) { + return new ListRegionSslPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionSslPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpProxiesRequest.encode = function encode(message, writer) { + ListRegionSslPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -1013419,33 +1024638,33 @@ }; /** - * Encodes the specified ListRegionTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionSslPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer. + * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1beta.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpProxiesRequest.decode = function decode(reader, length, error) { + ListRegionSslPoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionSslPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1013488,30 +1024707,30 @@ }; /** - * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1beta.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionTargetHttpProxiesRequest message. + * Verifies a ListRegionSslPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionTargetHttpProxiesRequest.verify = function verify(message) { + ListRegionSslPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1013550,17 +1024769,17 @@ }; /** - * Creates a ListRegionTargetHttpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1beta.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest */ - ListRegionTargetHttpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest) + ListRegionSslPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionSslPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionSslPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1013579,15 +1024798,15 @@ }; /** - * Creates a plain object from a ListRegionTargetHttpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionSslPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest + * @param {google.cloud.compute.v1beta.ListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionTargetHttpProxiesRequest.toObject = function toObject(message, options) { + ListRegionSslPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1013628,58 +1024847,58 @@ }; /** - * Converts this ListRegionTargetHttpProxiesRequest to JSON. + * Converts this ListRegionSslPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { + ListRegionSslPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionTargetHttpProxiesRequest + * Gets the default type url for ListRegionSslPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionSslPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionSslPoliciesRequest"; }; - return ListRegionTargetHttpProxiesRequest; + return ListRegionSslPoliciesRequest; })(); - v1beta.ListRegionTargetHttpsProxiesRequest = (function() { + v1beta.ListRegionTargetHttpProxiesRequest = (function() { /** - * Properties of a ListRegionTargetHttpsProxiesRequest. + * Properties of a ListRegionTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionTargetHttpsProxiesRequest - * @property {string|null} [filter] ListRegionTargetHttpsProxiesRequest filter - * @property {number|null} [maxResults] ListRegionTargetHttpsProxiesRequest maxResults - * @property {string|null} [orderBy] ListRegionTargetHttpsProxiesRequest orderBy - * @property {string|null} [pageToken] ListRegionTargetHttpsProxiesRequest pageToken - * @property {string|null} [project] ListRegionTargetHttpsProxiesRequest project - * @property {string|null} [region] ListRegionTargetHttpsProxiesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpsProxiesRequest returnPartialSuccess + * @interface IListRegionTargetHttpProxiesRequest + * @property {string|null} [filter] ListRegionTargetHttpProxiesRequest filter + * @property {number|null} [maxResults] ListRegionTargetHttpProxiesRequest maxResults + * @property {string|null} [orderBy] ListRegionTargetHttpProxiesRequest orderBy + * @property {string|null} [pageToken] ListRegionTargetHttpProxiesRequest pageToken + * @property {string|null} [project] ListRegionTargetHttpProxiesRequest project + * @property {string|null} [region] ListRegionTargetHttpProxiesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpProxiesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionTargetHttpsProxiesRequest. + * Constructs a new ListRegionTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionTargetHttpsProxiesRequest. - * @implements IListRegionTargetHttpsProxiesRequest + * @classdesc Represents a ListRegionTargetHttpProxiesRequest. + * @implements IListRegionTargetHttpProxiesRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set */ - function ListRegionTargetHttpsProxiesRequest(properties) { + function ListRegionTargetHttpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1013687,116 +1024906,116 @@ } /** - * ListRegionTargetHttpsProxiesRequest filter. + * ListRegionTargetHttpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.filter = null; + ListRegionTargetHttpProxiesRequest.prototype.filter = null; /** - * ListRegionTargetHttpsProxiesRequest maxResults. + * ListRegionTargetHttpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.maxResults = null; + ListRegionTargetHttpProxiesRequest.prototype.maxResults = null; /** - * ListRegionTargetHttpsProxiesRequest orderBy. + * ListRegionTargetHttpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.orderBy = null; + ListRegionTargetHttpProxiesRequest.prototype.orderBy = null; /** - * ListRegionTargetHttpsProxiesRequest pageToken. + * ListRegionTargetHttpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.pageToken = null; + ListRegionTargetHttpProxiesRequest.prototype.pageToken = null; /** - * ListRegionTargetHttpsProxiesRequest project. + * ListRegionTargetHttpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.project = ""; + ListRegionTargetHttpProxiesRequest.prototype.project = ""; /** - * ListRegionTargetHttpsProxiesRequest region. + * ListRegionTargetHttpProxiesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.region = ""; + ListRegionTargetHttpProxiesRequest.prototype.region = ""; /** - * ListRegionTargetHttpsProxiesRequest returnPartialSuccess. + * ListRegionTargetHttpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; + ListRegionTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionTargetHttpsProxiesRequest instance using the specified properties. + * Creates a new ListRegionTargetHttpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest instance + * @param {google.cloud.compute.v1beta.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest instance */ - ListRegionTargetHttpsProxiesRequest.create = function create(properties) { - return new ListRegionTargetHttpsProxiesRequest(properties); + ListRegionTargetHttpProxiesRequest.create = function create(properties) { + return new ListRegionTargetHttpProxiesRequest(properties); }; /** - * Encodes the specified ListRegionTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpsProxiesRequest.encode = function encode(message, writer) { + ListRegionTargetHttpProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -1013817,33 +1025036,33 @@ }; /** - * Encodes the specified ListRegionTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer. + * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpsProxiesRequest.decode = function decode(reader, length, error) { + ListRegionTargetHttpProxiesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1013886,30 +1025105,30 @@ }; /** - * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpsProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionTargetHttpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionTargetHttpsProxiesRequest message. + * Verifies a ListRegionTargetHttpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionTargetHttpsProxiesRequest.verify = function verify(message) { + ListRegionTargetHttpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1013948,17 +1025167,17 @@ }; /** - * Creates a ListRegionTargetHttpsProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionTargetHttpProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest */ - ListRegionTargetHttpsProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest) + ListRegionTargetHttpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1013977,15 +1025196,15 @@ }; /** - * Creates a plain object from a ListRegionTargetHttpsProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionTargetHttpProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest + * @param {google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionTargetHttpsProxiesRequest.toObject = function toObject(message, options) { + ListRegionTargetHttpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1014026,58 +1025245,58 @@ }; /** - * Converts this ListRegionTargetHttpsProxiesRequest to JSON. + * Converts this ListRegionTargetHttpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest * @instance * @returns {Object.} JSON object */ - ListRegionTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { + ListRegionTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionTargetHttpsProxiesRequest + * Gets the default type url for ListRegionTargetHttpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionTargetHttpProxiesRequest"; }; - return ListRegionTargetHttpsProxiesRequest; + return ListRegionTargetHttpProxiesRequest; })(); - v1beta.ListRegionTargetTcpProxiesRequest = (function() { + v1beta.ListRegionTargetHttpsProxiesRequest = (function() { /** - * Properties of a ListRegionTargetTcpProxiesRequest. + * Properties of a ListRegionTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionTargetTcpProxiesRequest - * @property {string|null} [filter] ListRegionTargetTcpProxiesRequest filter - * @property {number|null} [maxResults] ListRegionTargetTcpProxiesRequest maxResults - * @property {string|null} [orderBy] ListRegionTargetTcpProxiesRequest orderBy - * @property {string|null} [pageToken] ListRegionTargetTcpProxiesRequest pageToken - * @property {string|null} [project] ListRegionTargetTcpProxiesRequest project - * @property {string|null} [region] ListRegionTargetTcpProxiesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionTargetTcpProxiesRequest returnPartialSuccess + * @interface IListRegionTargetHttpsProxiesRequest + * @property {string|null} [filter] ListRegionTargetHttpsProxiesRequest filter + * @property {number|null} [maxResults] ListRegionTargetHttpsProxiesRequest maxResults + * @property {string|null} [orderBy] ListRegionTargetHttpsProxiesRequest orderBy + * @property {string|null} [pageToken] ListRegionTargetHttpsProxiesRequest pageToken + * @property {string|null} [project] ListRegionTargetHttpsProxiesRequest project + * @property {string|null} [region] ListRegionTargetHttpsProxiesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpsProxiesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionTargetTcpProxiesRequest. + * Constructs a new ListRegionTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionTargetTcpProxiesRequest. - * @implements IListRegionTargetTcpProxiesRequest + * @classdesc Represents a ListRegionTargetHttpsProxiesRequest. + * @implements IListRegionTargetHttpsProxiesRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set */ - function ListRegionTargetTcpProxiesRequest(properties) { + function ListRegionTargetHttpsProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1014085,116 +1025304,116 @@ } /** - * ListRegionTargetTcpProxiesRequest filter. + * ListRegionTargetHttpsProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.filter = null; + ListRegionTargetHttpsProxiesRequest.prototype.filter = null; /** - * ListRegionTargetTcpProxiesRequest maxResults. + * ListRegionTargetHttpsProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.maxResults = null; + ListRegionTargetHttpsProxiesRequest.prototype.maxResults = null; /** - * ListRegionTargetTcpProxiesRequest orderBy. + * ListRegionTargetHttpsProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.orderBy = null; + ListRegionTargetHttpsProxiesRequest.prototype.orderBy = null; /** - * ListRegionTargetTcpProxiesRequest pageToken. + * ListRegionTargetHttpsProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.pageToken = null; + ListRegionTargetHttpsProxiesRequest.prototype.pageToken = null; /** - * ListRegionTargetTcpProxiesRequest project. + * ListRegionTargetHttpsProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.project = ""; + ListRegionTargetHttpsProxiesRequest.prototype.project = ""; /** - * ListRegionTargetTcpProxiesRequest region. + * ListRegionTargetHttpsProxiesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.region = ""; + ListRegionTargetHttpsProxiesRequest.prototype.region = ""; /** - * ListRegionTargetTcpProxiesRequest returnPartialSuccess. + * ListRegionTargetHttpsProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; + ListRegionTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionTargetTcpProxiesRequest instance using the specified properties. + * Creates a new ListRegionTargetHttpsProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest instance + * @param {google.cloud.compute.v1beta.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest instance */ - ListRegionTargetTcpProxiesRequest.create = function create(properties) { - return new ListRegionTargetTcpProxiesRequest(properties); + ListRegionTargetHttpsProxiesRequest.create = function create(properties) { + return new ListRegionTargetHttpsProxiesRequest(properties); }; /** - * Encodes the specified ListRegionTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetTcpProxiesRequest.encode = function encode(message, writer) { + ListRegionTargetHttpsProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -1014215,33 +1025434,33 @@ }; /** - * Encodes the specified ListRegionTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer. + * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetTcpProxiesRequest.decode = function decode(reader, length, error) { + ListRegionTargetHttpsProxiesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1014284,30 +1025503,30 @@ }; /** - * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionTargetHttpsProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionTargetTcpProxiesRequest message. + * Verifies a ListRegionTargetHttpsProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionTargetTcpProxiesRequest.verify = function verify(message) { + ListRegionTargetHttpsProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1014346,17 +1025565,17 @@ }; /** - * Creates a ListRegionTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionTargetHttpsProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest */ - ListRegionTargetTcpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest) + ListRegionTargetHttpsProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1014375,15 +1025594,15 @@ }; /** - * Creates a plain object from a ListRegionTargetTcpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionTargetHttpsProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest + * @param {google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionTargetTcpProxiesRequest.toObject = function toObject(message, options) { + ListRegionTargetHttpsProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1014424,58 +1025643,58 @@ }; /** - * Converts this ListRegionTargetTcpProxiesRequest to JSON. + * Converts this ListRegionTargetHttpsProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest * @instance * @returns {Object.} JSON object */ - ListRegionTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { + ListRegionTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionTargetTcpProxiesRequest + * Gets the default type url for ListRegionTargetHttpsProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionTargetHttpsProxiesRequest"; }; - return ListRegionTargetTcpProxiesRequest; + return ListRegionTargetHttpsProxiesRequest; })(); - v1beta.ListRegionUrlMapsRequest = (function() { + v1beta.ListRegionTargetTcpProxiesRequest = (function() { /** - * Properties of a ListRegionUrlMapsRequest. + * Properties of a ListRegionTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionUrlMapsRequest - * @property {string|null} [filter] ListRegionUrlMapsRequest filter - * @property {number|null} [maxResults] ListRegionUrlMapsRequest maxResults - * @property {string|null} [orderBy] ListRegionUrlMapsRequest orderBy - * @property {string|null} [pageToken] ListRegionUrlMapsRequest pageToken - * @property {string|null} [project] ListRegionUrlMapsRequest project - * @property {string|null} [region] ListRegionUrlMapsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionUrlMapsRequest returnPartialSuccess + * @interface IListRegionTargetTcpProxiesRequest + * @property {string|null} [filter] ListRegionTargetTcpProxiesRequest filter + * @property {number|null} [maxResults] ListRegionTargetTcpProxiesRequest maxResults + * @property {string|null} [orderBy] ListRegionTargetTcpProxiesRequest orderBy + * @property {string|null} [pageToken] ListRegionTargetTcpProxiesRequest pageToken + * @property {string|null} [project] ListRegionTargetTcpProxiesRequest project + * @property {string|null} [region] ListRegionTargetTcpProxiesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionTargetTcpProxiesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionUrlMapsRequest. + * Constructs a new ListRegionTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionUrlMapsRequest. - * @implements IListRegionUrlMapsRequest + * @classdesc Represents a ListRegionTargetTcpProxiesRequest. + * @implements IListRegionTargetTcpProxiesRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionUrlMapsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set */ - function ListRegionUrlMapsRequest(properties) { + function ListRegionTargetTcpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1014483,116 +1025702,116 @@ } /** - * ListRegionUrlMapsRequest filter. + * ListRegionTargetTcpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.filter = null; + ListRegionTargetTcpProxiesRequest.prototype.filter = null; /** - * ListRegionUrlMapsRequest maxResults. + * ListRegionTargetTcpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.maxResults = null; + ListRegionTargetTcpProxiesRequest.prototype.maxResults = null; /** - * ListRegionUrlMapsRequest orderBy. + * ListRegionTargetTcpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.orderBy = null; + ListRegionTargetTcpProxiesRequest.prototype.orderBy = null; /** - * ListRegionUrlMapsRequest pageToken. + * ListRegionTargetTcpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.pageToken = null; + ListRegionTargetTcpProxiesRequest.prototype.pageToken = null; /** - * ListRegionUrlMapsRequest project. + * ListRegionTargetTcpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.project = ""; + ListRegionTargetTcpProxiesRequest.prototype.project = ""; /** - * ListRegionUrlMapsRequest region. + * ListRegionTargetTcpProxiesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.region = ""; + ListRegionTargetTcpProxiesRequest.prototype.region = ""; /** - * ListRegionUrlMapsRequest returnPartialSuccess. + * ListRegionTargetTcpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.returnPartialSuccess = null; + ListRegionTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionUrlMapsRequest instance using the specified properties. + * Creates a new ListRegionTargetTcpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionUrlMapsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest instance + * @param {google.cloud.compute.v1beta.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest instance */ - ListRegionUrlMapsRequest.create = function create(properties) { - return new ListRegionUrlMapsRequest(properties); + ListRegionTargetTcpProxiesRequest.create = function create(properties) { + return new ListRegionTargetTcpProxiesRequest(properties); }; /** - * Encodes the specified ListRegionUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionUrlMapsRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionUrlMapsRequest.encode = function encode(message, writer) { + ListRegionTargetTcpProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -1014613,33 +1025832,33 @@ }; /** - * Encodes the specified ListRegionUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionUrlMapsRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionUrlMapsRequest message from the specified reader or buffer. + * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest + * @returns {google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionUrlMapsRequest.decode = function decode(reader, length, error) { + ListRegionTargetTcpProxiesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionUrlMapsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1014682,30 +1025901,30 @@ }; /** - * Decodes a ListRegionUrlMapsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest + * @returns {google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionUrlMapsRequest message. + * Verifies a ListRegionTargetTcpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionUrlMapsRequest.verify = function verify(message) { + ListRegionTargetTcpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1014744,17 +1025963,17 @@ }; /** - * Creates a ListRegionUrlMapsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest + * @returns {google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest */ - ListRegionUrlMapsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionUrlMapsRequest) + ListRegionTargetTcpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionUrlMapsRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1014773,15 +1025992,15 @@ }; /** - * Creates a plain object from a ListRegionUrlMapsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionTargetTcpProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionUrlMapsRequest} message ListRegionUrlMapsRequest + * @param {google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionUrlMapsRequest.toObject = function toObject(message, options) { + ListRegionTargetTcpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1014822,58 +1026041,58 @@ }; /** - * Converts this ListRegionUrlMapsRequest to JSON. + * Converts this ListRegionTargetTcpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest * @instance * @returns {Object.} JSON object */ - ListRegionUrlMapsRequest.prototype.toJSON = function toJSON() { + ListRegionTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionUrlMapsRequest + * Gets the default type url for ListRegionTargetTcpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionUrlMapsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionTargetTcpProxiesRequest"; }; - return ListRegionUrlMapsRequest; + return ListRegionTargetTcpProxiesRequest; })(); - v1beta.ListRegionZonesRequest = (function() { + v1beta.ListRegionUrlMapsRequest = (function() { /** - * Properties of a ListRegionZonesRequest. + * Properties of a ListRegionUrlMapsRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionZonesRequest - * @property {string|null} [filter] ListRegionZonesRequest filter - * @property {number|null} [maxResults] ListRegionZonesRequest maxResults - * @property {string|null} [orderBy] ListRegionZonesRequest orderBy - * @property {string|null} [pageToken] ListRegionZonesRequest pageToken - * @property {string|null} [project] ListRegionZonesRequest project - * @property {string|null} [region] ListRegionZonesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionZonesRequest returnPartialSuccess + * @interface IListRegionUrlMapsRequest + * @property {string|null} [filter] ListRegionUrlMapsRequest filter + * @property {number|null} [maxResults] ListRegionUrlMapsRequest maxResults + * @property {string|null} [orderBy] ListRegionUrlMapsRequest orderBy + * @property {string|null} [pageToken] ListRegionUrlMapsRequest pageToken + * @property {string|null} [project] ListRegionUrlMapsRequest project + * @property {string|null} [region] ListRegionUrlMapsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionUrlMapsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionZonesRequest. + * Constructs a new ListRegionUrlMapsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionZonesRequest. - * @implements IListRegionZonesRequest + * @classdesc Represents a ListRegionUrlMapsRequest. + * @implements IListRegionUrlMapsRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionZonesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionUrlMapsRequest=} [properties] Properties to set */ - function ListRegionZonesRequest(properties) { + function ListRegionUrlMapsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1014881,116 +1026100,116 @@ } /** - * ListRegionZonesRequest filter. + * ListRegionUrlMapsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest + * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest * @instance */ - ListRegionZonesRequest.prototype.filter = null; + ListRegionUrlMapsRequest.prototype.filter = null; /** - * ListRegionZonesRequest maxResults. + * ListRegionUrlMapsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest + * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest * @instance */ - ListRegionZonesRequest.prototype.maxResults = null; + ListRegionUrlMapsRequest.prototype.maxResults = null; /** - * ListRegionZonesRequest orderBy. + * ListRegionUrlMapsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest + * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest * @instance */ - ListRegionZonesRequest.prototype.orderBy = null; + ListRegionUrlMapsRequest.prototype.orderBy = null; /** - * ListRegionZonesRequest pageToken. + * ListRegionUrlMapsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest + * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest * @instance */ - ListRegionZonesRequest.prototype.pageToken = null; + ListRegionUrlMapsRequest.prototype.pageToken = null; /** - * ListRegionZonesRequest project. + * ListRegionUrlMapsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest + * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest * @instance */ - ListRegionZonesRequest.prototype.project = ""; + ListRegionUrlMapsRequest.prototype.project = ""; /** - * ListRegionZonesRequest region. + * ListRegionUrlMapsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest + * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest * @instance */ - ListRegionZonesRequest.prototype.region = ""; + ListRegionUrlMapsRequest.prototype.region = ""; /** - * ListRegionZonesRequest returnPartialSuccess. + * ListRegionUrlMapsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest + * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest * @instance */ - ListRegionZonesRequest.prototype.returnPartialSuccess = null; + ListRegionUrlMapsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionZonesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionZonesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionZonesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionZonesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionZonesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionZonesRequest instance using the specified properties. + * Creates a new ListRegionUrlMapsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest + * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionZonesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionZonesRequest} ListRegionZonesRequest instance + * @param {google.cloud.compute.v1beta.IListRegionUrlMapsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest instance */ - ListRegionZonesRequest.create = function create(properties) { - return new ListRegionZonesRequest(properties); + ListRegionUrlMapsRequest.create = function create(properties) { + return new ListRegionUrlMapsRequest(properties); }; /** - * Encodes the specified ListRegionZonesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionZonesRequest.verify|verify} messages. + * Encodes the specified ListRegionUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionUrlMapsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest + * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionZonesRequest} message ListRegionZonesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionZonesRequest.encode = function encode(message, writer) { + ListRegionUrlMapsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -1015011,33 +1026230,33 @@ }; /** - * Encodes the specified ListRegionZonesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionZonesRequest.verify|verify} messages. + * Encodes the specified ListRegionUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionUrlMapsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest + * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionZonesRequest} message ListRegionZonesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionZonesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionZonesRequest message from the specified reader or buffer. + * Decodes a ListRegionUrlMapsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest + * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionZonesRequest} ListRegionZonesRequest + * @returns {google.cloud.compute.v1beta.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionZonesRequest.decode = function decode(reader, length, error) { + ListRegionUrlMapsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionZonesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionUrlMapsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1015080,30 +1026299,30 @@ }; /** - * Decodes a ListRegionZonesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionUrlMapsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest + * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionZonesRequest} ListRegionZonesRequest + * @returns {google.cloud.compute.v1beta.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionZonesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionZonesRequest message. + * Verifies a ListRegionUrlMapsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest + * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionZonesRequest.verify = function verify(message) { + ListRegionUrlMapsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1015142,17 +1026361,17 @@ }; /** - * Creates a ListRegionZonesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionUrlMapsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest + * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionZonesRequest} ListRegionZonesRequest + * @returns {google.cloud.compute.v1beta.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest */ - ListRegionZonesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionZonesRequest) + ListRegionUrlMapsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionUrlMapsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionZonesRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionUrlMapsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1015171,15 +1026390,15 @@ }; /** - * Creates a plain object from a ListRegionZonesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionUrlMapsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest + * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionZonesRequest} message ListRegionZonesRequest + * @param {google.cloud.compute.v1beta.ListRegionUrlMapsRequest} message ListRegionUrlMapsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionZonesRequest.toObject = function toObject(message, options) { + ListRegionUrlMapsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1015220,57 +1026439,58 @@ }; /** - * Converts this ListRegionZonesRequest to JSON. + * Converts this ListRegionUrlMapsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest + * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest * @instance * @returns {Object.} JSON object */ - ListRegionZonesRequest.prototype.toJSON = function toJSON() { + ListRegionUrlMapsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionZonesRequest + * Gets the default type url for ListRegionUrlMapsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest + * @memberof google.cloud.compute.v1beta.ListRegionUrlMapsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionZonesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionZonesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionUrlMapsRequest"; }; - return ListRegionZonesRequest; + return ListRegionUrlMapsRequest; })(); - v1beta.ListRegionsRequest = (function() { + v1beta.ListRegionZonesRequest = (function() { /** - * Properties of a ListRegionsRequest. + * Properties of a ListRegionZonesRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionsRequest - * @property {string|null} [filter] ListRegionsRequest filter - * @property {number|null} [maxResults] ListRegionsRequest maxResults - * @property {string|null} [orderBy] ListRegionsRequest orderBy - * @property {string|null} [pageToken] ListRegionsRequest pageToken - * @property {string|null} [project] ListRegionsRequest project - * @property {boolean|null} [returnPartialSuccess] ListRegionsRequest returnPartialSuccess + * @interface IListRegionZonesRequest + * @property {string|null} [filter] ListRegionZonesRequest filter + * @property {number|null} [maxResults] ListRegionZonesRequest maxResults + * @property {string|null} [orderBy] ListRegionZonesRequest orderBy + * @property {string|null} [pageToken] ListRegionZonesRequest pageToken + * @property {string|null} [project] ListRegionZonesRequest project + * @property {string|null} [region] ListRegionZonesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionZonesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionsRequest. + * Constructs a new ListRegionZonesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionsRequest. - * @implements IListRegionsRequest + * @classdesc Represents a ListRegionZonesRequest. + * @implements IListRegionZonesRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionZonesRequest=} [properties] Properties to set */ - function ListRegionsRequest(properties) { + function ListRegionZonesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1015278,114 +1026498,124 @@ } /** - * ListRegionsRequest filter. + * ListRegionZonesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionsRequest + * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest * @instance */ - ListRegionsRequest.prototype.filter = null; + ListRegionZonesRequest.prototype.filter = null; /** - * ListRegionsRequest maxResults. + * ListRegionZonesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionsRequest + * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest * @instance */ - ListRegionsRequest.prototype.maxResults = null; + ListRegionZonesRequest.prototype.maxResults = null; /** - * ListRegionsRequest orderBy. + * ListRegionZonesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionsRequest + * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest * @instance */ - ListRegionsRequest.prototype.orderBy = null; + ListRegionZonesRequest.prototype.orderBy = null; /** - * ListRegionsRequest pageToken. + * ListRegionZonesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionsRequest + * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest * @instance */ - ListRegionsRequest.prototype.pageToken = null; + ListRegionZonesRequest.prototype.pageToken = null; /** - * ListRegionsRequest project. + * ListRegionZonesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionsRequest + * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest * @instance */ - ListRegionsRequest.prototype.project = ""; + ListRegionZonesRequest.prototype.project = ""; /** - * ListRegionsRequest returnPartialSuccess. + * ListRegionZonesRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest + * @instance + */ + ListRegionZonesRequest.prototype.region = ""; + + /** + * ListRegionZonesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionsRequest + * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest * @instance */ - ListRegionsRequest.prototype.returnPartialSuccess = null; + ListRegionZonesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionZonesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionZonesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionZonesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionZonesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionZonesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionsRequest instance using the specified properties. + * Creates a new ListRegionZonesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionsRequest + * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionsRequest} ListRegionsRequest instance + * @param {google.cloud.compute.v1beta.IListRegionZonesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionZonesRequest} ListRegionZonesRequest instance */ - ListRegionsRequest.create = function create(properties) { - return new ListRegionsRequest(properties); + ListRegionZonesRequest.create = function create(properties) { + return new ListRegionZonesRequest(properties); }; /** - * Encodes the specified ListRegionsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionsRequest.verify|verify} messages. + * Encodes the specified ListRegionZonesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionZonesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionsRequest + * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionsRequest} message ListRegionsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionZonesRequest} message ListRegionZonesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionsRequest.encode = function encode(message, writer) { + ListRegionZonesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -1015398,33 +1026628,33 @@ }; /** - * Encodes the specified ListRegionsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionsRequest.verify|verify} messages. + * Encodes the specified ListRegionZonesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionZonesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionsRequest + * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionsRequest} message ListRegionsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionZonesRequest} message ListRegionZonesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionZonesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionsRequest message from the specified reader or buffer. + * Decodes a ListRegionZonesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionsRequest + * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionsRequest} ListRegionsRequest + * @returns {google.cloud.compute.v1beta.ListRegionZonesRequest} ListRegionZonesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionsRequest.decode = function decode(reader, length, error) { + ListRegionZonesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionZonesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1015450,6 +1026680,10 @@ message.project = reader.string(); break; } + case 138946292: { + message.region = reader.string(); + break; + } case 517198390: { message.returnPartialSuccess = reader.bool(); break; @@ -1015463,30 +1026697,30 @@ }; /** - * Decodes a ListRegionsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionZonesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionsRequest + * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionsRequest} ListRegionsRequest + * @returns {google.cloud.compute.v1beta.ListRegionZonesRequest} ListRegionZonesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionZonesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionsRequest message. + * Verifies a ListRegionZonesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionsRequest + * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionsRequest.verify = function verify(message) { + ListRegionZonesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1015513,6 +1026747,9 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") @@ -1015522,17 +1026759,17 @@ }; /** - * Creates a ListRegionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionZonesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionsRequest + * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionsRequest} ListRegionsRequest + * @returns {google.cloud.compute.v1beta.ListRegionZonesRequest} ListRegionZonesRequest */ - ListRegionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionsRequest) + ListRegionZonesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionZonesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionsRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionZonesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1015543,26 +1026780,30 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); return message; }; /** - * Creates a plain object from a ListRegionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionZonesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionsRequest + * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionsRequest} message ListRegionsRequest + * @param {google.cloud.compute.v1beta.ListRegionZonesRequest} message ListRegionZonesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionsRequest.toObject = function toObject(message, options) { + ListRegionZonesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.region = ""; object.project = ""; + } if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -1015573,6 +1026814,8 @@ if (options.oneofs) object._maxResults = "maxResults"; } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -1015594,59 +1026837,57 @@ }; /** - * Converts this ListRegionsRequest to JSON. + * Converts this ListRegionZonesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionsRequest + * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest * @instance * @returns {Object.} JSON object */ - ListRegionsRequest.prototype.toJSON = function toJSON() { + ListRegionZonesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionsRequest + * Gets the default type url for ListRegionZonesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionsRequest + * @memberof google.cloud.compute.v1beta.ListRegionZonesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionZonesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionZonesRequest"; }; - return ListRegionsRequest; + return ListRegionZonesRequest; })(); - v1beta.ListReservationBlocksRequest = (function() { + v1beta.ListRegionsRequest = (function() { /** - * Properties of a ListReservationBlocksRequest. + * Properties of a ListRegionsRequest. * @memberof google.cloud.compute.v1beta - * @interface IListReservationBlocksRequest - * @property {string|null} [filter] ListReservationBlocksRequest filter - * @property {number|null} [maxResults] ListReservationBlocksRequest maxResults - * @property {string|null} [orderBy] ListReservationBlocksRequest orderBy - * @property {string|null} [pageToken] ListReservationBlocksRequest pageToken - * @property {string|null} [project] ListReservationBlocksRequest project - * @property {string|null} [reservation] ListReservationBlocksRequest reservation - * @property {boolean|null} [returnPartialSuccess] ListReservationBlocksRequest returnPartialSuccess - * @property {string|null} [zone] ListReservationBlocksRequest zone + * @interface IListRegionsRequest + * @property {string|null} [filter] ListRegionsRequest filter + * @property {number|null} [maxResults] ListRegionsRequest maxResults + * @property {string|null} [orderBy] ListRegionsRequest orderBy + * @property {string|null} [pageToken] ListRegionsRequest pageToken + * @property {string|null} [project] ListRegionsRequest project + * @property {boolean|null} [returnPartialSuccess] ListRegionsRequest returnPartialSuccess */ /** - * Constructs a new ListReservationBlocksRequest. + * Constructs a new ListRegionsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListReservationBlocksRequest. - * @implements IListReservationBlocksRequest + * @classdesc Represents a ListRegionsRequest. + * @implements IListRegionsRequest * @constructor - * @param {google.cloud.compute.v1beta.IListReservationBlocksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionsRequest=} [properties] Properties to set */ - function ListReservationBlocksRequest(properties) { + function ListRegionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1015654,132 +1026895,112 @@ } /** - * ListReservationBlocksRequest filter. + * ListRegionsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1beta.ListRegionsRequest * @instance */ - ListReservationBlocksRequest.prototype.filter = null; + ListRegionsRequest.prototype.filter = null; /** - * ListReservationBlocksRequest maxResults. + * ListRegionsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1beta.ListRegionsRequest * @instance */ - ListReservationBlocksRequest.prototype.maxResults = null; + ListRegionsRequest.prototype.maxResults = null; /** - * ListReservationBlocksRequest orderBy. + * ListRegionsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1beta.ListRegionsRequest * @instance */ - ListReservationBlocksRequest.prototype.orderBy = null; + ListRegionsRequest.prototype.orderBy = null; /** - * ListReservationBlocksRequest pageToken. + * ListRegionsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1beta.ListRegionsRequest * @instance */ - ListReservationBlocksRequest.prototype.pageToken = null; + ListRegionsRequest.prototype.pageToken = null; /** - * ListReservationBlocksRequest project. + * ListRegionsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest - * @instance - */ - ListReservationBlocksRequest.prototype.project = ""; - - /** - * ListReservationBlocksRequest reservation. - * @member {string} reservation - * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1beta.ListRegionsRequest * @instance */ - ListReservationBlocksRequest.prototype.reservation = ""; + ListRegionsRequest.prototype.project = ""; /** - * ListReservationBlocksRequest returnPartialSuccess. + * ListRegionsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest - * @instance - */ - ListReservationBlocksRequest.prototype.returnPartialSuccess = null; - - /** - * ListReservationBlocksRequest zone. - * @member {string} zone - * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1beta.ListRegionsRequest * @instance */ - ListReservationBlocksRequest.prototype.zone = ""; + ListRegionsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationBlocksRequest.prototype, "_filter", { + Object.defineProperty(ListRegionsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationBlocksRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationBlocksRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationBlocksRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationBlocksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListReservationBlocksRequest instance using the specified properties. + * Creates a new ListRegionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1beta.ListRegionsRequest * @static - * @param {google.cloud.compute.v1beta.IListReservationBlocksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListReservationBlocksRequest} ListReservationBlocksRequest instance + * @param {google.cloud.compute.v1beta.IListRegionsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionsRequest} ListRegionsRequest instance */ - ListReservationBlocksRequest.create = function create(properties) { - return new ListReservationBlocksRequest(properties); + ListRegionsRequest.create = function create(properties) { + return new ListRegionsRequest(properties); }; /** - * Encodes the specified ListReservationBlocksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListReservationBlocksRequest.verify|verify} messages. + * Encodes the specified ListRegionsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1beta.ListRegionsRequest * @static - * @param {google.cloud.compute.v1beta.IListReservationBlocksRequest} message ListReservationBlocksRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionsRequest} message ListRegionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReservationBlocksRequest.encode = function encode(message, writer) { + ListRegionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); - if (message.reservation != null && Object.hasOwnProperty.call(message, "reservation")) - writer.uint32(/* id 47530956, wireType 2 =*/380247650).string(message.reservation); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) @@ -1015794,33 +1027015,33 @@ }; /** - * Encodes the specified ListReservationBlocksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListReservationBlocksRequest.verify|verify} messages. + * Encodes the specified ListRegionsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1beta.ListRegionsRequest * @static - * @param {google.cloud.compute.v1beta.IListReservationBlocksRequest} message ListReservationBlocksRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionsRequest} message ListRegionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReservationBlocksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListReservationBlocksRequest message from the specified reader or buffer. + * Decodes a ListRegionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1beta.ListRegionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListReservationBlocksRequest} ListReservationBlocksRequest + * @returns {google.cloud.compute.v1beta.ListRegionsRequest} ListRegionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReservationBlocksRequest.decode = function decode(reader, length, error) { + ListRegionsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListReservationBlocksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1015846,18 +1027067,10 @@ message.project = reader.string(); break; } - case 47530956: { - message.reservation = reader.string(); - break; - } case 517198390: { message.returnPartialSuccess = reader.bool(); break; } - case 3744684: { - message.zone = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -1015867,30 +1027080,30 @@ }; /** - * Decodes a ListReservationBlocksRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1beta.ListRegionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListReservationBlocksRequest} ListReservationBlocksRequest + * @returns {google.cloud.compute.v1beta.ListRegionsRequest} ListRegionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReservationBlocksRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListReservationBlocksRequest message. + * Verifies a ListRegionsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1beta.ListRegionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListReservationBlocksRequest.verify = function verify(message) { + ListRegionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1015917,32 +1027130,26 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; - if (message.reservation != null && message.hasOwnProperty("reservation")) - if (!$util.isString(message.reservation)) - return "reservation: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") return "returnPartialSuccess: boolean expected"; } - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; return null; }; /** - * Creates a ListReservationBlocksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1beta.ListRegionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListReservationBlocksRequest} ListReservationBlocksRequest + * @returns {google.cloud.compute.v1beta.ListRegionsRequest} ListRegionsRequest */ - ListReservationBlocksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListReservationBlocksRequest) + ListRegionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListReservationBlocksRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1015953,42 +1027160,31 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); - if (object.reservation != null) - message.reservation = String(object.reservation); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); - if (object.zone != null) - message.zone = String(object.zone); return message; }; /** - * Creates a plain object from a ListReservationBlocksRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1beta.ListRegionsRequest * @static - * @param {google.cloud.compute.v1beta.ListReservationBlocksRequest} message ListReservationBlocksRequest + * @param {google.cloud.compute.v1beta.ListRegionsRequest} message ListRegionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListReservationBlocksRequest.toObject = function toObject(message, options) { + ListRegionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.zone = ""; - object.reservation = ""; + if (options.defaults) object.project = ""; - } - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) object._pageToken = "pageToken"; } - if (message.reservation != null && message.hasOwnProperty("reservation")) - object.reservation = message.reservation; if (message.maxResults != null && message.hasOwnProperty("maxResults")) { object.maxResults = message.maxResults; if (options.oneofs) @@ -1016015,59 +1027211,59 @@ }; /** - * Converts this ListReservationBlocksRequest to JSON. + * Converts this ListRegionsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1beta.ListRegionsRequest * @instance * @returns {Object.} JSON object */ - ListReservationBlocksRequest.prototype.toJSON = function toJSON() { + ListRegionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListReservationBlocksRequest + * Gets the default type url for ListRegionsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1beta.ListRegionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListReservationBlocksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListReservationBlocksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionsRequest"; }; - return ListReservationBlocksRequest; + return ListRegionsRequest; })(); - v1beta.ListReservationSubBlocksRequest = (function() { + v1beta.ListReservationBlocksRequest = (function() { /** - * Properties of a ListReservationSubBlocksRequest. + * Properties of a ListReservationBlocksRequest. * @memberof google.cloud.compute.v1beta - * @interface IListReservationSubBlocksRequest - * @property {string|null} [filter] ListReservationSubBlocksRequest filter - * @property {number|null} [maxResults] ListReservationSubBlocksRequest maxResults - * @property {string|null} [orderBy] ListReservationSubBlocksRequest orderBy - * @property {string|null} [pageToken] ListReservationSubBlocksRequest pageToken - * @property {string|null} [parentName] ListReservationSubBlocksRequest parentName - * @property {string|null} [project] ListReservationSubBlocksRequest project - * @property {boolean|null} [returnPartialSuccess] ListReservationSubBlocksRequest returnPartialSuccess - * @property {string|null} [zone] ListReservationSubBlocksRequest zone + * @interface IListReservationBlocksRequest + * @property {string|null} [filter] ListReservationBlocksRequest filter + * @property {number|null} [maxResults] ListReservationBlocksRequest maxResults + * @property {string|null} [orderBy] ListReservationBlocksRequest orderBy + * @property {string|null} [pageToken] ListReservationBlocksRequest pageToken + * @property {string|null} [project] ListReservationBlocksRequest project + * @property {string|null} [reservation] ListReservationBlocksRequest reservation + * @property {boolean|null} [returnPartialSuccess] ListReservationBlocksRequest returnPartialSuccess + * @property {string|null} [zone] ListReservationBlocksRequest zone */ /** - * Constructs a new ListReservationSubBlocksRequest. + * Constructs a new ListReservationBlocksRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListReservationSubBlocksRequest. - * @implements IListReservationSubBlocksRequest + * @classdesc Represents a ListReservationBlocksRequest. + * @implements IListReservationBlocksRequest * @constructor - * @param {google.cloud.compute.v1beta.IListReservationSubBlocksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListReservationBlocksRequest=} [properties] Properties to set */ - function ListReservationSubBlocksRequest(properties) { + function ListReservationBlocksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1016075,130 +1027271,132 @@ } /** - * ListReservationSubBlocksRequest filter. + * ListReservationBlocksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest * @instance */ - ListReservationSubBlocksRequest.prototype.filter = null; + ListReservationBlocksRequest.prototype.filter = null; /** - * ListReservationSubBlocksRequest maxResults. + * ListReservationBlocksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest * @instance */ - ListReservationSubBlocksRequest.prototype.maxResults = null; + ListReservationBlocksRequest.prototype.maxResults = null; /** - * ListReservationSubBlocksRequest orderBy. + * ListReservationBlocksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest * @instance */ - ListReservationSubBlocksRequest.prototype.orderBy = null; + ListReservationBlocksRequest.prototype.orderBy = null; /** - * ListReservationSubBlocksRequest pageToken. + * ListReservationBlocksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest * @instance */ - ListReservationSubBlocksRequest.prototype.pageToken = null; + ListReservationBlocksRequest.prototype.pageToken = null; /** - * ListReservationSubBlocksRequest parentName. - * @member {string} parentName - * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest + * ListReservationBlocksRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest * @instance */ - ListReservationSubBlocksRequest.prototype.parentName = ""; + ListReservationBlocksRequest.prototype.project = ""; /** - * ListReservationSubBlocksRequest project. - * @member {string} project - * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest + * ListReservationBlocksRequest reservation. + * @member {string} reservation + * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest * @instance */ - ListReservationSubBlocksRequest.prototype.project = ""; + ListReservationBlocksRequest.prototype.reservation = ""; /** - * ListReservationSubBlocksRequest returnPartialSuccess. + * ListReservationBlocksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest * @instance */ - ListReservationSubBlocksRequest.prototype.returnPartialSuccess = null; + ListReservationBlocksRequest.prototype.returnPartialSuccess = null; /** - * ListReservationSubBlocksRequest zone. + * ListReservationBlocksRequest zone. * @member {string} zone - * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest * @instance */ - ListReservationSubBlocksRequest.prototype.zone = ""; + ListReservationBlocksRequest.prototype.zone = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_filter", { + Object.defineProperty(ListReservationBlocksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_maxResults", { + Object.defineProperty(ListReservationBlocksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_orderBy", { + Object.defineProperty(ListReservationBlocksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_pageToken", { + Object.defineProperty(ListReservationBlocksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListReservationBlocksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListReservationSubBlocksRequest instance using the specified properties. + * Creates a new ListReservationBlocksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest * @static - * @param {google.cloud.compute.v1beta.IListReservationSubBlocksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListReservationSubBlocksRequest} ListReservationSubBlocksRequest instance + * @param {google.cloud.compute.v1beta.IListReservationBlocksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListReservationBlocksRequest} ListReservationBlocksRequest instance */ - ListReservationSubBlocksRequest.create = function create(properties) { - return new ListReservationSubBlocksRequest(properties); + ListReservationBlocksRequest.create = function create(properties) { + return new ListReservationBlocksRequest(properties); }; /** - * Encodes the specified ListReservationSubBlocksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListReservationSubBlocksRequest.verify|verify} messages. + * Encodes the specified ListReservationBlocksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListReservationBlocksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest * @static - * @param {google.cloud.compute.v1beta.IListReservationSubBlocksRequest} message ListReservationSubBlocksRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListReservationBlocksRequest} message ListReservationBlocksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReservationSubBlocksRequest.encode = function encode(message, writer) { + ListReservationBlocksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.reservation != null && Object.hasOwnProperty.call(message, "reservation")) + writer.uint32(/* id 47530956, wireType 2 =*/380247650).string(message.reservation); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) @@ -1016207,41 +1027405,39 @@ writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); - if (message.parentName != null && Object.hasOwnProperty.call(message, "parentName")) - writer.uint32(/* id 478151936, wireType 2 =*/3825215490).string(message.parentName); if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); return writer; }; /** - * Encodes the specified ListReservationSubBlocksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListReservationSubBlocksRequest.verify|verify} messages. + * Encodes the specified ListReservationBlocksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListReservationBlocksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest * @static - * @param {google.cloud.compute.v1beta.IListReservationSubBlocksRequest} message ListReservationSubBlocksRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListReservationBlocksRequest} message ListReservationBlocksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReservationSubBlocksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListReservationBlocksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListReservationSubBlocksRequest message from the specified reader or buffer. + * Decodes a ListReservationBlocksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListReservationSubBlocksRequest} ListReservationSubBlocksRequest + * @returns {google.cloud.compute.v1beta.ListReservationBlocksRequest} ListReservationBlocksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReservationSubBlocksRequest.decode = function decode(reader, length, error) { + ListReservationBlocksRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListReservationSubBlocksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListReservationBlocksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1016263,14 +1027459,14 @@ message.pageToken = reader.string(); break; } - case 478151936: { - message.parentName = reader.string(); - break; - } case 227560217: { message.project = reader.string(); break; } + case 47530956: { + message.reservation = reader.string(); + break; + } case 517198390: { message.returnPartialSuccess = reader.bool(); break; @@ -1016288,30 +1027484,30 @@ }; /** - * Decodes a ListReservationSubBlocksRequest message from the specified reader or buffer, length delimited. + * Decodes a ListReservationBlocksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListReservationSubBlocksRequest} ListReservationSubBlocksRequest + * @returns {google.cloud.compute.v1beta.ListReservationBlocksRequest} ListReservationBlocksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReservationSubBlocksRequest.decodeDelimited = function decodeDelimited(reader) { + ListReservationBlocksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListReservationSubBlocksRequest message. + * Verifies a ListReservationBlocksRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListReservationSubBlocksRequest.verify = function verify(message) { + ListReservationBlocksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1016335,12 +1027531,12 @@ if (!$util.isString(message.pageToken)) return "pageToken: string expected"; } - if (message.parentName != null && message.hasOwnProperty("parentName")) - if (!$util.isString(message.parentName)) - return "parentName: string expected"; if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; + if (message.reservation != null && message.hasOwnProperty("reservation")) + if (!$util.isString(message.reservation)) + return "reservation: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") @@ -1016353,17 +1027549,17 @@ }; /** - * Creates a ListReservationSubBlocksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListReservationBlocksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListReservationSubBlocksRequest} ListReservationSubBlocksRequest + * @returns {google.cloud.compute.v1beta.ListReservationBlocksRequest} ListReservationBlocksRequest */ - ListReservationSubBlocksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListReservationSubBlocksRequest) + ListReservationBlocksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListReservationBlocksRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListReservationSubBlocksRequest(); + var message = new $root.google.cloud.compute.v1beta.ListReservationBlocksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1016372,10 +1027568,10 @@ message.orderBy = String(object.orderBy); if (object.pageToken != null) message.pageToken = String(object.pageToken); - if (object.parentName != null) - message.parentName = String(object.parentName); if (object.project != null) message.project = String(object.project); + if (object.reservation != null) + message.reservation = String(object.reservation); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); if (object.zone != null) @@ -1016384,22 +1027580,22 @@ }; /** - * Creates a plain object from a ListReservationSubBlocksRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListReservationBlocksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest * @static - * @param {google.cloud.compute.v1beta.ListReservationSubBlocksRequest} message ListReservationSubBlocksRequest + * @param {google.cloud.compute.v1beta.ListReservationBlocksRequest} message ListReservationBlocksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListReservationSubBlocksRequest.toObject = function toObject(message, options) { + ListReservationBlocksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.zone = ""; + object.reservation = ""; object.project = ""; - object.parentName = ""; } if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; @@ -1016408,6 +1027604,8 @@ if (options.oneofs) object._pageToken = "pageToken"; } + if (message.reservation != null && message.hasOwnProperty("reservation")) + object.reservation = message.reservation; if (message.maxResults != null && message.hasOwnProperty("maxResults")) { object.maxResults = message.maxResults; if (options.oneofs) @@ -1016425,8 +1027623,6 @@ if (options.oneofs) object._filter = "filter"; } - if (message.parentName != null && message.hasOwnProperty("parentName")) - object.parentName = message.parentName; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { object.returnPartialSuccess = message.returnPartialSuccess; if (options.oneofs) @@ -1016436,58 +1027632,59 @@ }; /** - * Converts this ListReservationSubBlocksRequest to JSON. + * Converts this ListReservationBlocksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest * @instance * @returns {Object.} JSON object */ - ListReservationSubBlocksRequest.prototype.toJSON = function toJSON() { + ListReservationBlocksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListReservationSubBlocksRequest + * Gets the default type url for ListReservationBlocksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1beta.ListReservationBlocksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListReservationSubBlocksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListReservationBlocksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListReservationSubBlocksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListReservationBlocksRequest"; }; - return ListReservationSubBlocksRequest; + return ListReservationBlocksRequest; })(); - v1beta.ListReservationsRequest = (function() { + v1beta.ListReservationSlotsRequest = (function() { /** - * Properties of a ListReservationsRequest. + * Properties of a ListReservationSlotsRequest. * @memberof google.cloud.compute.v1beta - * @interface IListReservationsRequest - * @property {string|null} [filter] ListReservationsRequest filter - * @property {number|null} [maxResults] ListReservationsRequest maxResults - * @property {string|null} [orderBy] ListReservationsRequest orderBy - * @property {string|null} [pageToken] ListReservationsRequest pageToken - * @property {string|null} [project] ListReservationsRequest project - * @property {boolean|null} [returnPartialSuccess] ListReservationsRequest returnPartialSuccess - * @property {string|null} [zone] ListReservationsRequest zone + * @interface IListReservationSlotsRequest + * @property {string|null} [filter] ListReservationSlotsRequest filter + * @property {number|null} [maxResults] ListReservationSlotsRequest maxResults + * @property {string|null} [orderBy] ListReservationSlotsRequest orderBy + * @property {string|null} [pageToken] ListReservationSlotsRequest pageToken + * @property {string|null} [parentName] ListReservationSlotsRequest parentName + * @property {string|null} [project] ListReservationSlotsRequest project + * @property {boolean|null} [returnPartialSuccess] ListReservationSlotsRequest returnPartialSuccess + * @property {string|null} [zone] ListReservationSlotsRequest zone */ /** - * Constructs a new ListReservationsRequest. + * Constructs a new ListReservationSlotsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListReservationsRequest. - * @implements IListReservationsRequest + * @classdesc Represents a ListReservationSlotsRequest. + * @implements IListReservationSlotsRequest * @constructor - * @param {google.cloud.compute.v1beta.IListReservationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListReservationSlotsRequest=} [properties] Properties to set */ - function ListReservationsRequest(properties) { + function ListReservationSlotsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1016495,116 +1027692,124 @@ } /** - * ListReservationsRequest filter. + * ListReservationSlotsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListReservationsRequest + * @memberof google.cloud.compute.v1beta.ListReservationSlotsRequest * @instance */ - ListReservationsRequest.prototype.filter = null; + ListReservationSlotsRequest.prototype.filter = null; /** - * ListReservationsRequest maxResults. + * ListReservationSlotsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListReservationsRequest + * @memberof google.cloud.compute.v1beta.ListReservationSlotsRequest * @instance */ - ListReservationsRequest.prototype.maxResults = null; + ListReservationSlotsRequest.prototype.maxResults = null; /** - * ListReservationsRequest orderBy. + * ListReservationSlotsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListReservationsRequest + * @memberof google.cloud.compute.v1beta.ListReservationSlotsRequest * @instance */ - ListReservationsRequest.prototype.orderBy = null; + ListReservationSlotsRequest.prototype.orderBy = null; /** - * ListReservationsRequest pageToken. + * ListReservationSlotsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListReservationsRequest + * @memberof google.cloud.compute.v1beta.ListReservationSlotsRequest * @instance */ - ListReservationsRequest.prototype.pageToken = null; + ListReservationSlotsRequest.prototype.pageToken = null; /** - * ListReservationsRequest project. + * ListReservationSlotsRequest parentName. + * @member {string} parentName + * @memberof google.cloud.compute.v1beta.ListReservationSlotsRequest + * @instance + */ + ListReservationSlotsRequest.prototype.parentName = ""; + + /** + * ListReservationSlotsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListReservationsRequest + * @memberof google.cloud.compute.v1beta.ListReservationSlotsRequest * @instance */ - ListReservationsRequest.prototype.project = ""; + ListReservationSlotsRequest.prototype.project = ""; /** - * ListReservationsRequest returnPartialSuccess. + * ListReservationSlotsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListReservationsRequest + * @memberof google.cloud.compute.v1beta.ListReservationSlotsRequest * @instance */ - ListReservationsRequest.prototype.returnPartialSuccess = null; + ListReservationSlotsRequest.prototype.returnPartialSuccess = null; /** - * ListReservationsRequest zone. + * ListReservationSlotsRequest zone. * @member {string} zone - * @memberof google.cloud.compute.v1beta.ListReservationsRequest + * @memberof google.cloud.compute.v1beta.ListReservationSlotsRequest * @instance */ - ListReservationsRequest.prototype.zone = ""; + ListReservationSlotsRequest.prototype.zone = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationsRequest.prototype, "_filter", { + Object.defineProperty(ListReservationSlotsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationsRequest.prototype, "_maxResults", { + Object.defineProperty(ListReservationSlotsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationsRequest.prototype, "_orderBy", { + Object.defineProperty(ListReservationSlotsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationsRequest.prototype, "_pageToken", { + Object.defineProperty(ListReservationSlotsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListReservationSlotsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListReservationsRequest instance using the specified properties. + * Creates a new ListReservationSlotsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListReservationsRequest + * @memberof google.cloud.compute.v1beta.ListReservationSlotsRequest * @static - * @param {google.cloud.compute.v1beta.IListReservationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListReservationsRequest} ListReservationsRequest instance + * @param {google.cloud.compute.v1beta.IListReservationSlotsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListReservationSlotsRequest} ListReservationSlotsRequest instance */ - ListReservationsRequest.create = function create(properties) { - return new ListReservationsRequest(properties); + ListReservationSlotsRequest.create = function create(properties) { + return new ListReservationSlotsRequest(properties); }; /** - * Encodes the specified ListReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListReservationsRequest.verify|verify} messages. + * Encodes the specified ListReservationSlotsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListReservationSlotsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListReservationsRequest + * @memberof google.cloud.compute.v1beta.ListReservationSlotsRequest * @static - * @param {google.cloud.compute.v1beta.IListReservationsRequest} message ListReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListReservationSlotsRequest} message ListReservationSlotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReservationsRequest.encode = function encode(message, writer) { + ListReservationSlotsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) @@ -1016619,39 +1027824,41 @@ writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.parentName != null && Object.hasOwnProperty.call(message, "parentName")) + writer.uint32(/* id 478151936, wireType 2 =*/3825215490).string(message.parentName); if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); return writer; }; /** - * Encodes the specified ListReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListReservationsRequest.verify|verify} messages. + * Encodes the specified ListReservationSlotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListReservationSlotsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListReservationsRequest + * @memberof google.cloud.compute.v1beta.ListReservationSlotsRequest * @static - * @param {google.cloud.compute.v1beta.IListReservationsRequest} message ListReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListReservationSlotsRequest} message ListReservationSlotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListReservationSlotsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListReservationsRequest message from the specified reader or buffer. + * Decodes a ListReservationSlotsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListReservationsRequest + * @memberof google.cloud.compute.v1beta.ListReservationSlotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListReservationsRequest} ListReservationsRequest + * @returns {google.cloud.compute.v1beta.ListReservationSlotsRequest} ListReservationSlotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReservationsRequest.decode = function decode(reader, length, error) { + ListReservationSlotsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListReservationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListReservationSlotsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1016673,6 +1027880,10 @@ message.pageToken = reader.string(); break; } + case 478151936: { + message.parentName = reader.string(); + break; + } case 227560217: { message.project = reader.string(); break; @@ -1016694,30 +1027905,30 @@ }; /** - * Decodes a ListReservationsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListReservationSlotsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListReservationsRequest + * @memberof google.cloud.compute.v1beta.ListReservationSlotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListReservationsRequest} ListReservationsRequest + * @returns {google.cloud.compute.v1beta.ListReservationSlotsRequest} ListReservationSlotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReservationsRequest.decodeDelimited = function decodeDelimited(reader) { + ListReservationSlotsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListReservationsRequest message. + * Verifies a ListReservationSlotsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListReservationsRequest + * @memberof google.cloud.compute.v1beta.ListReservationSlotsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListReservationsRequest.verify = function verify(message) { + ListReservationSlotsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1016741,6 +1027952,9 @@ if (!$util.isString(message.pageToken)) return "pageToken: string expected"; } + if (message.parentName != null && message.hasOwnProperty("parentName")) + if (!$util.isString(message.parentName)) + return "parentName: string expected"; if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; @@ -1016756,17 +1027970,17 @@ }; /** - * Creates a ListReservationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListReservationSlotsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListReservationsRequest + * @memberof google.cloud.compute.v1beta.ListReservationSlotsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListReservationsRequest} ListReservationsRequest + * @returns {google.cloud.compute.v1beta.ListReservationSlotsRequest} ListReservationSlotsRequest */ - ListReservationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListReservationsRequest) + ListReservationSlotsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListReservationSlotsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListReservationsRequest(); + var message = new $root.google.cloud.compute.v1beta.ListReservationSlotsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1016775,6 +1027989,8 @@ message.orderBy = String(object.orderBy); if (object.pageToken != null) message.pageToken = String(object.pageToken); + if (object.parentName != null) + message.parentName = String(object.parentName); if (object.project != null) message.project = String(object.project); if (object.returnPartialSuccess != null) @@ -1016785,21 +1028001,22 @@ }; /** - * Creates a plain object from a ListReservationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListReservationSlotsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListReservationsRequest + * @memberof google.cloud.compute.v1beta.ListReservationSlotsRequest * @static - * @param {google.cloud.compute.v1beta.ListReservationsRequest} message ListReservationsRequest + * @param {google.cloud.compute.v1beta.ListReservationSlotsRequest} message ListReservationSlotsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListReservationsRequest.toObject = function toObject(message, options) { + ListReservationSlotsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.zone = ""; object.project = ""; + object.parentName = ""; } if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; @@ -1016825,6 +1028042,8 @@ if (options.oneofs) object._filter = "filter"; } + if (message.parentName != null && message.hasOwnProperty("parentName")) + object.parentName = message.parentName; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { object.returnPartialSuccess = message.returnPartialSuccess; if (options.oneofs) @@ -1016834,58 +1028053,59 @@ }; /** - * Converts this ListReservationsRequest to JSON. + * Converts this ListReservationSlotsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListReservationsRequest + * @memberof google.cloud.compute.v1beta.ListReservationSlotsRequest * @instance * @returns {Object.} JSON object */ - ListReservationsRequest.prototype.toJSON = function toJSON() { + ListReservationSlotsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListReservationsRequest + * Gets the default type url for ListReservationSlotsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListReservationsRequest + * @memberof google.cloud.compute.v1beta.ListReservationSlotsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListReservationSlotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListReservationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListReservationSlotsRequest"; }; - return ListReservationsRequest; + return ListReservationSlotsRequest; })(); - v1beta.ListResourcePoliciesRequest = (function() { + v1beta.ListReservationSubBlocksRequest = (function() { /** - * Properties of a ListResourcePoliciesRequest. + * Properties of a ListReservationSubBlocksRequest. * @memberof google.cloud.compute.v1beta - * @interface IListResourcePoliciesRequest - * @property {string|null} [filter] ListResourcePoliciesRequest filter - * @property {number|null} [maxResults] ListResourcePoliciesRequest maxResults - * @property {string|null} [orderBy] ListResourcePoliciesRequest orderBy - * @property {string|null} [pageToken] ListResourcePoliciesRequest pageToken - * @property {string|null} [project] ListResourcePoliciesRequest project - * @property {string|null} [region] ListResourcePoliciesRequest region - * @property {boolean|null} [returnPartialSuccess] ListResourcePoliciesRequest returnPartialSuccess + * @interface IListReservationSubBlocksRequest + * @property {string|null} [filter] ListReservationSubBlocksRequest filter + * @property {number|null} [maxResults] ListReservationSubBlocksRequest maxResults + * @property {string|null} [orderBy] ListReservationSubBlocksRequest orderBy + * @property {string|null} [pageToken] ListReservationSubBlocksRequest pageToken + * @property {string|null} [parentName] ListReservationSubBlocksRequest parentName + * @property {string|null} [project] ListReservationSubBlocksRequest project + * @property {boolean|null} [returnPartialSuccess] ListReservationSubBlocksRequest returnPartialSuccess + * @property {string|null} [zone] ListReservationSubBlocksRequest zone */ /** - * Constructs a new ListResourcePoliciesRequest. + * Constructs a new ListReservationSubBlocksRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListResourcePoliciesRequest. - * @implements IListResourcePoliciesRequest + * @classdesc Represents a ListReservationSubBlocksRequest. + * @implements IListReservationSubBlocksRequest * @constructor - * @param {google.cloud.compute.v1beta.IListResourcePoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListReservationSubBlocksRequest=} [properties] Properties to set */ - function ListResourcePoliciesRequest(properties) { + function ListReservationSubBlocksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1016893,163 +1028113,173 @@ } /** - * ListResourcePoliciesRequest filter. + * ListReservationSubBlocksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest * @instance */ - ListResourcePoliciesRequest.prototype.filter = null; + ListReservationSubBlocksRequest.prototype.filter = null; /** - * ListResourcePoliciesRequest maxResults. + * ListReservationSubBlocksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest * @instance */ - ListResourcePoliciesRequest.prototype.maxResults = null; + ListReservationSubBlocksRequest.prototype.maxResults = null; /** - * ListResourcePoliciesRequest orderBy. + * ListReservationSubBlocksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest * @instance */ - ListResourcePoliciesRequest.prototype.orderBy = null; + ListReservationSubBlocksRequest.prototype.orderBy = null; /** - * ListResourcePoliciesRequest pageToken. + * ListReservationSubBlocksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest * @instance */ - ListResourcePoliciesRequest.prototype.pageToken = null; + ListReservationSubBlocksRequest.prototype.pageToken = null; /** - * ListResourcePoliciesRequest project. - * @member {string} project - * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest + * ListReservationSubBlocksRequest parentName. + * @member {string} parentName + * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest * @instance */ - ListResourcePoliciesRequest.prototype.project = ""; + ListReservationSubBlocksRequest.prototype.parentName = ""; /** - * ListResourcePoliciesRequest region. - * @member {string} region - * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest + * ListReservationSubBlocksRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest * @instance */ - ListResourcePoliciesRequest.prototype.region = ""; + ListReservationSubBlocksRequest.prototype.project = ""; /** - * ListResourcePoliciesRequest returnPartialSuccess. + * ListReservationSubBlocksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest * @instance */ - ListResourcePoliciesRequest.prototype.returnPartialSuccess = null; + ListReservationSubBlocksRequest.prototype.returnPartialSuccess = null; + + /** + * ListReservationSubBlocksRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest + * @instance + */ + ListReservationSubBlocksRequest.prototype.zone = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListResourcePoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListResourcePoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListResourcePoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListResourcePoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListResourcePoliciesRequest instance using the specified properties. + * Creates a new ListReservationSubBlocksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest * @static - * @param {google.cloud.compute.v1beta.IListResourcePoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListResourcePoliciesRequest} ListResourcePoliciesRequest instance + * @param {google.cloud.compute.v1beta.IListReservationSubBlocksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListReservationSubBlocksRequest} ListReservationSubBlocksRequest instance */ - ListResourcePoliciesRequest.create = function create(properties) { - return new ListResourcePoliciesRequest(properties); + ListReservationSubBlocksRequest.create = function create(properties) { + return new ListReservationSubBlocksRequest(properties); }; /** - * Encodes the specified ListResourcePoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListResourcePoliciesRequest.verify|verify} messages. + * Encodes the specified ListReservationSubBlocksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListReservationSubBlocksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest * @static - * @param {google.cloud.compute.v1beta.IListResourcePoliciesRequest} message ListResourcePoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListReservationSubBlocksRequest} message ListReservationSubBlocksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListResourcePoliciesRequest.encode = function encode(message, writer) { + ListReservationSubBlocksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); - if (message.region != null && Object.hasOwnProperty.call(message, "region")) - writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.parentName != null && Object.hasOwnProperty.call(message, "parentName")) + writer.uint32(/* id 478151936, wireType 2 =*/3825215490).string(message.parentName); if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); return writer; }; /** - * Encodes the specified ListResourcePoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListResourcePoliciesRequest.verify|verify} messages. + * Encodes the specified ListReservationSubBlocksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListReservationSubBlocksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest * @static - * @param {google.cloud.compute.v1beta.IListResourcePoliciesRequest} message ListResourcePoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListReservationSubBlocksRequest} message ListReservationSubBlocksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListResourcePoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListReservationSubBlocksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListResourcePoliciesRequest message from the specified reader or buffer. + * Decodes a ListReservationSubBlocksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListResourcePoliciesRequest} ListResourcePoliciesRequest + * @returns {google.cloud.compute.v1beta.ListReservationSubBlocksRequest} ListReservationSubBlocksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListResourcePoliciesRequest.decode = function decode(reader, length, error) { + ListReservationSubBlocksRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListResourcePoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListReservationSubBlocksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1017071,18 +1028301,22 @@ message.pageToken = reader.string(); break; } - case 227560217: { - message.project = reader.string(); + case 478151936: { + message.parentName = reader.string(); break; } - case 138946292: { - message.region = reader.string(); + case 227560217: { + message.project = reader.string(); break; } case 517198390: { message.returnPartialSuccess = reader.bool(); break; } + case 3744684: { + message.zone = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -1017092,30 +1028326,30 @@ }; /** - * Decodes a ListResourcePoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListReservationSubBlocksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListResourcePoliciesRequest} ListResourcePoliciesRequest + * @returns {google.cloud.compute.v1beta.ListReservationSubBlocksRequest} ListReservationSubBlocksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListResourcePoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListReservationSubBlocksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListResourcePoliciesRequest message. + * Verifies a ListReservationSubBlocksRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListResourcePoliciesRequest.verify = function verify(message) { + ListReservationSubBlocksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1017139,32 +1028373,35 @@ if (!$util.isString(message.pageToken)) return "pageToken: string expected"; } + if (message.parentName != null && message.hasOwnProperty("parentName")) + if (!$util.isString(message.parentName)) + return "parentName: string expected"; if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; - if (message.region != null && message.hasOwnProperty("region")) - if (!$util.isString(message.region)) - return "region: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") return "returnPartialSuccess: boolean expected"; } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; return null; }; /** - * Creates a ListResourcePoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListReservationSubBlocksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListResourcePoliciesRequest} ListResourcePoliciesRequest + * @returns {google.cloud.compute.v1beta.ListReservationSubBlocksRequest} ListReservationSubBlocksRequest */ - ListResourcePoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListResourcePoliciesRequest) + ListReservationSubBlocksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListReservationSubBlocksRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListResourcePoliciesRequest(); + var message = new $root.google.cloud.compute.v1beta.ListReservationSubBlocksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1017173,32 +1028410,37 @@ message.orderBy = String(object.orderBy); if (object.pageToken != null) message.pageToken = String(object.pageToken); + if (object.parentName != null) + message.parentName = String(object.parentName); if (object.project != null) message.project = String(object.project); - if (object.region != null) - message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + if (object.zone != null) + message.zone = String(object.zone); return message; }; /** - * Creates a plain object from a ListResourcePoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListReservationSubBlocksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest * @static - * @param {google.cloud.compute.v1beta.ListResourcePoliciesRequest} message ListResourcePoliciesRequest + * @param {google.cloud.compute.v1beta.ListReservationSubBlocksRequest} message ListReservationSubBlocksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListResourcePoliciesRequest.toObject = function toObject(message, options) { + ListReservationSubBlocksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.region = ""; + object.zone = ""; object.project = ""; + object.parentName = ""; } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -1017209,8 +1028451,6 @@ if (options.oneofs) object._maxResults = "maxResults"; } - if (message.region != null && message.hasOwnProperty("region")) - object.region = message.region; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -1017223,6 +1028463,8 @@ if (options.oneofs) object._filter = "filter"; } + if (message.parentName != null && message.hasOwnProperty("parentName")) + object.parentName = message.parentName; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { object.returnPartialSuccess = message.returnPartialSuccess; if (options.oneofs) @@ -1017232,57 +1028474,58 @@ }; /** - * Converts this ListResourcePoliciesRequest to JSON. + * Converts this ListReservationSubBlocksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest * @instance * @returns {Object.} JSON object */ - ListResourcePoliciesRequest.prototype.toJSON = function toJSON() { + ListReservationSubBlocksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListResourcePoliciesRequest + * Gets the default type url for ListReservationSubBlocksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.ListReservationSubBlocksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListResourcePoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListReservationSubBlocksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListResourcePoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListReservationSubBlocksRequest"; }; - return ListResourcePoliciesRequest; + return ListReservationSubBlocksRequest; })(); - v1beta.ListRolloutPlansRequest = (function() { + v1beta.ListReservationsRequest = (function() { /** - * Properties of a ListRolloutPlansRequest. + * Properties of a ListReservationsRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRolloutPlansRequest - * @property {string|null} [filter] ListRolloutPlansRequest filter - * @property {number|null} [maxResults] ListRolloutPlansRequest maxResults - * @property {string|null} [orderBy] ListRolloutPlansRequest orderBy - * @property {string|null} [pageToken] ListRolloutPlansRequest pageToken - * @property {string|null} [project] ListRolloutPlansRequest project - * @property {boolean|null} [returnPartialSuccess] ListRolloutPlansRequest returnPartialSuccess + * @interface IListReservationsRequest + * @property {string|null} [filter] ListReservationsRequest filter + * @property {number|null} [maxResults] ListReservationsRequest maxResults + * @property {string|null} [orderBy] ListReservationsRequest orderBy + * @property {string|null} [pageToken] ListReservationsRequest pageToken + * @property {string|null} [project] ListReservationsRequest project + * @property {boolean|null} [returnPartialSuccess] ListReservationsRequest returnPartialSuccess + * @property {string|null} [zone] ListReservationsRequest zone */ /** - * Constructs a new ListRolloutPlansRequest. + * Constructs a new ListReservationsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRolloutPlansRequest. - * @implements IListRolloutPlansRequest + * @classdesc Represents a ListReservationsRequest. + * @implements IListReservationsRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRolloutPlansRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListReservationsRequest=} [properties] Properties to set */ - function ListRolloutPlansRequest(properties) { + function ListReservationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1017290,110 +1028533,120 @@ } /** - * ListRolloutPlansRequest filter. + * ListReservationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @memberof google.cloud.compute.v1beta.ListReservationsRequest * @instance */ - ListRolloutPlansRequest.prototype.filter = null; + ListReservationsRequest.prototype.filter = null; /** - * ListRolloutPlansRequest maxResults. + * ListReservationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @memberof google.cloud.compute.v1beta.ListReservationsRequest * @instance */ - ListRolloutPlansRequest.prototype.maxResults = null; + ListReservationsRequest.prototype.maxResults = null; /** - * ListRolloutPlansRequest orderBy. + * ListReservationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @memberof google.cloud.compute.v1beta.ListReservationsRequest * @instance */ - ListRolloutPlansRequest.prototype.orderBy = null; + ListReservationsRequest.prototype.orderBy = null; /** - * ListRolloutPlansRequest pageToken. + * ListReservationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @memberof google.cloud.compute.v1beta.ListReservationsRequest * @instance */ - ListRolloutPlansRequest.prototype.pageToken = null; + ListReservationsRequest.prototype.pageToken = null; /** - * ListRolloutPlansRequest project. + * ListReservationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @memberof google.cloud.compute.v1beta.ListReservationsRequest * @instance */ - ListRolloutPlansRequest.prototype.project = ""; + ListReservationsRequest.prototype.project = ""; /** - * ListRolloutPlansRequest returnPartialSuccess. + * ListReservationsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @memberof google.cloud.compute.v1beta.ListReservationsRequest * @instance */ - ListRolloutPlansRequest.prototype.returnPartialSuccess = null; + ListReservationsRequest.prototype.returnPartialSuccess = null; + + /** + * ListReservationsRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.ListReservationsRequest + * @instance + */ + ListReservationsRequest.prototype.zone = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRolloutPlansRequest.prototype, "_filter", { + Object.defineProperty(ListReservationsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRolloutPlansRequest.prototype, "_maxResults", { + Object.defineProperty(ListReservationsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRolloutPlansRequest.prototype, "_orderBy", { + Object.defineProperty(ListReservationsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRolloutPlansRequest.prototype, "_pageToken", { + Object.defineProperty(ListReservationsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRolloutPlansRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListReservationsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRolloutPlansRequest instance using the specified properties. + * Creates a new ListReservationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @memberof google.cloud.compute.v1beta.ListReservationsRequest * @static - * @param {google.cloud.compute.v1beta.IListRolloutPlansRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRolloutPlansRequest} ListRolloutPlansRequest instance + * @param {google.cloud.compute.v1beta.IListReservationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListReservationsRequest} ListReservationsRequest instance */ - ListRolloutPlansRequest.create = function create(properties) { - return new ListRolloutPlansRequest(properties); + ListReservationsRequest.create = function create(properties) { + return new ListReservationsRequest(properties); }; /** - * Encodes the specified ListRolloutPlansRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRolloutPlansRequest.verify|verify} messages. + * Encodes the specified ListReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListReservationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @memberof google.cloud.compute.v1beta.ListReservationsRequest * @static - * @param {google.cloud.compute.v1beta.IListRolloutPlansRequest} message ListRolloutPlansRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListReservationsRequest} message ListReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRolloutPlansRequest.encode = function encode(message, writer) { + ListReservationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) @@ -1017410,33 +1028663,33 @@ }; /** - * Encodes the specified ListRolloutPlansRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRolloutPlansRequest.verify|verify} messages. + * Encodes the specified ListReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListReservationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @memberof google.cloud.compute.v1beta.ListReservationsRequest * @static - * @param {google.cloud.compute.v1beta.IListRolloutPlansRequest} message ListRolloutPlansRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListReservationsRequest} message ListReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRolloutPlansRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRolloutPlansRequest message from the specified reader or buffer. + * Decodes a ListReservationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @memberof google.cloud.compute.v1beta.ListReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRolloutPlansRequest} ListRolloutPlansRequest + * @returns {google.cloud.compute.v1beta.ListReservationsRequest} ListReservationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRolloutPlansRequest.decode = function decode(reader, length, error) { + ListReservationsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRolloutPlansRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListReservationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1017466,6 +1028719,10 @@ message.returnPartialSuccess = reader.bool(); break; } + case 3744684: { + message.zone = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -1017475,30 +1028732,30 @@ }; /** - * Decodes a ListRolloutPlansRequest message from the specified reader or buffer, length delimited. + * Decodes a ListReservationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @memberof google.cloud.compute.v1beta.ListReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRolloutPlansRequest} ListRolloutPlansRequest + * @returns {google.cloud.compute.v1beta.ListReservationsRequest} ListReservationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRolloutPlansRequest.decodeDelimited = function decodeDelimited(reader) { + ListReservationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRolloutPlansRequest message. + * Verifies a ListReservationsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @memberof google.cloud.compute.v1beta.ListReservationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRolloutPlansRequest.verify = function verify(message) { + ListReservationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1017530,21 +1028787,24 @@ if (typeof message.returnPartialSuccess !== "boolean") return "returnPartialSuccess: boolean expected"; } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; return null; }; /** - * Creates a ListRolloutPlansRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListReservationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @memberof google.cloud.compute.v1beta.ListReservationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRolloutPlansRequest} ListRolloutPlansRequest + * @returns {google.cloud.compute.v1beta.ListReservationsRequest} ListReservationsRequest */ - ListRolloutPlansRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRolloutPlansRequest) + ListReservationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListReservationsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRolloutPlansRequest(); + var message = new $root.google.cloud.compute.v1beta.ListReservationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1017557,24 +1028817,30 @@ message.project = String(object.project); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + if (object.zone != null) + message.zone = String(object.zone); return message; }; /** - * Creates a plain object from a ListRolloutPlansRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListReservationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @memberof google.cloud.compute.v1beta.ListReservationsRequest * @static - * @param {google.cloud.compute.v1beta.ListRolloutPlansRequest} message ListRolloutPlansRequest + * @param {google.cloud.compute.v1beta.ListReservationsRequest} message ListReservationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRolloutPlansRequest.toObject = function toObject(message, options) { + ListReservationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.zone = ""; object.project = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -1017606,57 +1028872,58 @@ }; /** - * Converts this ListRolloutPlansRequest to JSON. + * Converts this ListReservationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @memberof google.cloud.compute.v1beta.ListReservationsRequest * @instance * @returns {Object.} JSON object */ - ListRolloutPlansRequest.prototype.toJSON = function toJSON() { + ListReservationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRolloutPlansRequest + * Gets the default type url for ListReservationsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @memberof google.cloud.compute.v1beta.ListReservationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRolloutPlansRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRolloutPlansRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListReservationsRequest"; }; - return ListRolloutPlansRequest; + return ListReservationsRequest; })(); - v1beta.ListRolloutsRequest = (function() { + v1beta.ListResourcePoliciesRequest = (function() { /** - * Properties of a ListRolloutsRequest. + * Properties of a ListResourcePoliciesRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRolloutsRequest - * @property {string|null} [filter] ListRolloutsRequest filter - * @property {number|null} [maxResults] ListRolloutsRequest maxResults - * @property {string|null} [orderBy] ListRolloutsRequest orderBy - * @property {string|null} [pageToken] ListRolloutsRequest pageToken - * @property {string|null} [project] ListRolloutsRequest project - * @property {boolean|null} [returnPartialSuccess] ListRolloutsRequest returnPartialSuccess + * @interface IListResourcePoliciesRequest + * @property {string|null} [filter] ListResourcePoliciesRequest filter + * @property {number|null} [maxResults] ListResourcePoliciesRequest maxResults + * @property {string|null} [orderBy] ListResourcePoliciesRequest orderBy + * @property {string|null} [pageToken] ListResourcePoliciesRequest pageToken + * @property {string|null} [project] ListResourcePoliciesRequest project + * @property {string|null} [region] ListResourcePoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListResourcePoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRolloutsRequest. + * Constructs a new ListResourcePoliciesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRolloutsRequest. - * @implements IListRolloutsRequest + * @classdesc Represents a ListResourcePoliciesRequest. + * @implements IListResourcePoliciesRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRolloutsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListResourcePoliciesRequest=} [properties] Properties to set */ - function ListRolloutsRequest(properties) { + function ListResourcePoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1017664,114 +1028931,124 @@ } /** - * ListRolloutsRequest filter. + * ListResourcePoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest * @instance */ - ListRolloutsRequest.prototype.filter = null; + ListResourcePoliciesRequest.prototype.filter = null; /** - * ListRolloutsRequest maxResults. + * ListResourcePoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest * @instance */ - ListRolloutsRequest.prototype.maxResults = null; + ListResourcePoliciesRequest.prototype.maxResults = null; /** - * ListRolloutsRequest orderBy. + * ListResourcePoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest * @instance */ - ListRolloutsRequest.prototype.orderBy = null; + ListResourcePoliciesRequest.prototype.orderBy = null; /** - * ListRolloutsRequest pageToken. + * ListResourcePoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest * @instance */ - ListRolloutsRequest.prototype.pageToken = null; + ListResourcePoliciesRequest.prototype.pageToken = null; /** - * ListRolloutsRequest project. + * ListResourcePoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest * @instance */ - ListRolloutsRequest.prototype.project = ""; + ListResourcePoliciesRequest.prototype.project = ""; /** - * ListRolloutsRequest returnPartialSuccess. + * ListResourcePoliciesRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest + * @instance + */ + ListResourcePoliciesRequest.prototype.region = ""; + + /** + * ListResourcePoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest * @instance */ - ListRolloutsRequest.prototype.returnPartialSuccess = null; + ListResourcePoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRolloutsRequest.prototype, "_filter", { + Object.defineProperty(ListResourcePoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRolloutsRequest.prototype, "_maxResults", { + Object.defineProperty(ListResourcePoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRolloutsRequest.prototype, "_orderBy", { + Object.defineProperty(ListResourcePoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRolloutsRequest.prototype, "_pageToken", { + Object.defineProperty(ListResourcePoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRolloutsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRolloutsRequest instance using the specified properties. + * Creates a new ListResourcePoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IListRolloutsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRolloutsRequest} ListRolloutsRequest instance + * @param {google.cloud.compute.v1beta.IListResourcePoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListResourcePoliciesRequest} ListResourcePoliciesRequest instance */ - ListRolloutsRequest.create = function create(properties) { - return new ListRolloutsRequest(properties); + ListResourcePoliciesRequest.create = function create(properties) { + return new ListResourcePoliciesRequest(properties); }; /** - * Encodes the specified ListRolloutsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRolloutsRequest.verify|verify} messages. + * Encodes the specified ListResourcePoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListResourcePoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IListRolloutsRequest} message ListRolloutsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListResourcePoliciesRequest} message ListResourcePoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRolloutsRequest.encode = function encode(message, writer) { + ListResourcePoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -1017784,33 +1029061,33 @@ }; /** - * Encodes the specified ListRolloutsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRolloutsRequest.verify|verify} messages. + * Encodes the specified ListResourcePoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListResourcePoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IListRolloutsRequest} message ListRolloutsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListResourcePoliciesRequest} message ListResourcePoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRolloutsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListResourcePoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRolloutsRequest message from the specified reader or buffer. + * Decodes a ListResourcePoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRolloutsRequest} ListRolloutsRequest + * @returns {google.cloud.compute.v1beta.ListResourcePoliciesRequest} ListResourcePoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRolloutsRequest.decode = function decode(reader, length, error) { + ListResourcePoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRolloutsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListResourcePoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1017836,6 +1029113,10 @@ message.project = reader.string(); break; } + case 138946292: { + message.region = reader.string(); + break; + } case 517198390: { message.returnPartialSuccess = reader.bool(); break; @@ -1017849,30 +1029130,30 @@ }; /** - * Decodes a ListRolloutsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListResourcePoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRolloutsRequest} ListRolloutsRequest + * @returns {google.cloud.compute.v1beta.ListResourcePoliciesRequest} ListResourcePoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRolloutsRequest.decodeDelimited = function decodeDelimited(reader) { + ListResourcePoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRolloutsRequest message. + * Verifies a ListResourcePoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRolloutsRequest.verify = function verify(message) { + ListResourcePoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1017899,6 +1029180,9 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") @@ -1017908,17 +1029192,17 @@ }; /** - * Creates a ListRolloutsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListResourcePoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRolloutsRequest} ListRolloutsRequest + * @returns {google.cloud.compute.v1beta.ListResourcePoliciesRequest} ListResourcePoliciesRequest */ - ListRolloutsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRolloutsRequest) + ListResourcePoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListResourcePoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRolloutsRequest(); + var message = new $root.google.cloud.compute.v1beta.ListResourcePoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -1017929,26 +1029213,30 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); return message; }; /** - * Creates a plain object from a ListRolloutsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListResourcePoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1beta.ListRolloutsRequest} message ListRolloutsRequest + * @param {google.cloud.compute.v1beta.ListResourcePoliciesRequest} message ListResourcePoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRolloutsRequest.toObject = function toObject(message, options) { + ListResourcePoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.region = ""; object.project = ""; + } if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -1017959,6 +1029247,8 @@ if (options.oneofs) object._maxResults = "maxResults"; } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -1017980,59 +1029270,57 @@ }; /** - * Converts this ListRolloutsRequest to JSON. + * Converts this ListResourcePoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRolloutsRequest.prototype.toJSON = function toJSON() { + ListResourcePoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRolloutsRequest + * Gets the default type url for ListResourcePoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @memberof google.cloud.compute.v1beta.ListResourcePoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRolloutsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListResourcePoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRolloutsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListResourcePoliciesRequest"; }; - return ListRolloutsRequest; + return ListResourcePoliciesRequest; })(); - v1beta.ListRoutePoliciesRoutersRequest = (function() { + v1beta.ListRolloutPlansRequest = (function() { /** - * Properties of a ListRoutePoliciesRoutersRequest. + * Properties of a ListRolloutPlansRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRoutePoliciesRoutersRequest - * @property {string|null} [filter] ListRoutePoliciesRoutersRequest filter - * @property {number|null} [maxResults] ListRoutePoliciesRoutersRequest maxResults - * @property {string|null} [orderBy] ListRoutePoliciesRoutersRequest orderBy - * @property {string|null} [pageToken] ListRoutePoliciesRoutersRequest pageToken - * @property {string|null} [project] ListRoutePoliciesRoutersRequest project - * @property {string|null} [region] ListRoutePoliciesRoutersRequest region - * @property {boolean|null} [returnPartialSuccess] ListRoutePoliciesRoutersRequest returnPartialSuccess - * @property {string|null} [router] ListRoutePoliciesRoutersRequest router + * @interface IListRolloutPlansRequest + * @property {string|null} [filter] ListRolloutPlansRequest filter + * @property {number|null} [maxResults] ListRolloutPlansRequest maxResults + * @property {string|null} [orderBy] ListRolloutPlansRequest orderBy + * @property {string|null} [pageToken] ListRolloutPlansRequest pageToken + * @property {string|null} [project] ListRolloutPlansRequest project + * @property {boolean|null} [returnPartialSuccess] ListRolloutPlansRequest returnPartialSuccess */ /** - * Constructs a new ListRoutePoliciesRoutersRequest. + * Constructs a new ListRolloutPlansRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRoutePoliciesRoutersRequest. - * @implements IListRoutePoliciesRoutersRequest + * @classdesc Represents a ListRolloutPlansRequest. + * @implements IListRolloutPlansRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRoutePoliciesRoutersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRolloutPlansRequest=} [properties] Properties to set */ - function ListRoutePoliciesRoutersRequest(properties) { + function ListRolloutPlansRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1018040,134 +1029328,114 @@ } /** - * ListRoutePoliciesRoutersRequest filter. + * ListRolloutPlansRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest * @instance */ - ListRoutePoliciesRoutersRequest.prototype.filter = null; + ListRolloutPlansRequest.prototype.filter = null; /** - * ListRoutePoliciesRoutersRequest maxResults. + * ListRolloutPlansRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest * @instance */ - ListRoutePoliciesRoutersRequest.prototype.maxResults = null; + ListRolloutPlansRequest.prototype.maxResults = null; /** - * ListRoutePoliciesRoutersRequest orderBy. + * ListRolloutPlansRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest * @instance */ - ListRoutePoliciesRoutersRequest.prototype.orderBy = null; + ListRolloutPlansRequest.prototype.orderBy = null; /** - * ListRoutePoliciesRoutersRequest pageToken. + * ListRolloutPlansRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest * @instance */ - ListRoutePoliciesRoutersRequest.prototype.pageToken = null; + ListRolloutPlansRequest.prototype.pageToken = null; /** - * ListRoutePoliciesRoutersRequest project. + * ListRolloutPlansRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest - * @instance - */ - ListRoutePoliciesRoutersRequest.prototype.project = ""; - - /** - * ListRoutePoliciesRoutersRequest region. - * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest * @instance */ - ListRoutePoliciesRoutersRequest.prototype.region = ""; + ListRolloutPlansRequest.prototype.project = ""; /** - * ListRoutePoliciesRoutersRequest returnPartialSuccess. + * ListRolloutPlansRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest - * @instance - */ - ListRoutePoliciesRoutersRequest.prototype.returnPartialSuccess = null; - - /** - * ListRoutePoliciesRoutersRequest router. - * @member {string} router - * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest * @instance */ - ListRoutePoliciesRoutersRequest.prototype.router = ""; + ListRolloutPlansRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_filter", { + Object.defineProperty(ListRolloutPlansRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_maxResults", { + Object.defineProperty(ListRolloutPlansRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_orderBy", { + Object.defineProperty(ListRolloutPlansRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_pageToken", { + Object.defineProperty(ListRolloutPlansRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRolloutPlansRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRoutePoliciesRoutersRequest instance using the specified properties. + * Creates a new ListRolloutPlansRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest * @static - * @param {google.cloud.compute.v1beta.IListRoutePoliciesRoutersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest} ListRoutePoliciesRoutersRequest instance + * @param {google.cloud.compute.v1beta.IListRolloutPlansRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRolloutPlansRequest} ListRolloutPlansRequest instance */ - ListRoutePoliciesRoutersRequest.create = function create(properties) { - return new ListRoutePoliciesRoutersRequest(properties); + ListRolloutPlansRequest.create = function create(properties) { + return new ListRolloutPlansRequest(properties); }; /** - * Encodes the specified ListRoutePoliciesRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest.verify|verify} messages. + * Encodes the specified ListRolloutPlansRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRolloutPlansRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest * @static - * @param {google.cloud.compute.v1beta.IListRoutePoliciesRoutersRequest} message ListRoutePoliciesRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRolloutPlansRequest} message ListRolloutPlansRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRoutePoliciesRoutersRequest.encode = function encode(message, writer) { + ListRolloutPlansRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); - if (message.region != null && Object.hasOwnProperty.call(message, "region")) - writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); - if (message.router != null && Object.hasOwnProperty.call(message, "router")) - writer.uint32(/* id 148608841, wireType 2 =*/1188870730).string(message.router); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -1018180,33 +1029448,33 @@ }; /** - * Encodes the specified ListRoutePoliciesRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest.verify|verify} messages. + * Encodes the specified ListRolloutPlansRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRolloutPlansRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest * @static - * @param {google.cloud.compute.v1beta.IListRoutePoliciesRoutersRequest} message ListRoutePoliciesRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRolloutPlansRequest} message ListRolloutPlansRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRoutePoliciesRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRolloutPlansRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRoutePoliciesRoutersRequest message from the specified reader or buffer. + * Decodes a ListRolloutPlansRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest} ListRoutePoliciesRoutersRequest + * @returns {google.cloud.compute.v1beta.ListRolloutPlansRequest} ListRolloutPlansRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRoutePoliciesRoutersRequest.decode = function decode(reader, length, error) { + ListRolloutPlansRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRolloutPlansRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1018232,18 +1029500,10 @@ message.project = reader.string(); break; } - case 138946292: { - message.region = reader.string(); - break; - } case 517198390: { message.returnPartialSuccess = reader.bool(); break; } - case 148608841: { - message.router = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -1018253,30 +1029513,808 @@ }; /** - * Decodes a ListRoutePoliciesRoutersRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRolloutPlansRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest} ListRoutePoliciesRoutersRequest + * @returns {google.cloud.compute.v1beta.ListRolloutPlansRequest} ListRolloutPlansRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRoutePoliciesRoutersRequest.decodeDelimited = function decodeDelimited(reader) { + ListRolloutPlansRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRoutePoliciesRoutersRequest message. + * Verifies a ListRolloutPlansRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRoutePoliciesRoutersRequest.verify = function verify(message) { + ListRolloutPlansRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + return null; + }; + + /** + * Creates a ListRolloutPlansRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ListRolloutPlansRequest} ListRolloutPlansRequest + */ + ListRolloutPlansRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRolloutPlansRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.ListRolloutPlansRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + return message; + }; + + /** + * Creates a plain object from a ListRolloutPlansRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @static + * @param {google.cloud.compute.v1beta.ListRolloutPlansRequest} message ListRolloutPlansRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListRolloutPlansRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.project = ""; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this ListRolloutPlansRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @instance + * @returns {Object.} JSON object + */ + ListRolloutPlansRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListRolloutPlansRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ListRolloutPlansRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListRolloutPlansRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRolloutPlansRequest"; + }; + + return ListRolloutPlansRequest; + })(); + + v1beta.ListRolloutsRequest = (function() { + + /** + * Properties of a ListRolloutsRequest. + * @memberof google.cloud.compute.v1beta + * @interface IListRolloutsRequest + * @property {string|null} [filter] ListRolloutsRequest filter + * @property {number|null} [maxResults] ListRolloutsRequest maxResults + * @property {string|null} [orderBy] ListRolloutsRequest orderBy + * @property {string|null} [pageToken] ListRolloutsRequest pageToken + * @property {string|null} [project] ListRolloutsRequest project + * @property {boolean|null} [returnPartialSuccess] ListRolloutsRequest returnPartialSuccess + */ + + /** + * Constructs a new ListRolloutsRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ListRolloutsRequest. + * @implements IListRolloutsRequest + * @constructor + * @param {google.cloud.compute.v1beta.IListRolloutsRequest=} [properties] Properties to set + */ + function ListRolloutsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListRolloutsRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @instance + */ + ListRolloutsRequest.prototype.filter = null; + + /** + * ListRolloutsRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @instance + */ + ListRolloutsRequest.prototype.maxResults = null; + + /** + * ListRolloutsRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @instance + */ + ListRolloutsRequest.prototype.orderBy = null; + + /** + * ListRolloutsRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @instance + */ + ListRolloutsRequest.prototype.pageToken = null; + + /** + * ListRolloutsRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @instance + */ + ListRolloutsRequest.prototype.project = ""; + + /** + * ListRolloutsRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @instance + */ + ListRolloutsRequest.prototype.returnPartialSuccess = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRolloutsRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRolloutsRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRolloutsRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRolloutsRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRolloutsRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListRolloutsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @static + * @param {google.cloud.compute.v1beta.IListRolloutsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRolloutsRequest} ListRolloutsRequest instance + */ + ListRolloutsRequest.create = function create(properties) { + return new ListRolloutsRequest(properties); + }; + + /** + * Encodes the specified ListRolloutsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRolloutsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @static + * @param {google.cloud.compute.v1beta.IListRolloutsRequest} message ListRolloutsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRolloutsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified ListRolloutsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRolloutsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @static + * @param {google.cloud.compute.v1beta.IListRolloutsRequest} message ListRolloutsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRolloutsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListRolloutsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ListRolloutsRequest} ListRolloutsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRolloutsRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRolloutsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListRolloutsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ListRolloutsRequest} ListRolloutsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRolloutsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListRolloutsRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListRolloutsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + return null; + }; + + /** + * Creates a ListRolloutsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ListRolloutsRequest} ListRolloutsRequest + */ + ListRolloutsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRolloutsRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.ListRolloutsRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + return message; + }; + + /** + * Creates a plain object from a ListRolloutsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @static + * @param {google.cloud.compute.v1beta.ListRolloutsRequest} message ListRolloutsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListRolloutsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.project = ""; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this ListRolloutsRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @instance + * @returns {Object.} JSON object + */ + ListRolloutsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListRolloutsRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ListRolloutsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListRolloutsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRolloutsRequest"; + }; + + return ListRolloutsRequest; + })(); + + v1beta.ListRoutePoliciesRoutersRequest = (function() { + + /** + * Properties of a ListRoutePoliciesRoutersRequest. + * @memberof google.cloud.compute.v1beta + * @interface IListRoutePoliciesRoutersRequest + * @property {string|null} [filter] ListRoutePoliciesRoutersRequest filter + * @property {number|null} [maxResults] ListRoutePoliciesRoutersRequest maxResults + * @property {string|null} [orderBy] ListRoutePoliciesRoutersRequest orderBy + * @property {string|null} [pageToken] ListRoutePoliciesRoutersRequest pageToken + * @property {string|null} [project] ListRoutePoliciesRoutersRequest project + * @property {string|null} [region] ListRoutePoliciesRoutersRequest region + * @property {boolean|null} [returnPartialSuccess] ListRoutePoliciesRoutersRequest returnPartialSuccess + * @property {string|null} [router] ListRoutePoliciesRoutersRequest router + */ + + /** + * Constructs a new ListRoutePoliciesRoutersRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ListRoutePoliciesRoutersRequest. + * @implements IListRoutePoliciesRoutersRequest + * @constructor + * @param {google.cloud.compute.v1beta.IListRoutePoliciesRoutersRequest=} [properties] Properties to set + */ + function ListRoutePoliciesRoutersRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListRoutePoliciesRoutersRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @instance + */ + ListRoutePoliciesRoutersRequest.prototype.filter = null; + + /** + * ListRoutePoliciesRoutersRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @instance + */ + ListRoutePoliciesRoutersRequest.prototype.maxResults = null; + + /** + * ListRoutePoliciesRoutersRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @instance + */ + ListRoutePoliciesRoutersRequest.prototype.orderBy = null; + + /** + * ListRoutePoliciesRoutersRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @instance + */ + ListRoutePoliciesRoutersRequest.prototype.pageToken = null; + + /** + * ListRoutePoliciesRoutersRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @instance + */ + ListRoutePoliciesRoutersRequest.prototype.project = ""; + + /** + * ListRoutePoliciesRoutersRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @instance + */ + ListRoutePoliciesRoutersRequest.prototype.region = ""; + + /** + * ListRoutePoliciesRoutersRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @instance + */ + ListRoutePoliciesRoutersRequest.prototype.returnPartialSuccess = null; + + /** + * ListRoutePoliciesRoutersRequest router. + * @member {string} router + * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @instance + */ + ListRoutePoliciesRoutersRequest.prototype.router = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListRoutePoliciesRoutersRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @static + * @param {google.cloud.compute.v1beta.IListRoutePoliciesRoutersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest} ListRoutePoliciesRoutersRequest instance + */ + ListRoutePoliciesRoutersRequest.create = function create(properties) { + return new ListRoutePoliciesRoutersRequest(properties); + }; + + /** + * Encodes the specified ListRoutePoliciesRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @static + * @param {google.cloud.compute.v1beta.IListRoutePoliciesRoutersRequest} message ListRoutePoliciesRoutersRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRoutePoliciesRoutersRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.router != null && Object.hasOwnProperty.call(message, "router")) + writer.uint32(/* id 148608841, wireType 2 =*/1188870730).string(message.router); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified ListRoutePoliciesRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @static + * @param {google.cloud.compute.v1beta.IListRoutePoliciesRoutersRequest} message ListRoutePoliciesRoutersRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRoutePoliciesRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListRoutePoliciesRoutersRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest} ListRoutePoliciesRoutersRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRoutePoliciesRoutersRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + case 148608841: { + message.router = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListRoutePoliciesRoutersRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest} ListRoutePoliciesRoutersRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRoutePoliciesRoutersRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListRoutePoliciesRoutersRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.ListRoutePoliciesRoutersRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListRoutePoliciesRoutersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1019973,6 +1032011,854 @@ return ListServiceAttachmentsRequest; })(); + v1beta.ListSnapshotGroups = (function() { + + /** + * Properties of a ListSnapshotGroups. + * @memberof google.cloud.compute.v1beta + * @interface IListSnapshotGroups + * @property {string|null} [etag] ListSnapshotGroups etag + * @property {string|null} [id] ListSnapshotGroups id + * @property {Array.|null} [items] ListSnapshotGroups items + * @property {string|null} [kind] ListSnapshotGroups kind + * @property {string|null} [nextPageToken] ListSnapshotGroups nextPageToken + * @property {string|null} [selfLink] ListSnapshotGroups selfLink + * @property {Array.|null} [unreachables] ListSnapshotGroups unreachables + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] ListSnapshotGroups warning + */ + + /** + * Constructs a new ListSnapshotGroups. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ListSnapshotGroups. + * @implements IListSnapshotGroups + * @constructor + * @param {google.cloud.compute.v1beta.IListSnapshotGroups=} [properties] Properties to set + */ + function ListSnapshotGroups(properties) { + this.items = []; + this.unreachables = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListSnapshotGroups etag. + * @member {string|null|undefined} etag + * @memberof google.cloud.compute.v1beta.ListSnapshotGroups + * @instance + */ + ListSnapshotGroups.prototype.etag = null; + + /** + * ListSnapshotGroups id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1beta.ListSnapshotGroups + * @instance + */ + ListSnapshotGroups.prototype.id = null; + + /** + * ListSnapshotGroups items. + * @member {Array.} items + * @memberof google.cloud.compute.v1beta.ListSnapshotGroups + * @instance + */ + ListSnapshotGroups.prototype.items = $util.emptyArray; + + /** + * ListSnapshotGroups kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.ListSnapshotGroups + * @instance + */ + ListSnapshotGroups.prototype.kind = null; + + /** + * ListSnapshotGroups nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1beta.ListSnapshotGroups + * @instance + */ + ListSnapshotGroups.prototype.nextPageToken = null; + + /** + * ListSnapshotGroups selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.ListSnapshotGroups + * @instance + */ + ListSnapshotGroups.prototype.selfLink = null; + + /** + * ListSnapshotGroups unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1beta.ListSnapshotGroups + * @instance + */ + ListSnapshotGroups.prototype.unreachables = $util.emptyArray; + + /** + * ListSnapshotGroups warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.ListSnapshotGroups + * @instance + */ + ListSnapshotGroups.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListSnapshotGroups.prototype, "_etag", { + get: $util.oneOfGetter($oneOfFields = ["etag"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListSnapshotGroups.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListSnapshotGroups.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListSnapshotGroups.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListSnapshotGroups.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListSnapshotGroups.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListSnapshotGroups instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ListSnapshotGroups + * @static + * @param {google.cloud.compute.v1beta.IListSnapshotGroups=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListSnapshotGroups} ListSnapshotGroups instance + */ + ListSnapshotGroups.create = function create(properties) { + return new ListSnapshotGroups(properties); + }; + + /** + * Encodes the specified ListSnapshotGroups message. Does not implicitly {@link google.cloud.compute.v1beta.ListSnapshotGroups.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ListSnapshotGroups + * @static + * @param {google.cloud.compute.v1beta.IListSnapshotGroups} message ListSnapshotGroups message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSnapshotGroups.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3123477, wireType 2 =*/24987818).string(message.etag); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1beta.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); + if (message.items != null && message.items.length) + for (var i = 0; i < message.items.length; ++i) + $root.google.cloud.compute.v1beta.SnapshotGroup.encode(message.items[i], writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork()).ldelim(); + if (message.unreachables != null && message.unreachables.length) + for (var i = 0; i < message.unreachables.length; ++i) + writer.uint32(/* id 243372063, wireType 2 =*/1946976506).string(message.unreachables[i]); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified ListSnapshotGroups message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListSnapshotGroups.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ListSnapshotGroups + * @static + * @param {google.cloud.compute.v1beta.IListSnapshotGroups} message ListSnapshotGroups message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSnapshotGroups.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListSnapshotGroups message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ListSnapshotGroups + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ListSnapshotGroups} ListSnapshotGroups + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSnapshotGroups.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListSnapshotGroups(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3123477: { + message.etag = reader.string(); + break; + } + case 3355: { + message.id = reader.string(); + break; + } + case 100526016: { + if (!(message.items && message.items.length)) + message.items = []; + message.items.push($root.google.cloud.compute.v1beta.SnapshotGroup.decode(reader, reader.uint32())); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 79797525: { + message.nextPageToken = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 243372063: { + if (!(message.unreachables && message.unreachables.length)) + message.unreachables = []; + message.unreachables.push(reader.string()); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListSnapshotGroups message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ListSnapshotGroups + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ListSnapshotGroups} ListSnapshotGroups + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSnapshotGroups.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListSnapshotGroups message. + * @function verify + * @memberof google.cloud.compute.v1beta.ListSnapshotGroups + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListSnapshotGroups.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.etag != null && message.hasOwnProperty("etag")) { + properties._etag = 1; + if (!$util.isString(message.etag)) + return "etag: string expected"; + } + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!Array.isArray(message.items)) + return "items: array expected"; + for (var i = 0; i < message.items.length; ++i) { + var error = $root.google.cloud.compute.v1beta.SnapshotGroup.verify(message.items[i]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.unreachables != null && message.hasOwnProperty("unreachables")) { + if (!Array.isArray(message.unreachables)) + return "unreachables: array expected"; + for (var i = 0; i < message.unreachables.length; ++i) + if (!$util.isString(message.unreachables[i])) + return "unreachables: string[] expected"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a ListSnapshotGroups message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ListSnapshotGroups + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ListSnapshotGroups} ListSnapshotGroups + */ + ListSnapshotGroups.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListSnapshotGroups) + return object; + var message = new $root.google.cloud.compute.v1beta.ListSnapshotGroups(); + if (object.etag != null) + message.etag = String(object.etag); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (!Array.isArray(object.items)) + throw TypeError(".google.cloud.compute.v1beta.ListSnapshotGroups.items: array expected"); + message.items = []; + for (var i = 0; i < object.items.length; ++i) { + if (typeof object.items[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.ListSnapshotGroups.items: object expected"); + message.items[i] = $root.google.cloud.compute.v1beta.SnapshotGroup.fromObject(object.items[i]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.unreachables) { + if (!Array.isArray(object.unreachables)) + throw TypeError(".google.cloud.compute.v1beta.ListSnapshotGroups.unreachables: array expected"); + message.unreachables = []; + for (var i = 0; i < object.unreachables.length; ++i) + message.unreachables[i] = String(object.unreachables[i]); + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1beta.ListSnapshotGroups.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a ListSnapshotGroups message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ListSnapshotGroups + * @static + * @param {google.cloud.compute.v1beta.ListSnapshotGroups} message ListSnapshotGroups + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListSnapshotGroups.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.items = []; + object.unreachables = []; + } + if (message.id != null && message.hasOwnProperty("id")) { + object.id = message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.etag != null && message.hasOwnProperty("etag")) { + object.etag = message.etag; + if (options.oneofs) + object._etag = "etag"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + if (message.items && message.items.length) { + object.items = []; + for (var j = 0; j < message.items.length; ++j) + object.items[j] = $root.google.cloud.compute.v1beta.SnapshotGroup.toObject(message.items[j], options); + } + if (message.unreachables && message.unreachables.length) { + object.unreachables = []; + for (var j = 0; j < message.unreachables.length; ++j) + object.unreachables[j] = message.unreachables[j]; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this ListSnapshotGroups to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ListSnapshotGroups + * @instance + * @returns {Object.} JSON object + */ + ListSnapshotGroups.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListSnapshotGroups + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ListSnapshotGroups + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListSnapshotGroups.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListSnapshotGroups"; + }; + + return ListSnapshotGroups; + })(); + + v1beta.ListSnapshotGroupsRequest = (function() { + + /** + * Properties of a ListSnapshotGroupsRequest. + * @memberof google.cloud.compute.v1beta + * @interface IListSnapshotGroupsRequest + * @property {string|null} [filter] ListSnapshotGroupsRequest filter + * @property {number|null} [maxResults] ListSnapshotGroupsRequest maxResults + * @property {string|null} [orderBy] ListSnapshotGroupsRequest orderBy + * @property {string|null} [pageToken] ListSnapshotGroupsRequest pageToken + * @property {string|null} [project] ListSnapshotGroupsRequest project + * @property {boolean|null} [returnPartialSuccess] ListSnapshotGroupsRequest returnPartialSuccess + */ + + /** + * Constructs a new ListSnapshotGroupsRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ListSnapshotGroupsRequest. + * @implements IListSnapshotGroupsRequest + * @constructor + * @param {google.cloud.compute.v1beta.IListSnapshotGroupsRequest=} [properties] Properties to set + */ + function ListSnapshotGroupsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListSnapshotGroupsRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1beta.ListSnapshotGroupsRequest + * @instance + */ + ListSnapshotGroupsRequest.prototype.filter = null; + + /** + * ListSnapshotGroupsRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1beta.ListSnapshotGroupsRequest + * @instance + */ + ListSnapshotGroupsRequest.prototype.maxResults = null; + + /** + * ListSnapshotGroupsRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1beta.ListSnapshotGroupsRequest + * @instance + */ + ListSnapshotGroupsRequest.prototype.orderBy = null; + + /** + * ListSnapshotGroupsRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1beta.ListSnapshotGroupsRequest + * @instance + */ + ListSnapshotGroupsRequest.prototype.pageToken = null; + + /** + * ListSnapshotGroupsRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.ListSnapshotGroupsRequest + * @instance + */ + ListSnapshotGroupsRequest.prototype.project = ""; + + /** + * ListSnapshotGroupsRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1beta.ListSnapshotGroupsRequest + * @instance + */ + ListSnapshotGroupsRequest.prototype.returnPartialSuccess = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListSnapshotGroupsRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListSnapshotGroupsRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListSnapshotGroupsRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListSnapshotGroupsRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListSnapshotGroupsRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListSnapshotGroupsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ListSnapshotGroupsRequest + * @static + * @param {google.cloud.compute.v1beta.IListSnapshotGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListSnapshotGroupsRequest} ListSnapshotGroupsRequest instance + */ + ListSnapshotGroupsRequest.create = function create(properties) { + return new ListSnapshotGroupsRequest(properties); + }; + + /** + * Encodes the specified ListSnapshotGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListSnapshotGroupsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ListSnapshotGroupsRequest + * @static + * @param {google.cloud.compute.v1beta.IListSnapshotGroupsRequest} message ListSnapshotGroupsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSnapshotGroupsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified ListSnapshotGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListSnapshotGroupsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ListSnapshotGroupsRequest + * @static + * @param {google.cloud.compute.v1beta.IListSnapshotGroupsRequest} message ListSnapshotGroupsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSnapshotGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListSnapshotGroupsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ListSnapshotGroupsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ListSnapshotGroupsRequest} ListSnapshotGroupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSnapshotGroupsRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListSnapshotGroupsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListSnapshotGroupsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ListSnapshotGroupsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ListSnapshotGroupsRequest} ListSnapshotGroupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSnapshotGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListSnapshotGroupsRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.ListSnapshotGroupsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListSnapshotGroupsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + return null; + }; + + /** + * Creates a ListSnapshotGroupsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ListSnapshotGroupsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ListSnapshotGroupsRequest} ListSnapshotGroupsRequest + */ + ListSnapshotGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListSnapshotGroupsRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.ListSnapshotGroupsRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + return message; + }; + + /** + * Creates a plain object from a ListSnapshotGroupsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ListSnapshotGroupsRequest + * @static + * @param {google.cloud.compute.v1beta.ListSnapshotGroupsRequest} message ListSnapshotGroupsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListSnapshotGroupsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.project = ""; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this ListSnapshotGroupsRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ListSnapshotGroupsRequest + * @instance + * @returns {Object.} JSON object + */ + ListSnapshotGroupsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListSnapshotGroupsRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ListSnapshotGroupsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListSnapshotGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListSnapshotGroupsRequest"; + }; + + return ListSnapshotGroupsRequest; + })(); + v1beta.ListSnapshotsRequest = (function() { /** @@ -1031037,6 +1043923,7 @@ * @interface ILocationPolicy * @property {Object.|null} [locations] LocationPolicy locations * @property {string|null} [targetShape] LocationPolicy targetShape + * @property {Array.|null} [zones] LocationPolicy zones */ /** @@ -1031049,6 +1043936,7 @@ */ function LocationPolicy(properties) { this.locations = {}; + this.zones = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1031071,6 +1043959,14 @@ */ LocationPolicy.prototype.targetShape = null; + /** + * LocationPolicy zones. + * @member {Array.} zones + * @memberof google.cloud.compute.v1beta.LocationPolicy + * @instance + */ + LocationPolicy.prototype.zones = $util.emptyArray; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -1031104,6 +1044000,9 @@ LocationPolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.zones != null && message.zones.length) + for (var i = 0; i < message.zones.length; ++i) + $root.google.cloud.compute.v1beta.LocationPolicyZoneConfiguration.encode(message.zones[i], writer.uint32(/* id 116085319, wireType 2 =*/928682554).fork()).ldelim(); if (message.targetShape != null && Object.hasOwnProperty.call(message, "targetShape")) writer.uint32(/* id 338621299, wireType 2 =*/2708970394).string(message.targetShape); if (message.locations != null && Object.hasOwnProperty.call(message, "locations")) @@ -1031174,6 +1044073,12 @@ message.targetShape = reader.string(); break; } + case 116085319: { + if (!(message.zones && message.zones.length)) + message.zones = []; + message.zones.push($root.google.cloud.compute.v1beta.LocationPolicyZoneConfiguration.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -1031225,6 +1044130,15 @@ if (!$util.isString(message.targetShape)) return "targetShape: string expected"; } + if (message.zones != null && message.hasOwnProperty("zones")) { + if (!Array.isArray(message.zones)) + return "zones: array expected"; + for (var i = 0; i < message.zones.length; ++i) { + var error = $root.google.cloud.compute.v1beta.LocationPolicyZoneConfiguration.verify(message.zones[i]); + if (error) + return "zones." + error; + } + } return null; }; @@ -1031252,6 +1044166,16 @@ } if (object.targetShape != null) message.targetShape = String(object.targetShape); + if (object.zones) { + if (!Array.isArray(object.zones)) + throw TypeError(".google.cloud.compute.v1beta.LocationPolicy.zones: array expected"); + message.zones = []; + for (var i = 0; i < object.zones.length; ++i) { + if (typeof object.zones[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.LocationPolicy.zones: object expected"); + message.zones[i] = $root.google.cloud.compute.v1beta.LocationPolicyZoneConfiguration.fromObject(object.zones[i]); + } + } return message; }; @@ -1031268,8 +1044192,15 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.zones = []; if (options.objects || options.defaults) object.locations = {}; + if (message.zones && message.zones.length) { + object.zones = []; + for (var j = 0; j < message.zones.length; ++j) + object.zones[j] = $root.google.cloud.compute.v1beta.LocationPolicyZoneConfiguration.toObject(message.zones[j], options); + } if (message.targetShape != null && message.hasOwnProperty("targetShape")) { object.targetShape = message.targetShape; if (options.oneofs) @@ -1031824,6 +1044755,224 @@ return LocationPolicyLocationConstraints; })(); + v1beta.LocationPolicyZoneConfiguration = (function() { + + /** + * Properties of a LocationPolicyZoneConfiguration. + * @memberof google.cloud.compute.v1beta + * @interface ILocationPolicyZoneConfiguration + * @property {string|null} [zone] LocationPolicyZoneConfiguration zone + */ + + /** + * Constructs a new LocationPolicyZoneConfiguration. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a LocationPolicyZoneConfiguration. + * @implements ILocationPolicyZoneConfiguration + * @constructor + * @param {google.cloud.compute.v1beta.ILocationPolicyZoneConfiguration=} [properties] Properties to set + */ + function LocationPolicyZoneConfiguration(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LocationPolicyZoneConfiguration zone. + * @member {string|null|undefined} zone + * @memberof google.cloud.compute.v1beta.LocationPolicyZoneConfiguration + * @instance + */ + LocationPolicyZoneConfiguration.prototype.zone = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(LocationPolicyZoneConfiguration.prototype, "_zone", { + get: $util.oneOfGetter($oneOfFields = ["zone"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new LocationPolicyZoneConfiguration instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.LocationPolicyZoneConfiguration + * @static + * @param {google.cloud.compute.v1beta.ILocationPolicyZoneConfiguration=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.LocationPolicyZoneConfiguration} LocationPolicyZoneConfiguration instance + */ + LocationPolicyZoneConfiguration.create = function create(properties) { + return new LocationPolicyZoneConfiguration(properties); + }; + + /** + * Encodes the specified LocationPolicyZoneConfiguration message. Does not implicitly {@link google.cloud.compute.v1beta.LocationPolicyZoneConfiguration.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.LocationPolicyZoneConfiguration + * @static + * @param {google.cloud.compute.v1beta.ILocationPolicyZoneConfiguration} message LocationPolicyZoneConfiguration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LocationPolicyZoneConfiguration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + return writer; + }; + + /** + * Encodes the specified LocationPolicyZoneConfiguration message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.LocationPolicyZoneConfiguration.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.LocationPolicyZoneConfiguration + * @static + * @param {google.cloud.compute.v1beta.ILocationPolicyZoneConfiguration} message LocationPolicyZoneConfiguration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LocationPolicyZoneConfiguration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LocationPolicyZoneConfiguration message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.LocationPolicyZoneConfiguration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.LocationPolicyZoneConfiguration} LocationPolicyZoneConfiguration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LocationPolicyZoneConfiguration.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.LocationPolicyZoneConfiguration(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LocationPolicyZoneConfiguration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.LocationPolicyZoneConfiguration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.LocationPolicyZoneConfiguration} LocationPolicyZoneConfiguration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LocationPolicyZoneConfiguration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LocationPolicyZoneConfiguration message. + * @function verify + * @memberof google.cloud.compute.v1beta.LocationPolicyZoneConfiguration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LocationPolicyZoneConfiguration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.zone != null && message.hasOwnProperty("zone")) { + properties._zone = 1; + if (!$util.isString(message.zone)) + return "zone: string expected"; + } + return null; + }; + + /** + * Creates a LocationPolicyZoneConfiguration message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.LocationPolicyZoneConfiguration + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.LocationPolicyZoneConfiguration} LocationPolicyZoneConfiguration + */ + LocationPolicyZoneConfiguration.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.LocationPolicyZoneConfiguration) + return object; + var message = new $root.google.cloud.compute.v1beta.LocationPolicyZoneConfiguration(); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a LocationPolicyZoneConfiguration message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.LocationPolicyZoneConfiguration + * @static + * @param {google.cloud.compute.v1beta.LocationPolicyZoneConfiguration} message LocationPolicyZoneConfiguration + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LocationPolicyZoneConfiguration.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.zone != null && message.hasOwnProperty("zone")) { + object.zone = message.zone; + if (options.oneofs) + object._zone = "zone"; + } + return object; + }; + + /** + * Converts this LocationPolicyZoneConfiguration to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.LocationPolicyZoneConfiguration + * @instance + * @returns {Object.} JSON object + */ + LocationPolicyZoneConfiguration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LocationPolicyZoneConfiguration + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.LocationPolicyZoneConfiguration + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LocationPolicyZoneConfiguration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.LocationPolicyZoneConfiguration"; + }; + + return LocationPolicyZoneConfiguration; + })(); + v1beta.MachineImage = (function() { /** @@ -1031840,6 +1044989,7 @@ * @property {Object.|null} [labels] MachineImage labels * @property {google.cloud.compute.v1beta.ICustomerEncryptionKey|null} [machineImageEncryptionKey] MachineImage machineImageEncryptionKey * @property {string|null} [name] MachineImage name + * @property {google.cloud.compute.v1beta.IMachineImageParams|null} [params] MachineImage params * @property {boolean|null} [satisfiesPzi] MachineImage satisfiesPzi * @property {boolean|null} [satisfiesPzs] MachineImage satisfiesPzs * @property {Array.|null} [savedDisks] MachineImage savedDisks @@ -1031951,6 +1045101,14 @@ */ MachineImage.prototype.name = null; + /** + * MachineImage params. + * @member {google.cloud.compute.v1beta.IMachineImageParams|null|undefined} params + * @memberof google.cloud.compute.v1beta.MachineImage + * @instance + */ + MachineImage.prototype.params = null; + /** * MachineImage satisfiesPzi. * @member {boolean|null|undefined} satisfiesPzi @@ -1032088,6 +1045246,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(MachineImage.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(MachineImage.prototype, "_satisfiesPzi", { get: $util.oneOfGetter($oneOfFields = ["satisfiesPzi"]), @@ -1032162,6 +1045326,8 @@ writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1beta.MachineImageParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.totalStorageBytes != null && Object.hasOwnProperty.call(message, "totalStorageBytes")) writer.uint32(/* id 81855468, wireType 0 =*/654843744).int64(message.totalStorageBytes); if (message.labelFingerprint != null && Object.hasOwnProperty.call(message, "labelFingerprint")) @@ -1032293,6 +1045459,10 @@ message.name = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1beta.MachineImageParams.decode(reader, reader.uint32()); + break; + } case 480964257: { message.satisfiesPzi = reader.bool(); break; @@ -1032434,6 +1045604,14 @@ if (!$util.isString(message.name)) return "name: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1beta.MachineImageParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) { properties._satisfiesPzi = 1; if (typeof message.satisfiesPzi !== "boolean") @@ -1032550,6 +1045728,11 @@ } if (object.name != null) message.name = String(object.name); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1beta.MachineImage.params: object expected"); + message.params = $root.google.cloud.compute.v1beta.MachineImageParams.fromObject(object.params); + } if (object.satisfiesPzi != null) message.satisfiesPzi = Boolean(object.satisfiesPzi); if (object.satisfiesPzs != null) @@ -1032647,6 +1045830,11 @@ if (options.oneofs) object._creationTimestamp = "creationTimestamp"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1beta.MachineImageParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } if (message.totalStorageBytes != null && message.hasOwnProperty("totalStorageBytes")) { if (typeof message.totalStorageBytes === "number") object.totalStorageBytes = options.longs === String ? String(message.totalStorageBytes) : message.totalStorageBytes; @@ -1033186,6 +1046374,246 @@ return MachineImageList; })(); + v1beta.MachineImageParams = (function() { + + /** + * Properties of a MachineImageParams. + * @memberof google.cloud.compute.v1beta + * @interface IMachineImageParams + * @property {Object.|null} [resourceManagerTags] MachineImageParams resourceManagerTags + */ + + /** + * Constructs a new MachineImageParams. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a MachineImageParams. + * @implements IMachineImageParams + * @constructor + * @param {google.cloud.compute.v1beta.IMachineImageParams=} [properties] Properties to set + */ + function MachineImageParams(properties) { + this.resourceManagerTags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MachineImageParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1beta.MachineImageParams + * @instance + */ + MachineImageParams.prototype.resourceManagerTags = $util.emptyObject; + + /** + * Creates a new MachineImageParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.MachineImageParams + * @static + * @param {google.cloud.compute.v1beta.IMachineImageParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.MachineImageParams} MachineImageParams instance + */ + MachineImageParams.create = function create(properties) { + return new MachineImageParams(properties); + }; + + /** + * Encodes the specified MachineImageParams message. Does not implicitly {@link google.cloud.compute.v1beta.MachineImageParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.MachineImageParams + * @static + * @param {google.cloud.compute.v1beta.IMachineImageParams} message MachineImageParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MachineImageParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + for (var keys = Object.keys(message.resourceManagerTags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 377671164, wireType 2 =*/3021369314).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceManagerTags[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified MachineImageParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.MachineImageParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.MachineImageParams + * @static + * @param {google.cloud.compute.v1beta.IMachineImageParams} message MachineImageParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MachineImageParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MachineImageParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.MachineImageParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.MachineImageParams} MachineImageParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MachineImageParams.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.MachineImageParams(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 377671164: { + if (message.resourceManagerTags === $util.emptyObject) + message.resourceManagerTags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.resourceManagerTags[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MachineImageParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.MachineImageParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.MachineImageParams} MachineImageParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MachineImageParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MachineImageParams message. + * @function verify + * @memberof google.cloud.compute.v1beta.MachineImageParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MachineImageParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + if (!$util.isObject(message.resourceManagerTags)) + return "resourceManagerTags: object expected"; + var key = Object.keys(message.resourceManagerTags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourceManagerTags[key[i]])) + return "resourceManagerTags: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a MachineImageParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.MachineImageParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.MachineImageParams} MachineImageParams + */ + MachineImageParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.MachineImageParams) + return object; + var message = new $root.google.cloud.compute.v1beta.MachineImageParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1beta.MachineImageParams.resourceManagerTags: object expected"); + message.resourceManagerTags = {}; + for (var keys = Object.keys(object.resourceManagerTags), i = 0; i < keys.length; ++i) + message.resourceManagerTags[keys[i]] = String(object.resourceManagerTags[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a MachineImageParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.MachineImageParams + * @static + * @param {google.cloud.compute.v1beta.MachineImageParams} message MachineImageParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MachineImageParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.resourceManagerTags = {}; + var keys2; + if (message.resourceManagerTags && (keys2 = Object.keys(message.resourceManagerTags)).length) { + object.resourceManagerTags = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourceManagerTags[keys2[j]] = message.resourceManagerTags[keys2[j]]; + } + return object; + }; + + /** + * Converts this MachineImageParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.MachineImageParams + * @instance + * @returns {Object.} JSON object + */ + MachineImageParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MachineImageParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.MachineImageParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MachineImageParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.MachineImageParams"; + }; + + return MachineImageParams; + })(); + v1beta.MachineType = (function() { /** @@ -1043538,6 +1056966,384 @@ return NamedPort; })(); + v1beta.NamedSet = (function() { + + /** + * Properties of a NamedSet. + * @memberof google.cloud.compute.v1beta + * @interface INamedSet + * @property {string|null} [description] NamedSet description + * @property {Array.|null} [elements] NamedSet elements + * @property {string|null} [fingerprint] NamedSet fingerprint + * @property {string|null} [name] NamedSet name + * @property {string|null} [type] NamedSet type + */ + + /** + * Constructs a new NamedSet. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a NamedSet. + * @implements INamedSet + * @constructor + * @param {google.cloud.compute.v1beta.INamedSet=} [properties] Properties to set + */ + function NamedSet(properties) { + this.elements = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedSet description. + * @member {string|null|undefined} description + * @memberof google.cloud.compute.v1beta.NamedSet + * @instance + */ + NamedSet.prototype.description = null; + + /** + * NamedSet elements. + * @member {Array.} elements + * @memberof google.cloud.compute.v1beta.NamedSet + * @instance + */ + NamedSet.prototype.elements = $util.emptyArray; + + /** + * NamedSet fingerprint. + * @member {string|null|undefined} fingerprint + * @memberof google.cloud.compute.v1beta.NamedSet + * @instance + */ + NamedSet.prototype.fingerprint = null; + + /** + * NamedSet name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1beta.NamedSet + * @instance + */ + NamedSet.prototype.name = null; + + /** + * NamedSet type. + * @member {string|null|undefined} type + * @memberof google.cloud.compute.v1beta.NamedSet + * @instance + */ + NamedSet.prototype.type = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NamedSet.prototype, "_description", { + get: $util.oneOfGetter($oneOfFields = ["description"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NamedSet.prototype, "_fingerprint", { + get: $util.oneOfGetter($oneOfFields = ["fingerprint"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NamedSet.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NamedSet.prototype, "_type", { + get: $util.oneOfGetter($oneOfFields = ["type"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NamedSet instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.NamedSet + * @static + * @param {google.cloud.compute.v1beta.INamedSet=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.NamedSet} NamedSet instance + */ + NamedSet.create = function create(properties) { + return new NamedSet(properties); + }; + + /** + * Encodes the specified NamedSet message. Does not implicitly {@link google.cloud.compute.v1beta.NamedSet.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.NamedSet + * @static + * @param {google.cloud.compute.v1beta.INamedSet} message NamedSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3575610, wireType 2 =*/28604882).string(message.type); + if (message.fingerprint != null && Object.hasOwnProperty.call(message, "fingerprint")) + writer.uint32(/* id 234678500, wireType 2 =*/1877428002).string(message.fingerprint); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + if (message.elements != null && message.elements.length) + for (var i = 0; i < message.elements.length; ++i) + $root.google.cloud.compute.v1beta.Expr.encode(message.elements[i], writer.uint32(/* id 528531703, wireType 2 =*/4228253626).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NamedSet message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.NamedSet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.NamedSet + * @static + * @param {google.cloud.compute.v1beta.INamedSet} message NamedSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedSet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NamedSet message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.NamedSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.NamedSet} NamedSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedSet.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.NamedSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 422937596: { + message.description = reader.string(); + break; + } + case 528531703: { + if (!(message.elements && message.elements.length)) + message.elements = []; + message.elements.push($root.google.cloud.compute.v1beta.Expr.decode(reader, reader.uint32())); + break; + } + case 234678500: { + message.fingerprint = reader.string(); + break; + } + case 3373707: { + message.name = reader.string(); + break; + } + case 3575610: { + message.type = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NamedSet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.NamedSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.NamedSet} NamedSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedSet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NamedSet message. + * @function verify + * @memberof google.cloud.compute.v1beta.NamedSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.description != null && message.hasOwnProperty("description")) { + properties._description = 1; + if (!$util.isString(message.description)) + return "description: string expected"; + } + if (message.elements != null && message.hasOwnProperty("elements")) { + if (!Array.isArray(message.elements)) + return "elements: array expected"; + for (var i = 0; i < message.elements.length; ++i) { + var error = $root.google.cloud.compute.v1beta.Expr.verify(message.elements[i]); + if (error) + return "elements." + error; + } + } + if (message.fingerprint != null && message.hasOwnProperty("fingerprint")) { + properties._fingerprint = 1; + if (!$util.isString(message.fingerprint)) + return "fingerprint: string expected"; + } + if (message.name != null && message.hasOwnProperty("name")) { + properties._name = 1; + if (!$util.isString(message.name)) + return "name: string expected"; + } + if (message.type != null && message.hasOwnProperty("type")) { + properties._type = 1; + if (!$util.isString(message.type)) + return "type: string expected"; + } + return null; + }; + + /** + * Creates a NamedSet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.NamedSet + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.NamedSet} NamedSet + */ + NamedSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.NamedSet) + return object; + var message = new $root.google.cloud.compute.v1beta.NamedSet(); + if (object.description != null) + message.description = String(object.description); + if (object.elements) { + if (!Array.isArray(object.elements)) + throw TypeError(".google.cloud.compute.v1beta.NamedSet.elements: array expected"); + message.elements = []; + for (var i = 0; i < object.elements.length; ++i) { + if (typeof object.elements[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.NamedSet.elements: object expected"); + message.elements[i] = $root.google.cloud.compute.v1beta.Expr.fromObject(object.elements[i]); + } + } + if (object.fingerprint != null) + message.fingerprint = String(object.fingerprint); + if (object.name != null) + message.name = String(object.name); + if (object.type != null) + message.type = String(object.type); + return message; + }; + + /** + * Creates a plain object from a NamedSet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.NamedSet + * @static + * @param {google.cloud.compute.v1beta.NamedSet} message NamedSet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NamedSet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.elements = []; + if (message.name != null && message.hasOwnProperty("name")) { + object.name = message.name; + if (options.oneofs) + object._name = "name"; + } + if (message.type != null && message.hasOwnProperty("type")) { + object.type = message.type; + if (options.oneofs) + object._type = "type"; + } + if (message.fingerprint != null && message.hasOwnProperty("fingerprint")) { + object.fingerprint = message.fingerprint; + if (options.oneofs) + object._fingerprint = "fingerprint"; + } + if (message.description != null && message.hasOwnProperty("description")) { + object.description = message.description; + if (options.oneofs) + object._description = "description"; + } + if (message.elements && message.elements.length) { + object.elements = []; + for (var j = 0; j < message.elements.length; ++j) + object.elements[j] = $root.google.cloud.compute.v1beta.Expr.toObject(message.elements[j], options); + } + return object; + }; + + /** + * Converts this NamedSet to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.NamedSet + * @instance + * @returns {Object.} JSON object + */ + NamedSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NamedSet + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.NamedSet + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NamedSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.NamedSet"; + }; + + /** + * Type enum. + * @name google.cloud.compute.v1beta.NamedSet.Type + * @enum {number} + * @property {number} UNDEFINED_TYPE=0 UNDEFINED_TYPE value + * @property {number} NAMED_SET_TYPE_COMMUNITY=263444871 NAMED_SET_TYPE_COMMUNITY value + * @property {number} NAMED_SET_TYPE_PREFIX=228038036 NAMED_SET_TYPE_PREFIX value + */ + NamedSet.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_TYPE"] = 0; + values[valuesById[263444871] = "NAMED_SET_TYPE_COMMUNITY"] = 263444871; + values[valuesById[228038036] = "NAMED_SET_TYPE_PREFIX"] = 228038036; + return values; + })(); + + return NamedSet; + })(); + v1beta.NatIpInfo = (function() { /** @@ -1055230,6 +1069036,7 @@ * @interface INetworkInterface * @property {Array.|null} [accessConfigs] NetworkInterface accessConfigs * @property {Array.|null} [aliasIpRanges] NetworkInterface aliasIpRanges + * @property {boolean|null} [enableVpcScopedDns] NetworkInterface enableVpcScopedDns * @property {string|null} [fingerprint] NetworkInterface fingerprint * @property {string|null} [igmpQuery] NetworkInterface igmpQuery * @property {number|null} [internalIpv6PrefixLength] NetworkInterface internalIpv6PrefixLength @@ -1055284,6 +1069091,14 @@ */ NetworkInterface.prototype.aliasIpRanges = $util.emptyArray; + /** + * NetworkInterface enableVpcScopedDns. + * @member {boolean|null|undefined} enableVpcScopedDns + * @memberof google.cloud.compute.v1beta.NetworkInterface + * @instance + */ + NetworkInterface.prototype.enableVpcScopedDns = null; + /** * NetworkInterface fingerprint. * @member {string|null|undefined} fingerprint @@ -1055431,6 +1069246,12 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + // Virtual OneOf for proto3 optional field + Object.defineProperty(NetworkInterface.prototype, "_enableVpcScopedDns", { + get: $util.oneOfGetter($oneOfFields = ["enableVpcScopedDns"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(NetworkInterface.prototype, "_fingerprint", { get: $util.oneOfGetter($oneOfFields = ["fingerprint"]), @@ -1055583,6 +1069404,8 @@ writer.uint32(/* id 232872494, wireType 2 =*/1862979954).string(message.network); if (message.fingerprint != null && Object.hasOwnProperty.call(message, "fingerprint")) writer.uint32(/* id 234678500, wireType 2 =*/1877428002).string(message.fingerprint); + if (message.enableVpcScopedDns != null && Object.hasOwnProperty.call(message, "enableVpcScopedDns")) + writer.uint32(/* id 283425868, wireType 0 =*/2267406944).bool(message.enableVpcScopedDns); if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) writer.uint32(/* id 307827694, wireType 2 =*/2462621554).string(message.subnetwork); if (message.macAddress != null && Object.hasOwnProperty.call(message, "macAddress")) @@ -1055648,6 +1069471,10 @@ message.aliasIpRanges.push($root.google.cloud.compute.v1beta.AliasIpRange.decode(reader, reader.uint32())); break; } + case 283425868: { + message.enableVpcScopedDns = reader.bool(); + break; + } case 234678500: { message.fingerprint = reader.string(); break; @@ -1055776,6 +1069603,11 @@ return "aliasIpRanges." + error; } } + if (message.enableVpcScopedDns != null && message.hasOwnProperty("enableVpcScopedDns")) { + properties._enableVpcScopedDns = 1; + if (typeof message.enableVpcScopedDns !== "boolean") + return "enableVpcScopedDns: boolean expected"; + } if (message.fingerprint != null && message.hasOwnProperty("fingerprint")) { properties._fingerprint = 1; if (!$util.isString(message.fingerprint)) @@ -1055905,6 +1069737,8 @@ message.aliasIpRanges[i] = $root.google.cloud.compute.v1beta.AliasIpRange.fromObject(object.aliasIpRanges[i]); } } + if (object.enableVpcScopedDns != null) + message.enableVpcScopedDns = Boolean(object.enableVpcScopedDns); if (object.fingerprint != null) message.fingerprint = String(object.fingerprint); if (object.igmpQuery != null) @@ -1056030,6 +1069864,11 @@ if (options.oneofs) object._fingerprint = "fingerprint"; } + if (message.enableVpcScopedDns != null && message.hasOwnProperty("enableVpcScopedDns")) { + object.enableVpcScopedDns = message.enableVpcScopedDns; + if (options.oneofs) + object._enableVpcScopedDns = "enableVpcScopedDns"; + } if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) { object.subnetwork = message.subnetwork; if (options.oneofs) @@ -1065199,13 +1079038,17 @@ * @name google.cloud.compute.v1beta.NetworkProfileNetworkFeatures.FirewallPolicyTypes * @enum {number} * @property {number} UNDEFINED_FIREWALL_POLICY_TYPES=0 UNDEFINED_FIREWALL_POLICY_TYPES value + * @property {number} RDMA_FALCON_POLICY=66315047 RDMA_FALCON_POLICY value * @property {number} RDMA_ROCE_POLICY=148757145 RDMA_ROCE_POLICY value + * @property {number} ULL_POLICY=100494364 ULL_POLICY value * @property {number} VPC_POLICY=74319208 VPC_POLICY value */ NetworkProfileNetworkFeatures.FirewallPolicyTypes = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_FIREWALL_POLICY_TYPES"] = 0; + values[valuesById[66315047] = "RDMA_FALCON_POLICY"] = 66315047; values[valuesById[148757145] = "RDMA_ROCE_POLICY"] = 148757145; + values[valuesById[100494364] = "ULL_POLICY"] = 100494364; values[valuesById[74319208] = "VPC_POLICY"] = 74319208; return values; })(); @@ -1092338,6 +1106181,323 @@ return PatchInterconnectRequest; })(); + v1beta.PatchNamedSetRouterRequest = (function() { + + /** + * Properties of a PatchNamedSetRouterRequest. + * @memberof google.cloud.compute.v1beta + * @interface IPatchNamedSetRouterRequest + * @property {google.cloud.compute.v1beta.INamedSet|null} [namedSetResource] PatchNamedSetRouterRequest namedSetResource + * @property {string|null} [project] PatchNamedSetRouterRequest project + * @property {string|null} [region] PatchNamedSetRouterRequest region + * @property {string|null} [requestId] PatchNamedSetRouterRequest requestId + * @property {string|null} [router] PatchNamedSetRouterRequest router + */ + + /** + * Constructs a new PatchNamedSetRouterRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a PatchNamedSetRouterRequest. + * @implements IPatchNamedSetRouterRequest + * @constructor + * @param {google.cloud.compute.v1beta.IPatchNamedSetRouterRequest=} [properties] Properties to set + */ + function PatchNamedSetRouterRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PatchNamedSetRouterRequest namedSetResource. + * @member {google.cloud.compute.v1beta.INamedSet|null|undefined} namedSetResource + * @memberof google.cloud.compute.v1beta.PatchNamedSetRouterRequest + * @instance + */ + PatchNamedSetRouterRequest.prototype.namedSetResource = null; + + /** + * PatchNamedSetRouterRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.PatchNamedSetRouterRequest + * @instance + */ + PatchNamedSetRouterRequest.prototype.project = ""; + + /** + * PatchNamedSetRouterRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.PatchNamedSetRouterRequest + * @instance + */ + PatchNamedSetRouterRequest.prototype.region = ""; + + /** + * PatchNamedSetRouterRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.PatchNamedSetRouterRequest + * @instance + */ + PatchNamedSetRouterRequest.prototype.requestId = null; + + /** + * PatchNamedSetRouterRequest router. + * @member {string} router + * @memberof google.cloud.compute.v1beta.PatchNamedSetRouterRequest + * @instance + */ + PatchNamedSetRouterRequest.prototype.router = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PatchNamedSetRouterRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PatchNamedSetRouterRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.PatchNamedSetRouterRequest + * @static + * @param {google.cloud.compute.v1beta.IPatchNamedSetRouterRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.PatchNamedSetRouterRequest} PatchNamedSetRouterRequest instance + */ + PatchNamedSetRouterRequest.create = function create(properties) { + return new PatchNamedSetRouterRequest(properties); + }; + + /** + * Encodes the specified PatchNamedSetRouterRequest message. Does not implicitly {@link google.cloud.compute.v1beta.PatchNamedSetRouterRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.PatchNamedSetRouterRequest + * @static + * @param {google.cloud.compute.v1beta.IPatchNamedSetRouterRequest} message PatchNamedSetRouterRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PatchNamedSetRouterRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.router != null && Object.hasOwnProperty.call(message, "router")) + writer.uint32(/* id 148608841, wireType 2 =*/1188870730).string(message.router); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.namedSetResource != null && Object.hasOwnProperty.call(message, "namedSetResource")) + $root.google.cloud.compute.v1beta.NamedSet.encode(message.namedSetResource, writer.uint32(/* id 408608401, wireType 2 =*/3268867210).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PatchNamedSetRouterRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.PatchNamedSetRouterRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.PatchNamedSetRouterRequest + * @static + * @param {google.cloud.compute.v1beta.IPatchNamedSetRouterRequest} message PatchNamedSetRouterRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PatchNamedSetRouterRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PatchNamedSetRouterRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.PatchNamedSetRouterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.PatchNamedSetRouterRequest} PatchNamedSetRouterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PatchNamedSetRouterRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.PatchNamedSetRouterRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 408608401: { + message.namedSetResource = $root.google.cloud.compute.v1beta.NamedSet.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 148608841: { + message.router = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PatchNamedSetRouterRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.PatchNamedSetRouterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.PatchNamedSetRouterRequest} PatchNamedSetRouterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PatchNamedSetRouterRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PatchNamedSetRouterRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.PatchNamedSetRouterRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PatchNamedSetRouterRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.namedSetResource != null && message.hasOwnProperty("namedSetResource")) { + var error = $root.google.cloud.compute.v1beta.NamedSet.verify(message.namedSetResource); + if (error) + return "namedSetResource." + error; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.router != null && message.hasOwnProperty("router")) + if (!$util.isString(message.router)) + return "router: string expected"; + return null; + }; + + /** + * Creates a PatchNamedSetRouterRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.PatchNamedSetRouterRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.PatchNamedSetRouterRequest} PatchNamedSetRouterRequest + */ + PatchNamedSetRouterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.PatchNamedSetRouterRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.PatchNamedSetRouterRequest(); + if (object.namedSetResource != null) { + if (typeof object.namedSetResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.PatchNamedSetRouterRequest.namedSetResource: object expected"); + message.namedSetResource = $root.google.cloud.compute.v1beta.NamedSet.fromObject(object.namedSetResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.router != null) + message.router = String(object.router); + return message; + }; + + /** + * Creates a plain object from a PatchNamedSetRouterRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.PatchNamedSetRouterRequest + * @static + * @param {google.cloud.compute.v1beta.PatchNamedSetRouterRequest} message PatchNamedSetRouterRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PatchNamedSetRouterRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.router = ""; + object.project = ""; + object.namedSetResource = null; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.router != null && message.hasOwnProperty("router")) + object.router = message.router; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.namedSetResource != null && message.hasOwnProperty("namedSetResource")) + object.namedSetResource = $root.google.cloud.compute.v1beta.NamedSet.toObject(message.namedSetResource, options); + return object; + }; + + /** + * Converts this PatchNamedSetRouterRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.PatchNamedSetRouterRequest + * @instance + * @returns {Object.} JSON object + */ + PatchNamedSetRouterRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PatchNamedSetRouterRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.PatchNamedSetRouterRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PatchNamedSetRouterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.PatchNamedSetRouterRequest"; + }; + + return PatchNamedSetRouterRequest; + })(); + v1beta.PatchNetworkAttachmentRequest = (function() { /** @@ -1145182,11 +1159342,13 @@ * @property {string|null} [deleteAtTime] Reservation deleteAtTime * @property {string|null} [deploymentType] Reservation deploymentType * @property {string|null} [description] Reservation description + * @property {string|null} [earlyAccessMaintenance] Reservation earlyAccessMaintenance * @property {boolean|null} [enableEmergentMaintenance] Reservation enableEmergentMaintenance * @property {number|Long|null} [id] Reservation id * @property {string|null} [kind] Reservation kind * @property {Array.|null} [linkedCommitments] Reservation linkedCommitments * @property {string|null} [name] Reservation name + * @property {google.cloud.compute.v1beta.IReservationParams|null} [params] Reservation params * @property {string|null} [protectionTier] Reservation protectionTier * @property {string|null} [reservationMode] Reservation reservationMode * @property {google.cloud.compute.v1beta.IAllocationReservationSharingPolicy|null} [reservationSharingPolicy] Reservation reservationSharingPolicy @@ -1145283,6 +1159445,14 @@ */ Reservation.prototype.description = null; + /** + * Reservation earlyAccessMaintenance. + * @member {string|null|undefined} earlyAccessMaintenance + * @memberof google.cloud.compute.v1beta.Reservation + * @instance + */ + Reservation.prototype.earlyAccessMaintenance = null; + /** * Reservation enableEmergentMaintenance. * @member {boolean|null|undefined} enableEmergentMaintenance @@ -1145323,6 +1159493,14 @@ */ Reservation.prototype.name = null; + /** + * Reservation params. + * @member {google.cloud.compute.v1beta.IReservationParams|null|undefined} params + * @memberof google.cloud.compute.v1beta.Reservation + * @instance + */ + Reservation.prototype.params = null; + /** * Reservation protectionTier. * @member {string|null|undefined} protectionTier @@ -1145478,6 +1159656,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Reservation.prototype, "_earlyAccessMaintenance", { + get: $util.oneOfGetter($oneOfFields = ["earlyAccessMaintenance"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Reservation.prototype, "_enableEmergentMaintenance", { get: $util.oneOfGetter($oneOfFields = ["enableEmergentMaintenance"]), @@ -1145502,6 +1159686,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Reservation.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Reservation.prototype, "_protectionTier", { get: $util.oneOfGetter($oneOfFields = ["protectionTier"]), @@ -1145611,6 +1159801,8 @@ writer.uint32(/* id 22220385, wireType 2 =*/177763082).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourcePolicies[keys[i]]).ldelim(); if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1beta.ReservationParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.deleteAtTime != null && Object.hasOwnProperty.call(message, "deleteAtTime")) writer.uint32(/* id 83294405, wireType 2 =*/666355242).string(message.deleteAtTime); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -1145631,6 +1159823,8 @@ $root.google.cloud.compute.v1beta.AllocationAggregateReservation.encode(message.aggregateReservation, writer.uint32(/* id 291567948, wireType 2 =*/2332543586).fork()).ldelim(); if (message.deleteAfterDuration != null && Object.hasOwnProperty.call(message, "deleteAfterDuration")) $root.google.cloud.compute.v1beta.Duration.encode(message.deleteAfterDuration, writer.uint32(/* id 323997099, wireType 2 =*/2591976794).fork()).ldelim(); + if (message.earlyAccessMaintenance != null && Object.hasOwnProperty.call(message, "earlyAccessMaintenance")) + writer.uint32(/* id 343918356, wireType 2 =*/2751346850).string(message.earlyAccessMaintenance); if (message.enableEmergentMaintenance != null && Object.hasOwnProperty.call(message, "enableEmergentMaintenance")) writer.uint32(/* id 353759497, wireType 0 =*/2830075976).bool(message.enableEmergentMaintenance); if (message.deploymentType != null && Object.hasOwnProperty.call(message, "deploymentType")) @@ -1145720,6 +1159914,10 @@ message.description = reader.string(); break; } + case 343918356: { + message.earlyAccessMaintenance = reader.string(); + break; + } case 353759497: { message.enableEmergentMaintenance = reader.bool(); break; @@ -1145742,6 +1159940,10 @@ message.name = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1beta.ReservationParams.decode(reader, reader.uint32()); + break; + } case 503959432: { message.protectionTier = reader.string(); break; @@ -1145898,6 +1160100,11 @@ if (!$util.isString(message.description)) return "description: string expected"; } + if (message.earlyAccessMaintenance != null && message.hasOwnProperty("earlyAccessMaintenance")) { + properties._earlyAccessMaintenance = 1; + if (!$util.isString(message.earlyAccessMaintenance)) + return "earlyAccessMaintenance: string expected"; + } if (message.enableEmergentMaintenance != null && message.hasOwnProperty("enableEmergentMaintenance")) { properties._enableEmergentMaintenance = 1; if (typeof message.enableEmergentMaintenance !== "boolean") @@ -1145925,6 +1160132,14 @@ if (!$util.isString(message.name)) return "name: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1beta.ReservationParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.protectionTier != null && message.hasOwnProperty("protectionTier")) { properties._protectionTier = 1; if (!$util.isString(message.protectionTier)) @@ -1146045,6 +1160260,8 @@ message.deploymentType = String(object.deploymentType); if (object.description != null) message.description = String(object.description); + if (object.earlyAccessMaintenance != null) + message.earlyAccessMaintenance = String(object.earlyAccessMaintenance); if (object.enableEmergentMaintenance != null) message.enableEmergentMaintenance = Boolean(object.enableEmergentMaintenance); if (object.id != null) @@ -1146067,6 +1160284,11 @@ } if (object.name != null) message.name = String(object.name); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1beta.Reservation.params: object expected"); + message.params = $root.google.cloud.compute.v1beta.ReservationParams.fromObject(object.params); + } if (object.protectionTier != null) message.protectionTier = String(object.protectionTier); if (object.reservationMode != null) @@ -1146164,6 +1160386,11 @@ if (options.oneofs) object._creationTimestamp = "creationTimestamp"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1beta.ReservationParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } if (message.deleteAtTime != null && message.hasOwnProperty("deleteAtTime")) { object.deleteAtTime = message.deleteAtTime; if (options.oneofs) @@ -1146214,6 +1160441,11 @@ if (options.oneofs) object._deleteAfterDuration = "deleteAfterDuration"; } + if (message.earlyAccessMaintenance != null && message.hasOwnProperty("earlyAccessMaintenance")) { + object.earlyAccessMaintenance = message.earlyAccessMaintenance; + if (options.oneofs) + object._earlyAccessMaintenance = "earlyAccessMaintenance"; + } if (message.enableEmergentMaintenance != null && message.hasOwnProperty("enableEmergentMaintenance")) { object.enableEmergentMaintenance = message.enableEmergentMaintenance; if (options.oneofs) @@ -1146311,6 +1160543,24 @@ return values; })(); + /** + * EarlyAccessMaintenance enum. + * @name google.cloud.compute.v1beta.Reservation.EarlyAccessMaintenance + * @enum {number} + * @property {number} UNDEFINED_EARLY_ACCESS_MAINTENANCE=0 UNDEFINED_EARLY_ACCESS_MAINTENANCE value + * @property {number} NO_EARLY_ACCESS=220751774 NO_EARLY_ACCESS value + * @property {number} WAVE1=82367576 WAVE1 value + * @property {number} WAVE2=82367577 WAVE2 value + */ + Reservation.EarlyAccessMaintenance = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_EARLY_ACCESS_MAINTENANCE"] = 0; + values[valuesById[220751774] = "NO_EARLY_ACCESS"] = 220751774; + values[valuesById[82367576] = "WAVE1"] = 82367576; + values[valuesById[82367577] = "WAVE2"] = 82367577; + return values; + })(); + /** * ProtectionTier enum. * @name google.cloud.compute.v1beta.Reservation.ProtectionTier @@ -1150349,38 +1164599,25 @@ return ReservationList; })(); - v1beta.ReservationSubBlock = (function() { + v1beta.ReservationParams = (function() { /** - * Properties of a ReservationSubBlock. + * Properties of a ReservationParams. * @memberof google.cloud.compute.v1beta - * @interface IReservationSubBlock - * @property {google.cloud.compute.v1beta.IAcceleratorTopologiesInfo|null} [acceleratorTopologiesInfo] ReservationSubBlock acceleratorTopologiesInfo - * @property {number|null} [count] ReservationSubBlock count - * @property {string|null} [creationTimestamp] ReservationSubBlock creationTimestamp - * @property {google.cloud.compute.v1beta.IReservationSubBlockHealthInfo|null} [healthInfo] ReservationSubBlock healthInfo - * @property {number|Long|null} [id] ReservationSubBlock id - * @property {number|null} [inUseCount] ReservationSubBlock inUseCount - * @property {number|null} [inUseHostCount] ReservationSubBlock inUseHostCount - * @property {string|null} [kind] ReservationSubBlock kind - * @property {string|null} [name] ReservationSubBlock name - * @property {google.cloud.compute.v1beta.IReservationSubBlockPhysicalTopology|null} [physicalTopology] ReservationSubBlock physicalTopology - * @property {google.cloud.compute.v1beta.IGroupMaintenanceInfo|null} [reservationSubBlockMaintenance] ReservationSubBlock reservationSubBlockMaintenance - * @property {string|null} [selfLink] ReservationSubBlock selfLink - * @property {string|null} [selfLinkWithId] ReservationSubBlock selfLinkWithId - * @property {string|null} [status] ReservationSubBlock status - * @property {string|null} [zone] ReservationSubBlock zone + * @interface IReservationParams + * @property {Object.|null} [resourceManagerTags] ReservationParams resourceManagerTags */ /** - * Constructs a new ReservationSubBlock. + * Constructs a new ReservationParams. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ReservationSubBlock. - * @implements IReservationSubBlock + * @classdesc Represents a ReservationParams. + * @implements IReservationParams * @constructor - * @param {google.cloud.compute.v1beta.IReservationSubBlock=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IReservationParams=} [properties] Properties to set */ - function ReservationSubBlock(properties) { + function ReservationParams(properties) { + this.resourceManagerTags = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1150388,240 +1164625,433 @@ } /** - * ReservationSubBlock acceleratorTopologiesInfo. - * @member {google.cloud.compute.v1beta.IAcceleratorTopologiesInfo|null|undefined} acceleratorTopologiesInfo - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * ReservationParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1beta.ReservationParams * @instance */ - ReservationSubBlock.prototype.acceleratorTopologiesInfo = null; + ReservationParams.prototype.resourceManagerTags = $util.emptyObject; /** - * ReservationSubBlock count. - * @member {number|null|undefined} count - * @memberof google.cloud.compute.v1beta.ReservationSubBlock - * @instance + * Creates a new ReservationParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ReservationParams + * @static + * @param {google.cloud.compute.v1beta.IReservationParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ReservationParams} ReservationParams instance */ - ReservationSubBlock.prototype.count = null; + ReservationParams.create = function create(properties) { + return new ReservationParams(properties); + }; /** - * ReservationSubBlock creationTimestamp. - * @member {string|null|undefined} creationTimestamp - * @memberof google.cloud.compute.v1beta.ReservationSubBlock - * @instance + * Encodes the specified ReservationParams message. Does not implicitly {@link google.cloud.compute.v1beta.ReservationParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ReservationParams + * @static + * @param {google.cloud.compute.v1beta.IReservationParams} message ReservationParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ReservationSubBlock.prototype.creationTimestamp = null; + ReservationParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + for (var keys = Object.keys(message.resourceManagerTags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 377671164, wireType 2 =*/3021369314).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceManagerTags[keys[i]]).ldelim(); + return writer; + }; /** - * ReservationSubBlock healthInfo. - * @member {google.cloud.compute.v1beta.IReservationSubBlockHealthInfo|null|undefined} healthInfo - * @memberof google.cloud.compute.v1beta.ReservationSubBlock - * @instance + * Encodes the specified ReservationParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ReservationParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ReservationParams + * @static + * @param {google.cloud.compute.v1beta.IReservationParams} message ReservationParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ReservationSubBlock.prototype.healthInfo = null; + ReservationParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * ReservationSubBlock id. - * @member {number|Long|null|undefined} id - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * Decodes a ReservationParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ReservationParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ReservationParams} ReservationParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationParams.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ReservationParams(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 377671164: { + if (message.resourceManagerTags === $util.emptyObject) + message.resourceManagerTags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.resourceManagerTags[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservationParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ReservationParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ReservationParams} ReservationParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservationParams message. + * @function verify + * @memberof google.cloud.compute.v1beta.ReservationParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservationParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + if (!$util.isObject(message.resourceManagerTags)) + return "resourceManagerTags: object expected"; + var key = Object.keys(message.resourceManagerTags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourceManagerTags[key[i]])) + return "resourceManagerTags: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a ReservationParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ReservationParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ReservationParams} ReservationParams + */ + ReservationParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ReservationParams) + return object; + var message = new $root.google.cloud.compute.v1beta.ReservationParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1beta.ReservationParams.resourceManagerTags: object expected"); + message.resourceManagerTags = {}; + for (var keys = Object.keys(object.resourceManagerTags), i = 0; i < keys.length; ++i) + message.resourceManagerTags[keys[i]] = String(object.resourceManagerTags[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a ReservationParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ReservationParams + * @static + * @param {google.cloud.compute.v1beta.ReservationParams} message ReservationParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservationParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.resourceManagerTags = {}; + var keys2; + if (message.resourceManagerTags && (keys2 = Object.keys(message.resourceManagerTags)).length) { + object.resourceManagerTags = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourceManagerTags[keys2[j]] = message.resourceManagerTags[keys2[j]]; + } + return object; + }; + + /** + * Converts this ReservationParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ReservationParams * @instance + * @returns {Object.} JSON object */ - ReservationSubBlock.prototype.id = null; + ReservationParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * ReservationSubBlock inUseCount. - * @member {number|null|undefined} inUseCount - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * Gets the default type url for ReservationParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ReservationParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservationParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ReservationParams"; + }; + + return ReservationParams; + })(); + + v1beta.ReservationSlot = (function() { + + /** + * Properties of a ReservationSlot. + * @memberof google.cloud.compute.v1beta + * @interface IReservationSlot + * @property {string|null} [creationTimestamp] ReservationSlot creationTimestamp + * @property {number|Long|null} [id] ReservationSlot id + * @property {string|null} [kind] ReservationSlot kind + * @property {string|null} [name] ReservationSlot name + * @property {google.cloud.compute.v1beta.IReservationSlotPhysicalTopology|null} [physicalTopology] ReservationSlot physicalTopology + * @property {string|null} [selfLink] ReservationSlot selfLink + * @property {string|null} [selfLinkWithId] ReservationSlot selfLinkWithId + * @property {google.cloud.compute.v1beta.IShareSettings|null} [shareSettings] ReservationSlot shareSettings + * @property {string|null} [state] ReservationSlot state + * @property {google.cloud.compute.v1beta.IReservationSlotStatus|null} [status] ReservationSlot status + * @property {string|null} [zone] ReservationSlot zone + */ + + /** + * Constructs a new ReservationSlot. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ReservationSlot. + * @implements IReservationSlot + * @constructor + * @param {google.cloud.compute.v1beta.IReservationSlot=} [properties] Properties to set + */ + function ReservationSlot(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservationSlot creationTimestamp. + * @member {string|null|undefined} creationTimestamp + * @memberof google.cloud.compute.v1beta.ReservationSlot * @instance */ - ReservationSubBlock.prototype.inUseCount = null; + ReservationSlot.prototype.creationTimestamp = null; /** - * ReservationSubBlock inUseHostCount. - * @member {number|null|undefined} inUseHostCount - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * ReservationSlot id. + * @member {number|Long|null|undefined} id + * @memberof google.cloud.compute.v1beta.ReservationSlot * @instance */ - ReservationSubBlock.prototype.inUseHostCount = null; + ReservationSlot.prototype.id = null; /** - * ReservationSubBlock kind. + * ReservationSlot kind. * @member {string|null|undefined} kind - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @memberof google.cloud.compute.v1beta.ReservationSlot * @instance */ - ReservationSubBlock.prototype.kind = null; + ReservationSlot.prototype.kind = null; /** - * ReservationSubBlock name. + * ReservationSlot name. * @member {string|null|undefined} name - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @memberof google.cloud.compute.v1beta.ReservationSlot * @instance */ - ReservationSubBlock.prototype.name = null; + ReservationSlot.prototype.name = null; /** - * ReservationSubBlock physicalTopology. - * @member {google.cloud.compute.v1beta.IReservationSubBlockPhysicalTopology|null|undefined} physicalTopology - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * ReservationSlot physicalTopology. + * @member {google.cloud.compute.v1beta.IReservationSlotPhysicalTopology|null|undefined} physicalTopology + * @memberof google.cloud.compute.v1beta.ReservationSlot * @instance */ - ReservationSubBlock.prototype.physicalTopology = null; + ReservationSlot.prototype.physicalTopology = null; /** - * ReservationSubBlock reservationSubBlockMaintenance. - * @member {google.cloud.compute.v1beta.IGroupMaintenanceInfo|null|undefined} reservationSubBlockMaintenance - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * ReservationSlot selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.ReservationSlot * @instance */ - ReservationSubBlock.prototype.reservationSubBlockMaintenance = null; + ReservationSlot.prototype.selfLink = null; /** - * ReservationSubBlock selfLink. - * @member {string|null|undefined} selfLink - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * ReservationSlot selfLinkWithId. + * @member {string|null|undefined} selfLinkWithId + * @memberof google.cloud.compute.v1beta.ReservationSlot * @instance */ - ReservationSubBlock.prototype.selfLink = null; + ReservationSlot.prototype.selfLinkWithId = null; /** - * ReservationSubBlock selfLinkWithId. - * @member {string|null|undefined} selfLinkWithId - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * ReservationSlot shareSettings. + * @member {google.cloud.compute.v1beta.IShareSettings|null|undefined} shareSettings + * @memberof google.cloud.compute.v1beta.ReservationSlot * @instance */ - ReservationSubBlock.prototype.selfLinkWithId = null; + ReservationSlot.prototype.shareSettings = null; /** - * ReservationSubBlock status. - * @member {string|null|undefined} status - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * ReservationSlot state. + * @member {string|null|undefined} state + * @memberof google.cloud.compute.v1beta.ReservationSlot * @instance */ - ReservationSubBlock.prototype.status = null; + ReservationSlot.prototype.state = null; /** - * ReservationSubBlock zone. + * ReservationSlot status. + * @member {google.cloud.compute.v1beta.IReservationSlotStatus|null|undefined} status + * @memberof google.cloud.compute.v1beta.ReservationSlot + * @instance + */ + ReservationSlot.prototype.status = null; + + /** + * ReservationSlot zone. * @member {string|null|undefined} zone - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @memberof google.cloud.compute.v1beta.ReservationSlot * @instance */ - ReservationSubBlock.prototype.zone = null; + ReservationSlot.prototype.zone = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_acceleratorTopologiesInfo", { - get: $util.oneOfGetter($oneOfFields = ["acceleratorTopologiesInfo"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_count", { - get: $util.oneOfGetter($oneOfFields = ["count"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_creationTimestamp", { + Object.defineProperty(ReservationSlot.prototype, "_creationTimestamp", { get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_healthInfo", { - get: $util.oneOfGetter($oneOfFields = ["healthInfo"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_id", { + Object.defineProperty(ReservationSlot.prototype, "_id", { get: $util.oneOfGetter($oneOfFields = ["id"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_inUseCount", { - get: $util.oneOfGetter($oneOfFields = ["inUseCount"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_inUseHostCount", { - get: $util.oneOfGetter($oneOfFields = ["inUseHostCount"]), + Object.defineProperty(ReservationSlot.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_kind", { - get: $util.oneOfGetter($oneOfFields = ["kind"]), + Object.defineProperty(ReservationSlot.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_name", { - get: $util.oneOfGetter($oneOfFields = ["name"]), + Object.defineProperty(ReservationSlot.prototype, "_physicalTopology", { + get: $util.oneOfGetter($oneOfFields = ["physicalTopology"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_physicalTopology", { - get: $util.oneOfGetter($oneOfFields = ["physicalTopology"]), + Object.defineProperty(ReservationSlot.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_reservationSubBlockMaintenance", { - get: $util.oneOfGetter($oneOfFields = ["reservationSubBlockMaintenance"]), + Object.defineProperty(ReservationSlot.prototype, "_selfLinkWithId", { + get: $util.oneOfGetter($oneOfFields = ["selfLinkWithId"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_selfLink", { - get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + Object.defineProperty(ReservationSlot.prototype, "_shareSettings", { + get: $util.oneOfGetter($oneOfFields = ["shareSettings"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_selfLinkWithId", { - get: $util.oneOfGetter($oneOfFields = ["selfLinkWithId"]), + Object.defineProperty(ReservationSlot.prototype, "_state", { + get: $util.oneOfGetter($oneOfFields = ["state"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_status", { + Object.defineProperty(ReservationSlot.prototype, "_status", { get: $util.oneOfGetter($oneOfFields = ["status"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_zone", { + Object.defineProperty(ReservationSlot.prototype, "_zone", { get: $util.oneOfGetter($oneOfFields = ["zone"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ReservationSubBlock instance using the specified properties. + * Creates a new ReservationSlot instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @memberof google.cloud.compute.v1beta.ReservationSlot * @static - * @param {google.cloud.compute.v1beta.IReservationSubBlock=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ReservationSubBlock} ReservationSubBlock instance + * @param {google.cloud.compute.v1beta.IReservationSlot=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ReservationSlot} ReservationSlot instance */ - ReservationSubBlock.create = function create(properties) { - return new ReservationSubBlock(properties); + ReservationSlot.create = function create(properties) { + return new ReservationSlot(properties); }; /** - * Encodes the specified ReservationSubBlock message. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSubBlock.verify|verify} messages. + * Encodes the specified ReservationSlot message. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlot.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @memberof google.cloud.compute.v1beta.ReservationSlot * @static - * @param {google.cloud.compute.v1beta.IReservationSubBlock} message ReservationSubBlock message or plain object to encode + * @param {google.cloud.compute.v1beta.IReservationSlot} message ReservationSlot message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReservationSubBlock.encode = function encode(message, writer) { + ReservationSlot.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.id != null && Object.hasOwnProperty.call(message, "id")) @@ -1150636,88 +1165066,60 @@ writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); if (message.selfLinkWithId != null && Object.hasOwnProperty.call(message, "selfLinkWithId")) writer.uint32(/* id 44520962, wireType 2 =*/356167698).string(message.selfLinkWithId); - if (message.acceleratorTopologiesInfo != null && Object.hasOwnProperty.call(message, "acceleratorTopologiesInfo")) - $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfo.encode(message.acceleratorTopologiesInfo, writer.uint32(/* id 84833420, wireType 2 =*/678667362).fork()).ldelim(); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 94851343, wireType 0 =*/758810744).int32(message.count); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 109757585, wireType 2 =*/878060682).string(message.state); if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 181260274, wireType 2 =*/1450082194).string(message.status); - if (message.healthInfo != null && Object.hasOwnProperty.call(message, "healthInfo")) - $root.google.cloud.compute.v1beta.ReservationSubBlockHealthInfo.encode(message.healthInfo, writer.uint32(/* id 235287729, wireType 2 =*/1882301834).fork()).ldelim(); + $root.google.cloud.compute.v1beta.ReservationSlotStatus.encode(message.status, writer.uint32(/* id 181260274, wireType 2 =*/1450082194).fork()).ldelim(); + if (message.shareSettings != null && Object.hasOwnProperty.call(message, "shareSettings")) + $root.google.cloud.compute.v1beta.ShareSettings.encode(message.shareSettings, writer.uint32(/* id 266668163, wireType 2 =*/2133345306).fork()).ldelim(); if (message.physicalTopology != null && Object.hasOwnProperty.call(message, "physicalTopology")) - $root.google.cloud.compute.v1beta.ReservationSubBlockPhysicalTopology.encode(message.physicalTopology, writer.uint32(/* id 279778519, wireType 2 =*/2238228154).fork()).ldelim(); - if (message.inUseHostCount != null && Object.hasOwnProperty.call(message, "inUseHostCount")) - writer.uint32(/* id 364069834, wireType 0 =*/2912558672).int32(message.inUseHostCount); - if (message.reservationSubBlockMaintenance != null && Object.hasOwnProperty.call(message, "reservationSubBlockMaintenance")) - $root.google.cloud.compute.v1beta.GroupMaintenanceInfo.encode(message.reservationSubBlockMaintenance, writer.uint32(/* id 377005551, wireType 2 =*/3016044410).fork()).ldelim(); + $root.google.cloud.compute.v1beta.ReservationSlotPhysicalTopology.encode(message.physicalTopology, writer.uint32(/* id 279778519, wireType 2 =*/2238228154).fork()).ldelim(); if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); - if (message.inUseCount != null && Object.hasOwnProperty.call(message, "inUseCount")) - writer.uint32(/* id 493458877, wireType 0 =*/3947671016).int32(message.inUseCount); return writer; }; /** - * Encodes the specified ReservationSubBlock message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSubBlock.verify|verify} messages. + * Encodes the specified ReservationSlot message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlot.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @memberof google.cloud.compute.v1beta.ReservationSlot * @static - * @param {google.cloud.compute.v1beta.IReservationSubBlock} message ReservationSubBlock message or plain object to encode + * @param {google.cloud.compute.v1beta.IReservationSlot} message ReservationSlot message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReservationSubBlock.encodeDelimited = function encodeDelimited(message, writer) { + ReservationSlot.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReservationSubBlock message from the specified reader or buffer. + * Decodes a ReservationSlot message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @memberof google.cloud.compute.v1beta.ReservationSlot * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ReservationSubBlock} ReservationSubBlock + * @returns {google.cloud.compute.v1beta.ReservationSlot} ReservationSlot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReservationSubBlock.decode = function decode(reader, length, error) { + ReservationSlot.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ReservationSubBlock(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ReservationSlot(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 84833420: { - message.acceleratorTopologiesInfo = $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfo.decode(reader, reader.uint32()); - break; - } - case 94851343: { - message.count = reader.int32(); - break; - } case 30525366: { message.creationTimestamp = reader.string(); break; } - case 235287729: { - message.healthInfo = $root.google.cloud.compute.v1beta.ReservationSubBlockHealthInfo.decode(reader, reader.uint32()); - break; - } case 3355: { message.id = reader.uint64(); break; } - case 493458877: { - message.inUseCount = reader.int32(); - break; - } - case 364069834: { - message.inUseHostCount = reader.int32(); - break; - } case 3292052: { message.kind = reader.string(); break; @@ -1150727,11 +1165129,7 @@ break; } case 279778519: { - message.physicalTopology = $root.google.cloud.compute.v1beta.ReservationSubBlockPhysicalTopology.decode(reader, reader.uint32()); - break; - } - case 377005551: { - message.reservationSubBlockMaintenance = $root.google.cloud.compute.v1beta.GroupMaintenanceInfo.decode(reader, reader.uint32()); + message.physicalTopology = $root.google.cloud.compute.v1beta.ReservationSlotPhysicalTopology.decode(reader, reader.uint32()); break; } case 456214797: { @@ -1150742,8 +1165140,16 @@ message.selfLinkWithId = reader.string(); break; } + case 266668163: { + message.shareSettings = $root.google.cloud.compute.v1beta.ShareSettings.decode(reader, reader.uint32()); + break; + } + case 109757585: { + message.state = reader.string(); + break; + } case 181260274: { - message.status = reader.string(); + message.status = $root.google.cloud.compute.v1beta.ReservationSlotStatus.decode(reader, reader.uint32()); break; } case 3744684: { @@ -1150759,74 +1165165,43 @@ }; /** - * Decodes a ReservationSubBlock message from the specified reader or buffer, length delimited. + * Decodes a ReservationSlot message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @memberof google.cloud.compute.v1beta.ReservationSlot * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ReservationSubBlock} ReservationSubBlock + * @returns {google.cloud.compute.v1beta.ReservationSlot} ReservationSlot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReservationSubBlock.decodeDelimited = function decodeDelimited(reader) { + ReservationSlot.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReservationSubBlock message. + * Verifies a ReservationSlot message. * @function verify - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @memberof google.cloud.compute.v1beta.ReservationSlot * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReservationSubBlock.verify = function verify(message) { + ReservationSlot.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.acceleratorTopologiesInfo != null && message.hasOwnProperty("acceleratorTopologiesInfo")) { - properties._acceleratorTopologiesInfo = 1; - { - var error = $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfo.verify(message.acceleratorTopologiesInfo); - if (error) - return "acceleratorTopologiesInfo." + error; - } - } - if (message.count != null && message.hasOwnProperty("count")) { - properties._count = 1; - if (!$util.isInteger(message.count)) - return "count: integer expected"; - } if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { properties._creationTimestamp = 1; if (!$util.isString(message.creationTimestamp)) return "creationTimestamp: string expected"; } - if (message.healthInfo != null && message.hasOwnProperty("healthInfo")) { - properties._healthInfo = 1; - { - var error = $root.google.cloud.compute.v1beta.ReservationSubBlockHealthInfo.verify(message.healthInfo); - if (error) - return "healthInfo." + error; - } - } if (message.id != null && message.hasOwnProperty("id")) { properties._id = 1; if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) return "id: integer|Long expected"; } - if (message.inUseCount != null && message.hasOwnProperty("inUseCount")) { - properties._inUseCount = 1; - if (!$util.isInteger(message.inUseCount)) - return "inUseCount: integer expected"; - } - if (message.inUseHostCount != null && message.hasOwnProperty("inUseHostCount")) { - properties._inUseHostCount = 1; - if (!$util.isInteger(message.inUseHostCount)) - return "inUseHostCount: integer expected"; - } if (message.kind != null && message.hasOwnProperty("kind")) { properties._kind = 1; if (!$util.isString(message.kind)) @@ -1150840,19 +1165215,11 @@ if (message.physicalTopology != null && message.hasOwnProperty("physicalTopology")) { properties._physicalTopology = 1; { - var error = $root.google.cloud.compute.v1beta.ReservationSubBlockPhysicalTopology.verify(message.physicalTopology); + var error = $root.google.cloud.compute.v1beta.ReservationSlotPhysicalTopology.verify(message.physicalTopology); if (error) return "physicalTopology." + error; } } - if (message.reservationSubBlockMaintenance != null && message.hasOwnProperty("reservationSubBlockMaintenance")) { - properties._reservationSubBlockMaintenance = 1; - { - var error = $root.google.cloud.compute.v1beta.GroupMaintenanceInfo.verify(message.reservationSubBlockMaintenance); - if (error) - return "reservationSubBlockMaintenance." + error; - } - } if (message.selfLink != null && message.hasOwnProperty("selfLink")) { properties._selfLink = 1; if (!$util.isString(message.selfLink)) @@ -1150863,10 +1165230,26 @@ if (!$util.isString(message.selfLinkWithId)) return "selfLinkWithId: string expected"; } + if (message.shareSettings != null && message.hasOwnProperty("shareSettings")) { + properties._shareSettings = 1; + { + var error = $root.google.cloud.compute.v1beta.ShareSettings.verify(message.shareSettings); + if (error) + return "shareSettings." + error; + } + } + if (message.state != null && message.hasOwnProperty("state")) { + properties._state = 1; + if (!$util.isString(message.state)) + return "state: string expected"; + } if (message.status != null && message.hasOwnProperty("status")) { properties._status = 1; - if (!$util.isString(message.status)) - return "status: string expected"; + { + var error = $root.google.cloud.compute.v1beta.ReservationSlotStatus.verify(message.status); + if (error) + return "status." + error; + } } if (message.zone != null && message.hasOwnProperty("zone")) { properties._zone = 1; @@ -1150877,31 +1165260,19 @@ }; /** - * Creates a ReservationSubBlock message from a plain object. Also converts values to their respective internal types. + * Creates a ReservationSlot message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @memberof google.cloud.compute.v1beta.ReservationSlot * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ReservationSubBlock} ReservationSubBlock + * @returns {google.cloud.compute.v1beta.ReservationSlot} ReservationSlot */ - ReservationSubBlock.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ReservationSubBlock) + ReservationSlot.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ReservationSlot) return object; - var message = new $root.google.cloud.compute.v1beta.ReservationSubBlock(); - if (object.acceleratorTopologiesInfo != null) { - if (typeof object.acceleratorTopologiesInfo !== "object") - throw TypeError(".google.cloud.compute.v1beta.ReservationSubBlock.acceleratorTopologiesInfo: object expected"); - message.acceleratorTopologiesInfo = $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfo.fromObject(object.acceleratorTopologiesInfo); - } - if (object.count != null) - message.count = object.count | 0; + var message = new $root.google.cloud.compute.v1beta.ReservationSlot(); if (object.creationTimestamp != null) message.creationTimestamp = String(object.creationTimestamp); - if (object.healthInfo != null) { - if (typeof object.healthInfo !== "object") - throw TypeError(".google.cloud.compute.v1beta.ReservationSubBlock.healthInfo: object expected"); - message.healthInfo = $root.google.cloud.compute.v1beta.ReservationSubBlockHealthInfo.fromObject(object.healthInfo); - } if (object.id != null) if ($util.Long) (message.id = $util.Long.fromValue(object.id)).unsigned = true; @@ -1150911,45 +1165282,2008 @@ message.id = object.id; else if (typeof object.id === "object") message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true); - if (object.inUseCount != null) - message.inUseCount = object.inUseCount | 0; - if (object.inUseHostCount != null) - message.inUseHostCount = object.inUseHostCount | 0; if (object.kind != null) message.kind = String(object.kind); if (object.name != null) message.name = String(object.name); if (object.physicalTopology != null) { if (typeof object.physicalTopology !== "object") - throw TypeError(".google.cloud.compute.v1beta.ReservationSubBlock.physicalTopology: object expected"); - message.physicalTopology = $root.google.cloud.compute.v1beta.ReservationSubBlockPhysicalTopology.fromObject(object.physicalTopology); - } - if (object.reservationSubBlockMaintenance != null) { - if (typeof object.reservationSubBlockMaintenance !== "object") - throw TypeError(".google.cloud.compute.v1beta.ReservationSubBlock.reservationSubBlockMaintenance: object expected"); - message.reservationSubBlockMaintenance = $root.google.cloud.compute.v1beta.GroupMaintenanceInfo.fromObject(object.reservationSubBlockMaintenance); + throw TypeError(".google.cloud.compute.v1beta.ReservationSlot.physicalTopology: object expected"); + message.physicalTopology = $root.google.cloud.compute.v1beta.ReservationSlotPhysicalTopology.fromObject(object.physicalTopology); } if (object.selfLink != null) message.selfLink = String(object.selfLink); if (object.selfLinkWithId != null) message.selfLinkWithId = String(object.selfLinkWithId); - if (object.status != null) - message.status = String(object.status); + if (object.shareSettings != null) { + if (typeof object.shareSettings !== "object") + throw TypeError(".google.cloud.compute.v1beta.ReservationSlot.shareSettings: object expected"); + message.shareSettings = $root.google.cloud.compute.v1beta.ShareSettings.fromObject(object.shareSettings); + } + if (object.state != null) + message.state = String(object.state); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.compute.v1beta.ReservationSlot.status: object expected"); + message.status = $root.google.cloud.compute.v1beta.ReservationSlotStatus.fromObject(object.status); + } if (object.zone != null) message.zone = String(object.zone); return message; }; /** - * Creates a plain object from a ReservationSubBlock message. Also converts values to other types if specified. + * Creates a plain object from a ReservationSlot message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @memberof google.cloud.compute.v1beta.ReservationSlot * @static - * @param {google.cloud.compute.v1beta.ReservationSubBlock} message ReservationSubBlock + * @param {google.cloud.compute.v1beta.ReservationSlot} message ReservationSlot * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReservationSubBlock.toObject = function toObject(message, options) { + ReservationSlot.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.id != null && message.hasOwnProperty("id")) { + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber(true) : message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.name != null && message.hasOwnProperty("name")) { + object.name = message.name; + if (options.oneofs) + object._name = "name"; + } + if (message.zone != null && message.hasOwnProperty("zone")) { + object.zone = message.zone; + if (options.oneofs) + object._zone = "zone"; + } + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + object.creationTimestamp = message.creationTimestamp; + if (options.oneofs) + object._creationTimestamp = "creationTimestamp"; + } + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + object.selfLinkWithId = message.selfLinkWithId; + if (options.oneofs) + object._selfLinkWithId = "selfLinkWithId"; + } + if (message.state != null && message.hasOwnProperty("state")) { + object.state = message.state; + if (options.oneofs) + object._state = "state"; + } + if (message.status != null && message.hasOwnProperty("status")) { + object.status = $root.google.cloud.compute.v1beta.ReservationSlotStatus.toObject(message.status, options); + if (options.oneofs) + object._status = "status"; + } + if (message.shareSettings != null && message.hasOwnProperty("shareSettings")) { + object.shareSettings = $root.google.cloud.compute.v1beta.ShareSettings.toObject(message.shareSettings, options); + if (options.oneofs) + object._shareSettings = "shareSettings"; + } + if (message.physicalTopology != null && message.hasOwnProperty("physicalTopology")) { + object.physicalTopology = $root.google.cloud.compute.v1beta.ReservationSlotPhysicalTopology.toObject(message.physicalTopology, options); + if (options.oneofs) + object._physicalTopology = "physicalTopology"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this ReservationSlot to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ReservationSlot + * @instance + * @returns {Object.} JSON object + */ + ReservationSlot.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservationSlot + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ReservationSlot + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservationSlot.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ReservationSlot"; + }; + + /** + * State enum. + * @name google.cloud.compute.v1beta.ReservationSlot.State + * @enum {number} + * @property {number} UNDEFINED_STATE=0 UNDEFINED_STATE value + * @property {number} ACTIVE=314733318 ACTIVE value + * @property {number} CREATING=455564985 CREATING value + * @property {number} DELETING=528602024 DELETING value + * @property {number} STATE_UNSPECIFIED=470755401 STATE_UNSPECIFIED value + * @property {number} UNAVAILABLE=413756464 UNAVAILABLE value + */ + ReservationSlot.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STATE"] = 0; + values[valuesById[314733318] = "ACTIVE"] = 314733318; + values[valuesById[455564985] = "CREATING"] = 455564985; + values[valuesById[528602024] = "DELETING"] = 528602024; + values[valuesById[470755401] = "STATE_UNSPECIFIED"] = 470755401; + values[valuesById[413756464] = "UNAVAILABLE"] = 413756464; + return values; + })(); + + return ReservationSlot; + })(); + + v1beta.ReservationSlotPhysicalTopology = (function() { + + /** + * Properties of a ReservationSlotPhysicalTopology. + * @memberof google.cloud.compute.v1beta + * @interface IReservationSlotPhysicalTopology + * @property {string|null} [block] ReservationSlotPhysicalTopology block + * @property {string|null} [cluster] ReservationSlotPhysicalTopology cluster + * @property {string|null} [host] ReservationSlotPhysicalTopology host + * @property {string|null} [subBlock] ReservationSlotPhysicalTopology subBlock + */ + + /** + * Constructs a new ReservationSlotPhysicalTopology. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ReservationSlotPhysicalTopology. + * @implements IReservationSlotPhysicalTopology + * @constructor + * @param {google.cloud.compute.v1beta.IReservationSlotPhysicalTopology=} [properties] Properties to set + */ + function ReservationSlotPhysicalTopology(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservationSlotPhysicalTopology block. + * @member {string|null|undefined} block + * @memberof google.cloud.compute.v1beta.ReservationSlotPhysicalTopology + * @instance + */ + ReservationSlotPhysicalTopology.prototype.block = null; + + /** + * ReservationSlotPhysicalTopology cluster. + * @member {string|null|undefined} cluster + * @memberof google.cloud.compute.v1beta.ReservationSlotPhysicalTopology + * @instance + */ + ReservationSlotPhysicalTopology.prototype.cluster = null; + + /** + * ReservationSlotPhysicalTopology host. + * @member {string|null|undefined} host + * @memberof google.cloud.compute.v1beta.ReservationSlotPhysicalTopology + * @instance + */ + ReservationSlotPhysicalTopology.prototype.host = null; + + /** + * ReservationSlotPhysicalTopology subBlock. + * @member {string|null|undefined} subBlock + * @memberof google.cloud.compute.v1beta.ReservationSlotPhysicalTopology + * @instance + */ + ReservationSlotPhysicalTopology.prototype.subBlock = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotPhysicalTopology.prototype, "_block", { + get: $util.oneOfGetter($oneOfFields = ["block"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotPhysicalTopology.prototype, "_cluster", { + get: $util.oneOfGetter($oneOfFields = ["cluster"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotPhysicalTopology.prototype, "_host", { + get: $util.oneOfGetter($oneOfFields = ["host"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotPhysicalTopology.prototype, "_subBlock", { + get: $util.oneOfGetter($oneOfFields = ["subBlock"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ReservationSlotPhysicalTopology instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ReservationSlotPhysicalTopology + * @static + * @param {google.cloud.compute.v1beta.IReservationSlotPhysicalTopology=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ReservationSlotPhysicalTopology} ReservationSlotPhysicalTopology instance + */ + ReservationSlotPhysicalTopology.create = function create(properties) { + return new ReservationSlotPhysicalTopology(properties); + }; + + /** + * Encodes the specified ReservationSlotPhysicalTopology message. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotPhysicalTopology.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ReservationSlotPhysicalTopology + * @static + * @param {google.cloud.compute.v1beta.IReservationSlotPhysicalTopology} message ReservationSlotPhysicalTopology message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotPhysicalTopology.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.host != null && Object.hasOwnProperty.call(message, "host")) + writer.uint32(/* id 3208616, wireType 2 =*/25668930).string(message.host); + if (message.block != null && Object.hasOwnProperty.call(message, "block")) + writer.uint32(/* id 93832333, wireType 2 =*/750658666).string(message.block); + if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) + writer.uint32(/* id 335221242, wireType 2 =*/2681769938).string(message.cluster); + if (message.subBlock != null && Object.hasOwnProperty.call(message, "subBlock")) + writer.uint32(/* id 478033358, wireType 2 =*/3824266866).string(message.subBlock); + return writer; + }; + + /** + * Encodes the specified ReservationSlotPhysicalTopology message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotPhysicalTopology.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ReservationSlotPhysicalTopology + * @static + * @param {google.cloud.compute.v1beta.IReservationSlotPhysicalTopology} message ReservationSlotPhysicalTopology message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotPhysicalTopology.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservationSlotPhysicalTopology message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ReservationSlotPhysicalTopology + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ReservationSlotPhysicalTopology} ReservationSlotPhysicalTopology + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotPhysicalTopology.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ReservationSlotPhysicalTopology(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 93832333: { + message.block = reader.string(); + break; + } + case 335221242: { + message.cluster = reader.string(); + break; + } + case 3208616: { + message.host = reader.string(); + break; + } + case 478033358: { + message.subBlock = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservationSlotPhysicalTopology message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ReservationSlotPhysicalTopology + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ReservationSlotPhysicalTopology} ReservationSlotPhysicalTopology + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotPhysicalTopology.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservationSlotPhysicalTopology message. + * @function verify + * @memberof google.cloud.compute.v1beta.ReservationSlotPhysicalTopology + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservationSlotPhysicalTopology.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.block != null && message.hasOwnProperty("block")) { + properties._block = 1; + if (!$util.isString(message.block)) + return "block: string expected"; + } + if (message.cluster != null && message.hasOwnProperty("cluster")) { + properties._cluster = 1; + if (!$util.isString(message.cluster)) + return "cluster: string expected"; + } + if (message.host != null && message.hasOwnProperty("host")) { + properties._host = 1; + if (!$util.isString(message.host)) + return "host: string expected"; + } + if (message.subBlock != null && message.hasOwnProperty("subBlock")) { + properties._subBlock = 1; + if (!$util.isString(message.subBlock)) + return "subBlock: string expected"; + } + return null; + }; + + /** + * Creates a ReservationSlotPhysicalTopology message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ReservationSlotPhysicalTopology + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ReservationSlotPhysicalTopology} ReservationSlotPhysicalTopology + */ + ReservationSlotPhysicalTopology.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ReservationSlotPhysicalTopology) + return object; + var message = new $root.google.cloud.compute.v1beta.ReservationSlotPhysicalTopology(); + if (object.block != null) + message.block = String(object.block); + if (object.cluster != null) + message.cluster = String(object.cluster); + if (object.host != null) + message.host = String(object.host); + if (object.subBlock != null) + message.subBlock = String(object.subBlock); + return message; + }; + + /** + * Creates a plain object from a ReservationSlotPhysicalTopology message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ReservationSlotPhysicalTopology + * @static + * @param {google.cloud.compute.v1beta.ReservationSlotPhysicalTopology} message ReservationSlotPhysicalTopology + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservationSlotPhysicalTopology.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.host != null && message.hasOwnProperty("host")) { + object.host = message.host; + if (options.oneofs) + object._host = "host"; + } + if (message.block != null && message.hasOwnProperty("block")) { + object.block = message.block; + if (options.oneofs) + object._block = "block"; + } + if (message.cluster != null && message.hasOwnProperty("cluster")) { + object.cluster = message.cluster; + if (options.oneofs) + object._cluster = "cluster"; + } + if (message.subBlock != null && message.hasOwnProperty("subBlock")) { + object.subBlock = message.subBlock; + if (options.oneofs) + object._subBlock = "subBlock"; + } + return object; + }; + + /** + * Converts this ReservationSlotPhysicalTopology to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ReservationSlotPhysicalTopology + * @instance + * @returns {Object.} JSON object + */ + ReservationSlotPhysicalTopology.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservationSlotPhysicalTopology + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ReservationSlotPhysicalTopology + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservationSlotPhysicalTopology.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ReservationSlotPhysicalTopology"; + }; + + return ReservationSlotPhysicalTopology; + })(); + + v1beta.ReservationSlotStatus = (function() { + + /** + * Properties of a ReservationSlotStatus. + * @memberof google.cloud.compute.v1beta + * @interface IReservationSlotStatus + * @property {google.cloud.compute.v1beta.IReservationSlotPhysicalTopology|null} [physicalTopology] ReservationSlotStatus physicalTopology + * @property {Array.|null} [rdmaIpAddresses] ReservationSlotStatus rdmaIpAddresses + * @property {Array.|null} [runningInstances] ReservationSlotStatus runningInstances + */ + + /** + * Constructs a new ReservationSlotStatus. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ReservationSlotStatus. + * @implements IReservationSlotStatus + * @constructor + * @param {google.cloud.compute.v1beta.IReservationSlotStatus=} [properties] Properties to set + */ + function ReservationSlotStatus(properties) { + this.rdmaIpAddresses = []; + this.runningInstances = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservationSlotStatus physicalTopology. + * @member {google.cloud.compute.v1beta.IReservationSlotPhysicalTopology|null|undefined} physicalTopology + * @memberof google.cloud.compute.v1beta.ReservationSlotStatus + * @instance + */ + ReservationSlotStatus.prototype.physicalTopology = null; + + /** + * ReservationSlotStatus rdmaIpAddresses. + * @member {Array.} rdmaIpAddresses + * @memberof google.cloud.compute.v1beta.ReservationSlotStatus + * @instance + */ + ReservationSlotStatus.prototype.rdmaIpAddresses = $util.emptyArray; + + /** + * ReservationSlotStatus runningInstances. + * @member {Array.} runningInstances + * @memberof google.cloud.compute.v1beta.ReservationSlotStatus + * @instance + */ + ReservationSlotStatus.prototype.runningInstances = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotStatus.prototype, "_physicalTopology", { + get: $util.oneOfGetter($oneOfFields = ["physicalTopology"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ReservationSlotStatus instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ReservationSlotStatus + * @static + * @param {google.cloud.compute.v1beta.IReservationSlotStatus=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ReservationSlotStatus} ReservationSlotStatus instance + */ + ReservationSlotStatus.create = function create(properties) { + return new ReservationSlotStatus(properties); + }; + + /** + * Encodes the specified ReservationSlotStatus message. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ReservationSlotStatus + * @static + * @param {google.cloud.compute.v1beta.IReservationSlotStatus} message ReservationSlotStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rdmaIpAddresses != null && message.rdmaIpAddresses.length) + for (var i = 0; i < message.rdmaIpAddresses.length; ++i) + writer.uint32(/* id 167842531, wireType 2 =*/1342740250).string(message.rdmaIpAddresses[i]); + if (message.physicalTopology != null && Object.hasOwnProperty.call(message, "physicalTopology")) + $root.google.cloud.compute.v1beta.ReservationSlotPhysicalTopology.encode(message.physicalTopology, writer.uint32(/* id 279778519, wireType 2 =*/2238228154).fork()).ldelim(); + if (message.runningInstances != null && message.runningInstances.length) + for (var i = 0; i < message.runningInstances.length; ++i) + writer.uint32(/* id 536292350, wireType 2 =*/4290338802).string(message.runningInstances[i]); + return writer; + }; + + /** + * Encodes the specified ReservationSlotStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ReservationSlotStatus + * @static + * @param {google.cloud.compute.v1beta.IReservationSlotStatus} message ReservationSlotStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservationSlotStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ReservationSlotStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ReservationSlotStatus} ReservationSlotStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotStatus.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ReservationSlotStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 279778519: { + message.physicalTopology = $root.google.cloud.compute.v1beta.ReservationSlotPhysicalTopology.decode(reader, reader.uint32()); + break; + } + case 167842531: { + if (!(message.rdmaIpAddresses && message.rdmaIpAddresses.length)) + message.rdmaIpAddresses = []; + message.rdmaIpAddresses.push(reader.string()); + break; + } + case 536292350: { + if (!(message.runningInstances && message.runningInstances.length)) + message.runningInstances = []; + message.runningInstances.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservationSlotStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ReservationSlotStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ReservationSlotStatus} ReservationSlotStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservationSlotStatus message. + * @function verify + * @memberof google.cloud.compute.v1beta.ReservationSlotStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservationSlotStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.physicalTopology != null && message.hasOwnProperty("physicalTopology")) { + properties._physicalTopology = 1; + { + var error = $root.google.cloud.compute.v1beta.ReservationSlotPhysicalTopology.verify(message.physicalTopology); + if (error) + return "physicalTopology." + error; + } + } + if (message.rdmaIpAddresses != null && message.hasOwnProperty("rdmaIpAddresses")) { + if (!Array.isArray(message.rdmaIpAddresses)) + return "rdmaIpAddresses: array expected"; + for (var i = 0; i < message.rdmaIpAddresses.length; ++i) + if (!$util.isString(message.rdmaIpAddresses[i])) + return "rdmaIpAddresses: string[] expected"; + } + if (message.runningInstances != null && message.hasOwnProperty("runningInstances")) { + if (!Array.isArray(message.runningInstances)) + return "runningInstances: array expected"; + for (var i = 0; i < message.runningInstances.length; ++i) + if (!$util.isString(message.runningInstances[i])) + return "runningInstances: string[] expected"; + } + return null; + }; + + /** + * Creates a ReservationSlotStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ReservationSlotStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ReservationSlotStatus} ReservationSlotStatus + */ + ReservationSlotStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ReservationSlotStatus) + return object; + var message = new $root.google.cloud.compute.v1beta.ReservationSlotStatus(); + if (object.physicalTopology != null) { + if (typeof object.physicalTopology !== "object") + throw TypeError(".google.cloud.compute.v1beta.ReservationSlotStatus.physicalTopology: object expected"); + message.physicalTopology = $root.google.cloud.compute.v1beta.ReservationSlotPhysicalTopology.fromObject(object.physicalTopology); + } + if (object.rdmaIpAddresses) { + if (!Array.isArray(object.rdmaIpAddresses)) + throw TypeError(".google.cloud.compute.v1beta.ReservationSlotStatus.rdmaIpAddresses: array expected"); + message.rdmaIpAddresses = []; + for (var i = 0; i < object.rdmaIpAddresses.length; ++i) + message.rdmaIpAddresses[i] = String(object.rdmaIpAddresses[i]); + } + if (object.runningInstances) { + if (!Array.isArray(object.runningInstances)) + throw TypeError(".google.cloud.compute.v1beta.ReservationSlotStatus.runningInstances: array expected"); + message.runningInstances = []; + for (var i = 0; i < object.runningInstances.length; ++i) + message.runningInstances[i] = String(object.runningInstances[i]); + } + return message; + }; + + /** + * Creates a plain object from a ReservationSlotStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ReservationSlotStatus + * @static + * @param {google.cloud.compute.v1beta.ReservationSlotStatus} message ReservationSlotStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservationSlotStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.rdmaIpAddresses = []; + object.runningInstances = []; + } + if (message.rdmaIpAddresses && message.rdmaIpAddresses.length) { + object.rdmaIpAddresses = []; + for (var j = 0; j < message.rdmaIpAddresses.length; ++j) + object.rdmaIpAddresses[j] = message.rdmaIpAddresses[j]; + } + if (message.physicalTopology != null && message.hasOwnProperty("physicalTopology")) { + object.physicalTopology = $root.google.cloud.compute.v1beta.ReservationSlotPhysicalTopology.toObject(message.physicalTopology, options); + if (options.oneofs) + object._physicalTopology = "physicalTopology"; + } + if (message.runningInstances && message.runningInstances.length) { + object.runningInstances = []; + for (var j = 0; j < message.runningInstances.length; ++j) + object.runningInstances[j] = message.runningInstances[j]; + } + return object; + }; + + /** + * Converts this ReservationSlotStatus to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ReservationSlotStatus + * @instance + * @returns {Object.} JSON object + */ + ReservationSlotStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservationSlotStatus + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ReservationSlotStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservationSlotStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ReservationSlotStatus"; + }; + + return ReservationSlotStatus; + })(); + + v1beta.ReservationSlotsGetResponse = (function() { + + /** + * Properties of a ReservationSlotsGetResponse. + * @memberof google.cloud.compute.v1beta + * @interface IReservationSlotsGetResponse + * @property {google.cloud.compute.v1beta.IReservationSlot|null} [resource] ReservationSlotsGetResponse resource + */ + + /** + * Constructs a new ReservationSlotsGetResponse. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ReservationSlotsGetResponse. + * @implements IReservationSlotsGetResponse + * @constructor + * @param {google.cloud.compute.v1beta.IReservationSlotsGetResponse=} [properties] Properties to set + */ + function ReservationSlotsGetResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservationSlotsGetResponse resource. + * @member {google.cloud.compute.v1beta.IReservationSlot|null|undefined} resource + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetResponse + * @instance + */ + ReservationSlotsGetResponse.prototype.resource = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotsGetResponse.prototype, "_resource", { + get: $util.oneOfGetter($oneOfFields = ["resource"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ReservationSlotsGetResponse instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetResponse + * @static + * @param {google.cloud.compute.v1beta.IReservationSlotsGetResponse=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ReservationSlotsGetResponse} ReservationSlotsGetResponse instance + */ + ReservationSlotsGetResponse.create = function create(properties) { + return new ReservationSlotsGetResponse(properties); + }; + + /** + * Encodes the specified ReservationSlotsGetResponse message. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotsGetResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetResponse + * @static + * @param {google.cloud.compute.v1beta.IReservationSlotsGetResponse} message ReservationSlotsGetResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotsGetResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + $root.google.cloud.compute.v1beta.ReservationSlot.encode(message.resource, writer.uint32(/* id 195806222, wireType 2 =*/1566449778).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ReservationSlotsGetResponse message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotsGetResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetResponse + * @static + * @param {google.cloud.compute.v1beta.IReservationSlotsGetResponse} message ReservationSlotsGetResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotsGetResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservationSlotsGetResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ReservationSlotsGetResponse} ReservationSlotsGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotsGetResponse.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ReservationSlotsGetResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 195806222: { + message.resource = $root.google.cloud.compute.v1beta.ReservationSlot.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservationSlotsGetResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ReservationSlotsGetResponse} ReservationSlotsGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotsGetResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservationSlotsGetResponse message. + * @function verify + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservationSlotsGetResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.resource != null && message.hasOwnProperty("resource")) { + properties._resource = 1; + { + var error = $root.google.cloud.compute.v1beta.ReservationSlot.verify(message.resource); + if (error) + return "resource." + error; + } + } + return null; + }; + + /** + * Creates a ReservationSlotsGetResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ReservationSlotsGetResponse} ReservationSlotsGetResponse + */ + ReservationSlotsGetResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ReservationSlotsGetResponse) + return object; + var message = new $root.google.cloud.compute.v1beta.ReservationSlotsGetResponse(); + if (object.resource != null) { + if (typeof object.resource !== "object") + throw TypeError(".google.cloud.compute.v1beta.ReservationSlotsGetResponse.resource: object expected"); + message.resource = $root.google.cloud.compute.v1beta.ReservationSlot.fromObject(object.resource); + } + return message; + }; + + /** + * Creates a plain object from a ReservationSlotsGetResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetResponse + * @static + * @param {google.cloud.compute.v1beta.ReservationSlotsGetResponse} message ReservationSlotsGetResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservationSlotsGetResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.resource != null && message.hasOwnProperty("resource")) { + object.resource = $root.google.cloud.compute.v1beta.ReservationSlot.toObject(message.resource, options); + if (options.oneofs) + object._resource = "resource"; + } + return object; + }; + + /** + * Converts this ReservationSlotsGetResponse to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetResponse + * @instance + * @returns {Object.} JSON object + */ + ReservationSlotsGetResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservationSlotsGetResponse + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservationSlotsGetResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ReservationSlotsGetResponse"; + }; + + return ReservationSlotsGetResponse; + })(); + + v1beta.ReservationSlotsListResponse = (function() { + + /** + * Properties of a ReservationSlotsListResponse. + * @memberof google.cloud.compute.v1beta + * @interface IReservationSlotsListResponse + * @property {string|null} [id] ReservationSlotsListResponse id + * @property {Array.|null} [items] ReservationSlotsListResponse items + * @property {string|null} [kind] ReservationSlotsListResponse kind + * @property {string|null} [nextPageToken] ReservationSlotsListResponse nextPageToken + * @property {string|null} [selfLink] ReservationSlotsListResponse selfLink + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] ReservationSlotsListResponse warning + */ + + /** + * Constructs a new ReservationSlotsListResponse. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ReservationSlotsListResponse. + * @implements IReservationSlotsListResponse + * @constructor + * @param {google.cloud.compute.v1beta.IReservationSlotsListResponse=} [properties] Properties to set + */ + function ReservationSlotsListResponse(properties) { + this.items = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservationSlotsListResponse id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1beta.ReservationSlotsListResponse + * @instance + */ + ReservationSlotsListResponse.prototype.id = null; + + /** + * ReservationSlotsListResponse items. + * @member {Array.} items + * @memberof google.cloud.compute.v1beta.ReservationSlotsListResponse + * @instance + */ + ReservationSlotsListResponse.prototype.items = $util.emptyArray; + + /** + * ReservationSlotsListResponse kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.ReservationSlotsListResponse + * @instance + */ + ReservationSlotsListResponse.prototype.kind = null; + + /** + * ReservationSlotsListResponse nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1beta.ReservationSlotsListResponse + * @instance + */ + ReservationSlotsListResponse.prototype.nextPageToken = null; + + /** + * ReservationSlotsListResponse selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.ReservationSlotsListResponse + * @instance + */ + ReservationSlotsListResponse.prototype.selfLink = null; + + /** + * ReservationSlotsListResponse warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.ReservationSlotsListResponse + * @instance + */ + ReservationSlotsListResponse.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotsListResponse.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotsListResponse.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotsListResponse.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotsListResponse.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotsListResponse.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ReservationSlotsListResponse instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ReservationSlotsListResponse + * @static + * @param {google.cloud.compute.v1beta.IReservationSlotsListResponse=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ReservationSlotsListResponse} ReservationSlotsListResponse instance + */ + ReservationSlotsListResponse.create = function create(properties) { + return new ReservationSlotsListResponse(properties); + }; + + /** + * Encodes the specified ReservationSlotsListResponse message. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotsListResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ReservationSlotsListResponse + * @static + * @param {google.cloud.compute.v1beta.IReservationSlotsListResponse} message ReservationSlotsListResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotsListResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1beta.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); + if (message.items != null && message.items.length) + for (var i = 0; i < message.items.length; ++i) + $root.google.cloud.compute.v1beta.ReservationSlot.encode(message.items[i], writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork()).ldelim(); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified ReservationSlotsListResponse message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotsListResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ReservationSlotsListResponse + * @static + * @param {google.cloud.compute.v1beta.IReservationSlotsListResponse} message ReservationSlotsListResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotsListResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservationSlotsListResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ReservationSlotsListResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ReservationSlotsListResponse} ReservationSlotsListResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotsListResponse.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ReservationSlotsListResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3355: { + message.id = reader.string(); + break; + } + case 100526016: { + if (!(message.items && message.items.length)) + message.items = []; + message.items.push($root.google.cloud.compute.v1beta.ReservationSlot.decode(reader, reader.uint32())); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 79797525: { + message.nextPageToken = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservationSlotsListResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ReservationSlotsListResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ReservationSlotsListResponse} ReservationSlotsListResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotsListResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservationSlotsListResponse message. + * @function verify + * @memberof google.cloud.compute.v1beta.ReservationSlotsListResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservationSlotsListResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!Array.isArray(message.items)) + return "items: array expected"; + for (var i = 0; i < message.items.length; ++i) { + var error = $root.google.cloud.compute.v1beta.ReservationSlot.verify(message.items[i]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a ReservationSlotsListResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ReservationSlotsListResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ReservationSlotsListResponse} ReservationSlotsListResponse + */ + ReservationSlotsListResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ReservationSlotsListResponse) + return object; + var message = new $root.google.cloud.compute.v1beta.ReservationSlotsListResponse(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (!Array.isArray(object.items)) + throw TypeError(".google.cloud.compute.v1beta.ReservationSlotsListResponse.items: array expected"); + message.items = []; + for (var i = 0; i < object.items.length; ++i) { + if (typeof object.items[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.ReservationSlotsListResponse.items: object expected"); + message.items[i] = $root.google.cloud.compute.v1beta.ReservationSlot.fromObject(object.items[i]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1beta.ReservationSlotsListResponse.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a ReservationSlotsListResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ReservationSlotsListResponse + * @static + * @param {google.cloud.compute.v1beta.ReservationSlotsListResponse} message ReservationSlotsListResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservationSlotsListResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.items = []; + if (message.id != null && message.hasOwnProperty("id")) { + object.id = message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + if (message.items && message.items.length) { + object.items = []; + for (var j = 0; j < message.items.length; ++j) + object.items[j] = $root.google.cloud.compute.v1beta.ReservationSlot.toObject(message.items[j], options); + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this ReservationSlotsListResponse to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ReservationSlotsListResponse + * @instance + * @returns {Object.} JSON object + */ + ReservationSlotsListResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservationSlotsListResponse + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ReservationSlotsListResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservationSlotsListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ReservationSlotsListResponse"; + }; + + return ReservationSlotsListResponse; + })(); + + v1beta.ReservationSubBlock = (function() { + + /** + * Properties of a ReservationSubBlock. + * @memberof google.cloud.compute.v1beta + * @interface IReservationSubBlock + * @property {google.cloud.compute.v1beta.IAcceleratorTopologiesInfo|null} [acceleratorTopologiesInfo] ReservationSubBlock acceleratorTopologiesInfo + * @property {number|null} [count] ReservationSubBlock count + * @property {string|null} [creationTimestamp] ReservationSubBlock creationTimestamp + * @property {google.cloud.compute.v1beta.IReservationSubBlockHealthInfo|null} [healthInfo] ReservationSubBlock healthInfo + * @property {number|Long|null} [id] ReservationSubBlock id + * @property {number|null} [inUseCount] ReservationSubBlock inUseCount + * @property {number|null} [inUseHostCount] ReservationSubBlock inUseHostCount + * @property {string|null} [kind] ReservationSubBlock kind + * @property {string|null} [name] ReservationSubBlock name + * @property {google.cloud.compute.v1beta.IReservationSubBlockPhysicalTopology|null} [physicalTopology] ReservationSubBlock physicalTopology + * @property {google.cloud.compute.v1beta.IGroupMaintenanceInfo|null} [reservationSubBlockMaintenance] ReservationSubBlock reservationSubBlockMaintenance + * @property {string|null} [selfLink] ReservationSubBlock selfLink + * @property {string|null} [selfLinkWithId] ReservationSubBlock selfLinkWithId + * @property {string|null} [status] ReservationSubBlock status + * @property {string|null} [zone] ReservationSubBlock zone + */ + + /** + * Constructs a new ReservationSubBlock. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ReservationSubBlock. + * @implements IReservationSubBlock + * @constructor + * @param {google.cloud.compute.v1beta.IReservationSubBlock=} [properties] Properties to set + */ + function ReservationSubBlock(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservationSubBlock acceleratorTopologiesInfo. + * @member {google.cloud.compute.v1beta.IAcceleratorTopologiesInfo|null|undefined} acceleratorTopologiesInfo + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.acceleratorTopologiesInfo = null; + + /** + * ReservationSubBlock count. + * @member {number|null|undefined} count + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.count = null; + + /** + * ReservationSubBlock creationTimestamp. + * @member {string|null|undefined} creationTimestamp + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.creationTimestamp = null; + + /** + * ReservationSubBlock healthInfo. + * @member {google.cloud.compute.v1beta.IReservationSubBlockHealthInfo|null|undefined} healthInfo + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.healthInfo = null; + + /** + * ReservationSubBlock id. + * @member {number|Long|null|undefined} id + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.id = null; + + /** + * ReservationSubBlock inUseCount. + * @member {number|null|undefined} inUseCount + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.inUseCount = null; + + /** + * ReservationSubBlock inUseHostCount. + * @member {number|null|undefined} inUseHostCount + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.inUseHostCount = null; + + /** + * ReservationSubBlock kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.kind = null; + + /** + * ReservationSubBlock name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.name = null; + + /** + * ReservationSubBlock physicalTopology. + * @member {google.cloud.compute.v1beta.IReservationSubBlockPhysicalTopology|null|undefined} physicalTopology + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.physicalTopology = null; + + /** + * ReservationSubBlock reservationSubBlockMaintenance. + * @member {google.cloud.compute.v1beta.IGroupMaintenanceInfo|null|undefined} reservationSubBlockMaintenance + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.reservationSubBlockMaintenance = null; + + /** + * ReservationSubBlock selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.selfLink = null; + + /** + * ReservationSubBlock selfLinkWithId. + * @member {string|null|undefined} selfLinkWithId + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.selfLinkWithId = null; + + /** + * ReservationSubBlock status. + * @member {string|null|undefined} status + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.status = null; + + /** + * ReservationSubBlock zone. + * @member {string|null|undefined} zone + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.zone = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_acceleratorTopologiesInfo", { + get: $util.oneOfGetter($oneOfFields = ["acceleratorTopologiesInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_count", { + get: $util.oneOfGetter($oneOfFields = ["count"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_creationTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_healthInfo", { + get: $util.oneOfGetter($oneOfFields = ["healthInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_inUseCount", { + get: $util.oneOfGetter($oneOfFields = ["inUseCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_inUseHostCount", { + get: $util.oneOfGetter($oneOfFields = ["inUseHostCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_physicalTopology", { + get: $util.oneOfGetter($oneOfFields = ["physicalTopology"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_reservationSubBlockMaintenance", { + get: $util.oneOfGetter($oneOfFields = ["reservationSubBlockMaintenance"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_selfLinkWithId", { + get: $util.oneOfGetter($oneOfFields = ["selfLinkWithId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_status", { + get: $util.oneOfGetter($oneOfFields = ["status"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_zone", { + get: $util.oneOfGetter($oneOfFields = ["zone"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ReservationSubBlock instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @static + * @param {google.cloud.compute.v1beta.IReservationSubBlock=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ReservationSubBlock} ReservationSubBlock instance + */ + ReservationSubBlock.create = function create(properties) { + return new ReservationSubBlock(properties); + }; + + /** + * Encodes the specified ReservationSubBlock message. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSubBlock.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @static + * @param {google.cloud.compute.v1beta.IReservationSubBlock} message ReservationSubBlock message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSubBlock.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 0 =*/26840).uint64(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) + writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.selfLinkWithId != null && Object.hasOwnProperty.call(message, "selfLinkWithId")) + writer.uint32(/* id 44520962, wireType 2 =*/356167698).string(message.selfLinkWithId); + if (message.acceleratorTopologiesInfo != null && Object.hasOwnProperty.call(message, "acceleratorTopologiesInfo")) + $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfo.encode(message.acceleratorTopologiesInfo, writer.uint32(/* id 84833420, wireType 2 =*/678667362).fork()).ldelim(); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 94851343, wireType 0 =*/758810744).int32(message.count); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 181260274, wireType 2 =*/1450082194).string(message.status); + if (message.healthInfo != null && Object.hasOwnProperty.call(message, "healthInfo")) + $root.google.cloud.compute.v1beta.ReservationSubBlockHealthInfo.encode(message.healthInfo, writer.uint32(/* id 235287729, wireType 2 =*/1882301834).fork()).ldelim(); + if (message.physicalTopology != null && Object.hasOwnProperty.call(message, "physicalTopology")) + $root.google.cloud.compute.v1beta.ReservationSubBlockPhysicalTopology.encode(message.physicalTopology, writer.uint32(/* id 279778519, wireType 2 =*/2238228154).fork()).ldelim(); + if (message.inUseHostCount != null && Object.hasOwnProperty.call(message, "inUseHostCount")) + writer.uint32(/* id 364069834, wireType 0 =*/2912558672).int32(message.inUseHostCount); + if (message.reservationSubBlockMaintenance != null && Object.hasOwnProperty.call(message, "reservationSubBlockMaintenance")) + $root.google.cloud.compute.v1beta.GroupMaintenanceInfo.encode(message.reservationSubBlockMaintenance, writer.uint32(/* id 377005551, wireType 2 =*/3016044410).fork()).ldelim(); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + if (message.inUseCount != null && Object.hasOwnProperty.call(message, "inUseCount")) + writer.uint32(/* id 493458877, wireType 0 =*/3947671016).int32(message.inUseCount); + return writer; + }; + + /** + * Encodes the specified ReservationSubBlock message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSubBlock.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @static + * @param {google.cloud.compute.v1beta.IReservationSubBlock} message ReservationSubBlock message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSubBlock.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservationSubBlock message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ReservationSubBlock} ReservationSubBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSubBlock.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ReservationSubBlock(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 84833420: { + message.acceleratorTopologiesInfo = $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfo.decode(reader, reader.uint32()); + break; + } + case 94851343: { + message.count = reader.int32(); + break; + } + case 30525366: { + message.creationTimestamp = reader.string(); + break; + } + case 235287729: { + message.healthInfo = $root.google.cloud.compute.v1beta.ReservationSubBlockHealthInfo.decode(reader, reader.uint32()); + break; + } + case 3355: { + message.id = reader.uint64(); + break; + } + case 493458877: { + message.inUseCount = reader.int32(); + break; + } + case 364069834: { + message.inUseHostCount = reader.int32(); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 3373707: { + message.name = reader.string(); + break; + } + case 279778519: { + message.physicalTopology = $root.google.cloud.compute.v1beta.ReservationSubBlockPhysicalTopology.decode(reader, reader.uint32()); + break; + } + case 377005551: { + message.reservationSubBlockMaintenance = $root.google.cloud.compute.v1beta.GroupMaintenanceInfo.decode(reader, reader.uint32()); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 44520962: { + message.selfLinkWithId = reader.string(); + break; + } + case 181260274: { + message.status = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservationSubBlock message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ReservationSubBlock} ReservationSubBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSubBlock.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservationSubBlock message. + * @function verify + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservationSubBlock.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.acceleratorTopologiesInfo != null && message.hasOwnProperty("acceleratorTopologiesInfo")) { + properties._acceleratorTopologiesInfo = 1; + { + var error = $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfo.verify(message.acceleratorTopologiesInfo); + if (error) + return "acceleratorTopologiesInfo." + error; + } + } + if (message.count != null && message.hasOwnProperty("count")) { + properties._count = 1; + if (!$util.isInteger(message.count)) + return "count: integer expected"; + } + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + properties._creationTimestamp = 1; + if (!$util.isString(message.creationTimestamp)) + return "creationTimestamp: string expected"; + } + if (message.healthInfo != null && message.hasOwnProperty("healthInfo")) { + properties._healthInfo = 1; + { + var error = $root.google.cloud.compute.v1beta.ReservationSubBlockHealthInfo.verify(message.healthInfo); + if (error) + return "healthInfo." + error; + } + } + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; + } + if (message.inUseCount != null && message.hasOwnProperty("inUseCount")) { + properties._inUseCount = 1; + if (!$util.isInteger(message.inUseCount)) + return "inUseCount: integer expected"; + } + if (message.inUseHostCount != null && message.hasOwnProperty("inUseHostCount")) { + properties._inUseHostCount = 1; + if (!$util.isInteger(message.inUseHostCount)) + return "inUseHostCount: integer expected"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.name != null && message.hasOwnProperty("name")) { + properties._name = 1; + if (!$util.isString(message.name)) + return "name: string expected"; + } + if (message.physicalTopology != null && message.hasOwnProperty("physicalTopology")) { + properties._physicalTopology = 1; + { + var error = $root.google.cloud.compute.v1beta.ReservationSubBlockPhysicalTopology.verify(message.physicalTopology); + if (error) + return "physicalTopology." + error; + } + } + if (message.reservationSubBlockMaintenance != null && message.hasOwnProperty("reservationSubBlockMaintenance")) { + properties._reservationSubBlockMaintenance = 1; + { + var error = $root.google.cloud.compute.v1beta.GroupMaintenanceInfo.verify(message.reservationSubBlockMaintenance); + if (error) + return "reservationSubBlockMaintenance." + error; + } + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + properties._selfLinkWithId = 1; + if (!$util.isString(message.selfLinkWithId)) + return "selfLinkWithId: string expected"; + } + if (message.status != null && message.hasOwnProperty("status")) { + properties._status = 1; + if (!$util.isString(message.status)) + return "status: string expected"; + } + if (message.zone != null && message.hasOwnProperty("zone")) { + properties._zone = 1; + if (!$util.isString(message.zone)) + return "zone: string expected"; + } + return null; + }; + + /** + * Creates a ReservationSubBlock message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ReservationSubBlock} ReservationSubBlock + */ + ReservationSubBlock.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ReservationSubBlock) + return object; + var message = new $root.google.cloud.compute.v1beta.ReservationSubBlock(); + if (object.acceleratorTopologiesInfo != null) { + if (typeof object.acceleratorTopologiesInfo !== "object") + throw TypeError(".google.cloud.compute.v1beta.ReservationSubBlock.acceleratorTopologiesInfo: object expected"); + message.acceleratorTopologiesInfo = $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfo.fromObject(object.acceleratorTopologiesInfo); + } + if (object.count != null) + message.count = object.count | 0; + if (object.creationTimestamp != null) + message.creationTimestamp = String(object.creationTimestamp); + if (object.healthInfo != null) { + if (typeof object.healthInfo !== "object") + throw TypeError(".google.cloud.compute.v1beta.ReservationSubBlock.healthInfo: object expected"); + message.healthInfo = $root.google.cloud.compute.v1beta.ReservationSubBlockHealthInfo.fromObject(object.healthInfo); + } + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = true; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + message.id = object.id; + else if (typeof object.id === "object") + message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true); + if (object.inUseCount != null) + message.inUseCount = object.inUseCount | 0; + if (object.inUseHostCount != null) + message.inUseHostCount = object.inUseHostCount | 0; + if (object.kind != null) + message.kind = String(object.kind); + if (object.name != null) + message.name = String(object.name); + if (object.physicalTopology != null) { + if (typeof object.physicalTopology !== "object") + throw TypeError(".google.cloud.compute.v1beta.ReservationSubBlock.physicalTopology: object expected"); + message.physicalTopology = $root.google.cloud.compute.v1beta.ReservationSubBlockPhysicalTopology.fromObject(object.physicalTopology); + } + if (object.reservationSubBlockMaintenance != null) { + if (typeof object.reservationSubBlockMaintenance !== "object") + throw TypeError(".google.cloud.compute.v1beta.ReservationSubBlock.reservationSubBlockMaintenance: object expected"); + message.reservationSubBlockMaintenance = $root.google.cloud.compute.v1beta.GroupMaintenanceInfo.fromObject(object.reservationSubBlockMaintenance); + } + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.selfLinkWithId != null) + message.selfLinkWithId = String(object.selfLinkWithId); + if (object.status != null) + message.status = String(object.status); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a ReservationSubBlock message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @static + * @param {google.cloud.compute.v1beta.ReservationSubBlock} message ReservationSubBlock + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservationSubBlock.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1163786,6 +1180120,7 @@ * @property {boolean|null} [enableOsInventoryMetadataValue] ResourceStatusEffectiveInstanceMetadata enableOsInventoryMetadataValue * @property {boolean|null} [enableOsconfigMetadataValue] ResourceStatusEffectiveInstanceMetadata enableOsconfigMetadataValue * @property {boolean|null} [enableOsloginMetadataValue] ResourceStatusEffectiveInstanceMetadata enableOsloginMetadataValue + * @property {boolean|null} [gceContainerDeclarationMetadataValue] ResourceStatusEffectiveInstanceMetadata gceContainerDeclarationMetadataValue * @property {boolean|null} [serialPortEnableMetadataValue] ResourceStatusEffectiveInstanceMetadata serialPortEnableMetadataValue * @property {boolean|null} [serialPortLoggingEnableMetadataValue] ResourceStatusEffectiveInstanceMetadata serialPortLoggingEnableMetadataValue * @property {string|null} [vmDnsSettingMetadataValue] ResourceStatusEffectiveInstanceMetadata vmDnsSettingMetadataValue @@ -1163846,6 +1180181,14 @@ */ ResourceStatusEffectiveInstanceMetadata.prototype.enableOsloginMetadataValue = null; + /** + * ResourceStatusEffectiveInstanceMetadata gceContainerDeclarationMetadataValue. + * @member {boolean|null|undefined} gceContainerDeclarationMetadataValue + * @memberof google.cloud.compute.v1beta.ResourceStatusEffectiveInstanceMetadata + * @instance + */ + ResourceStatusEffectiveInstanceMetadata.prototype.gceContainerDeclarationMetadataValue = null; + /** * ResourceStatusEffectiveInstanceMetadata serialPortEnableMetadataValue. * @member {boolean|null|undefined} serialPortEnableMetadataValue @@ -1163903,6 +1180246,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ResourceStatusEffectiveInstanceMetadata.prototype, "_gceContainerDeclarationMetadataValue", { + get: $util.oneOfGetter($oneOfFields = ["gceContainerDeclarationMetadataValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(ResourceStatusEffectiveInstanceMetadata.prototype, "_serialPortEnableMetadataValue", { get: $util.oneOfGetter($oneOfFields = ["serialPortEnableMetadataValue"]), @@ -1163947,6 +1180296,8 @@ writer = $Writer.create(); if (message.enableOsloginMetadataValue != null && Object.hasOwnProperty.call(message, "enableOsloginMetadataValue")) writer.uint32(/* id 216603159, wireType 0 =*/1732825272).bool(message.enableOsloginMetadataValue); + if (message.gceContainerDeclarationMetadataValue != null && Object.hasOwnProperty.call(message, "gceContainerDeclarationMetadataValue")) + writer.uint32(/* id 219617210, wireType 0 =*/1756937680).bool(message.gceContainerDeclarationMetadataValue); if (message.serialPortLoggingEnableMetadataValue != null && Object.hasOwnProperty.call(message, "serialPortLoggingEnableMetadataValue")) writer.uint32(/* id 311813290, wireType 0 =*/2494506320).bool(message.serialPortLoggingEnableMetadataValue); if (message.blockProjectSshKeysMetadataValue != null && Object.hasOwnProperty.call(message, "blockProjectSshKeysMetadataValue")) @@ -1164017,6 +1180368,10 @@ message.enableOsloginMetadataValue = reader.bool(); break; } + case 219617210: { + message.gceContainerDeclarationMetadataValue = reader.bool(); + break; + } case 430536330: { message.serialPortEnableMetadataValue = reader.bool(); break; @@ -1164090,6 +1180445,11 @@ if (typeof message.enableOsloginMetadataValue !== "boolean") return "enableOsloginMetadataValue: boolean expected"; } + if (message.gceContainerDeclarationMetadataValue != null && message.hasOwnProperty("gceContainerDeclarationMetadataValue")) { + properties._gceContainerDeclarationMetadataValue = 1; + if (typeof message.gceContainerDeclarationMetadataValue !== "boolean") + return "gceContainerDeclarationMetadataValue: boolean expected"; + } if (message.serialPortEnableMetadataValue != null && message.hasOwnProperty("serialPortEnableMetadataValue")) { properties._serialPortEnableMetadataValue = 1; if (typeof message.serialPortEnableMetadataValue !== "boolean") @@ -1164130,6 +1180490,8 @@ message.enableOsconfigMetadataValue = Boolean(object.enableOsconfigMetadataValue); if (object.enableOsloginMetadataValue != null) message.enableOsloginMetadataValue = Boolean(object.enableOsloginMetadataValue); + if (object.gceContainerDeclarationMetadataValue != null) + message.gceContainerDeclarationMetadataValue = Boolean(object.gceContainerDeclarationMetadataValue); if (object.serialPortEnableMetadataValue != null) message.serialPortEnableMetadataValue = Boolean(object.serialPortEnableMetadataValue); if (object.serialPortLoggingEnableMetadataValue != null) @@ -1164157,6 +1180519,11 @@ if (options.oneofs) object._enableOsloginMetadataValue = "enableOsloginMetadataValue"; } + if (message.gceContainerDeclarationMetadataValue != null && message.hasOwnProperty("gceContainerDeclarationMetadataValue")) { + object.gceContainerDeclarationMetadataValue = message.gceContainerDeclarationMetadataValue; + if (options.oneofs) + object._gceContainerDeclarationMetadataValue = "gceContainerDeclarationMetadataValue"; + } if (message.serialPortLoggingEnableMetadataValue != null && message.hasOwnProperty("serialPortLoggingEnableMetadataValue")) { object.serialPortLoggingEnableMetadataValue = message.serialPortLoggingEnableMetadataValue; if (options.oneofs) @@ -1184978,6 +1201345,263 @@ return RouterStatusResponse; })(); + v1beta.RoutersGetNamedSetResponse = (function() { + + /** + * Properties of a RoutersGetNamedSetResponse. + * @memberof google.cloud.compute.v1beta + * @interface IRoutersGetNamedSetResponse + * @property {string|null} [etag] RoutersGetNamedSetResponse etag + * @property {google.cloud.compute.v1beta.INamedSet|null} [resource] RoutersGetNamedSetResponse resource + */ + + /** + * Constructs a new RoutersGetNamedSetResponse. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a RoutersGetNamedSetResponse. + * @implements IRoutersGetNamedSetResponse + * @constructor + * @param {google.cloud.compute.v1beta.IRoutersGetNamedSetResponse=} [properties] Properties to set + */ + function RoutersGetNamedSetResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RoutersGetNamedSetResponse etag. + * @member {string|null|undefined} etag + * @memberof google.cloud.compute.v1beta.RoutersGetNamedSetResponse + * @instance + */ + RoutersGetNamedSetResponse.prototype.etag = null; + + /** + * RoutersGetNamedSetResponse resource. + * @member {google.cloud.compute.v1beta.INamedSet|null|undefined} resource + * @memberof google.cloud.compute.v1beta.RoutersGetNamedSetResponse + * @instance + */ + RoutersGetNamedSetResponse.prototype.resource = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RoutersGetNamedSetResponse.prototype, "_etag", { + get: $util.oneOfGetter($oneOfFields = ["etag"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RoutersGetNamedSetResponse.prototype, "_resource", { + get: $util.oneOfGetter($oneOfFields = ["resource"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new RoutersGetNamedSetResponse instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.RoutersGetNamedSetResponse + * @static + * @param {google.cloud.compute.v1beta.IRoutersGetNamedSetResponse=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.RoutersGetNamedSetResponse} RoutersGetNamedSetResponse instance + */ + RoutersGetNamedSetResponse.create = function create(properties) { + return new RoutersGetNamedSetResponse(properties); + }; + + /** + * Encodes the specified RoutersGetNamedSetResponse message. Does not implicitly {@link google.cloud.compute.v1beta.RoutersGetNamedSetResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.RoutersGetNamedSetResponse + * @static + * @param {google.cloud.compute.v1beta.IRoutersGetNamedSetResponse} message RoutersGetNamedSetResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RoutersGetNamedSetResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3123477, wireType 2 =*/24987818).string(message.etag); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + $root.google.cloud.compute.v1beta.NamedSet.encode(message.resource, writer.uint32(/* id 195806222, wireType 2 =*/1566449778).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RoutersGetNamedSetResponse message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.RoutersGetNamedSetResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.RoutersGetNamedSetResponse + * @static + * @param {google.cloud.compute.v1beta.IRoutersGetNamedSetResponse} message RoutersGetNamedSetResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RoutersGetNamedSetResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RoutersGetNamedSetResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.RoutersGetNamedSetResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.RoutersGetNamedSetResponse} RoutersGetNamedSetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RoutersGetNamedSetResponse.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.RoutersGetNamedSetResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3123477: { + message.etag = reader.string(); + break; + } + case 195806222: { + message.resource = $root.google.cloud.compute.v1beta.NamedSet.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RoutersGetNamedSetResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.RoutersGetNamedSetResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.RoutersGetNamedSetResponse} RoutersGetNamedSetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RoutersGetNamedSetResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RoutersGetNamedSetResponse message. + * @function verify + * @memberof google.cloud.compute.v1beta.RoutersGetNamedSetResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RoutersGetNamedSetResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.etag != null && message.hasOwnProperty("etag")) { + properties._etag = 1; + if (!$util.isString(message.etag)) + return "etag: string expected"; + } + if (message.resource != null && message.hasOwnProperty("resource")) { + properties._resource = 1; + { + var error = $root.google.cloud.compute.v1beta.NamedSet.verify(message.resource); + if (error) + return "resource." + error; + } + } + return null; + }; + + /** + * Creates a RoutersGetNamedSetResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.RoutersGetNamedSetResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.RoutersGetNamedSetResponse} RoutersGetNamedSetResponse + */ + RoutersGetNamedSetResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.RoutersGetNamedSetResponse) + return object; + var message = new $root.google.cloud.compute.v1beta.RoutersGetNamedSetResponse(); + if (object.etag != null) + message.etag = String(object.etag); + if (object.resource != null) { + if (typeof object.resource !== "object") + throw TypeError(".google.cloud.compute.v1beta.RoutersGetNamedSetResponse.resource: object expected"); + message.resource = $root.google.cloud.compute.v1beta.NamedSet.fromObject(object.resource); + } + return message; + }; + + /** + * Creates a plain object from a RoutersGetNamedSetResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.RoutersGetNamedSetResponse + * @static + * @param {google.cloud.compute.v1beta.RoutersGetNamedSetResponse} message RoutersGetNamedSetResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RoutersGetNamedSetResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.etag != null && message.hasOwnProperty("etag")) { + object.etag = message.etag; + if (options.oneofs) + object._etag = "etag"; + } + if (message.resource != null && message.hasOwnProperty("resource")) { + object.resource = $root.google.cloud.compute.v1beta.NamedSet.toObject(message.resource, options); + if (options.oneofs) + object._resource = "resource"; + } + return object; + }; + + /** + * Converts this RoutersGetNamedSetResponse to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.RoutersGetNamedSetResponse + * @instance + * @returns {Object.} JSON object + */ + RoutersGetNamedSetResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RoutersGetNamedSetResponse + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.RoutersGetNamedSetResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RoutersGetNamedSetResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.RoutersGetNamedSetResponse"; + }; + + return RoutersGetNamedSetResponse; + })(); + v1beta.RoutersGetRoutePolicyResponse = (function() { /** @@ -1185461,30 +1202085,504 @@ }; /** - * Decodes a RoutersListBgpRoutes message from the specified reader or buffer, length delimited. + * Decodes a RoutersListBgpRoutes message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.RoutersListBgpRoutes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.RoutersListBgpRoutes} RoutersListBgpRoutes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RoutersListBgpRoutes.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RoutersListBgpRoutes message. + * @function verify + * @memberof google.cloud.compute.v1beta.RoutersListBgpRoutes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RoutersListBgpRoutes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.etag != null && message.hasOwnProperty("etag")) { + properties._etag = 1; + if (!$util.isString(message.etag)) + return "etag: string expected"; + } + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.result != null && message.hasOwnProperty("result")) { + if (!Array.isArray(message.result)) + return "result: array expected"; + for (var i = 0; i < message.result.length; ++i) { + var error = $root.google.cloud.compute.v1beta.BgpRoute.verify(message.result[i]); + if (error) + return "result." + error; + } + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.unreachables != null && message.hasOwnProperty("unreachables")) { + if (!Array.isArray(message.unreachables)) + return "unreachables: array expected"; + for (var i = 0; i < message.unreachables.length; ++i) + if (!$util.isString(message.unreachables[i])) + return "unreachables: string[] expected"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a RoutersListBgpRoutes message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.RoutersListBgpRoutes + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.RoutersListBgpRoutes} RoutersListBgpRoutes + */ + RoutersListBgpRoutes.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.RoutersListBgpRoutes) + return object; + var message = new $root.google.cloud.compute.v1beta.RoutersListBgpRoutes(); + if (object.etag != null) + message.etag = String(object.etag); + if (object.id != null) + message.id = String(object.id); + if (object.kind != null) + message.kind = String(object.kind); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.result) { + if (!Array.isArray(object.result)) + throw TypeError(".google.cloud.compute.v1beta.RoutersListBgpRoutes.result: array expected"); + message.result = []; + for (var i = 0; i < object.result.length; ++i) { + if (typeof object.result[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.RoutersListBgpRoutes.result: object expected"); + message.result[i] = $root.google.cloud.compute.v1beta.BgpRoute.fromObject(object.result[i]); + } + } + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.unreachables) { + if (!Array.isArray(object.unreachables)) + throw TypeError(".google.cloud.compute.v1beta.RoutersListBgpRoutes.unreachables: array expected"); + message.unreachables = []; + for (var i = 0; i < object.unreachables.length; ++i) + message.unreachables[i] = String(object.unreachables[i]); + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1beta.RoutersListBgpRoutes.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a RoutersListBgpRoutes message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.RoutersListBgpRoutes + * @static + * @param {google.cloud.compute.v1beta.RoutersListBgpRoutes} message RoutersListBgpRoutes + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RoutersListBgpRoutes.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.result = []; + object.unreachables = []; + } + if (message.id != null && message.hasOwnProperty("id")) { + object.id = message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.etag != null && message.hasOwnProperty("etag")) { + object.etag = message.etag; + if (options.oneofs) + object._etag = "etag"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + if (message.result && message.result.length) { + object.result = []; + for (var j = 0; j < message.result.length; ++j) + object.result[j] = $root.google.cloud.compute.v1beta.BgpRoute.toObject(message.result[j], options); + } + if (message.unreachables && message.unreachables.length) { + object.unreachables = []; + for (var j = 0; j < message.unreachables.length; ++j) + object.unreachables[j] = message.unreachables[j]; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this RoutersListBgpRoutes to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.RoutersListBgpRoutes + * @instance + * @returns {Object.} JSON object + */ + RoutersListBgpRoutes.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RoutersListBgpRoutes + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.RoutersListBgpRoutes + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RoutersListBgpRoutes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.RoutersListBgpRoutes"; + }; + + return RoutersListBgpRoutes; + })(); + + v1beta.RoutersListNamedSets = (function() { + + /** + * Properties of a RoutersListNamedSets. + * @memberof google.cloud.compute.v1beta + * @interface IRoutersListNamedSets + * @property {string|null} [etag] RoutersListNamedSets etag + * @property {string|null} [id] RoutersListNamedSets id + * @property {string|null} [kind] RoutersListNamedSets kind + * @property {string|null} [nextPageToken] RoutersListNamedSets nextPageToken + * @property {Array.|null} [result] RoutersListNamedSets result + * @property {string|null} [selfLink] RoutersListNamedSets selfLink + * @property {Array.|null} [unreachables] RoutersListNamedSets unreachables + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] RoutersListNamedSets warning + */ + + /** + * Constructs a new RoutersListNamedSets. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a RoutersListNamedSets. + * @implements IRoutersListNamedSets + * @constructor + * @param {google.cloud.compute.v1beta.IRoutersListNamedSets=} [properties] Properties to set + */ + function RoutersListNamedSets(properties) { + this.result = []; + this.unreachables = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RoutersListNamedSets etag. + * @member {string|null|undefined} etag + * @memberof google.cloud.compute.v1beta.RoutersListNamedSets + * @instance + */ + RoutersListNamedSets.prototype.etag = null; + + /** + * RoutersListNamedSets id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1beta.RoutersListNamedSets + * @instance + */ + RoutersListNamedSets.prototype.id = null; + + /** + * RoutersListNamedSets kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.RoutersListNamedSets + * @instance + */ + RoutersListNamedSets.prototype.kind = null; + + /** + * RoutersListNamedSets nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1beta.RoutersListNamedSets + * @instance + */ + RoutersListNamedSets.prototype.nextPageToken = null; + + /** + * RoutersListNamedSets result. + * @member {Array.} result + * @memberof google.cloud.compute.v1beta.RoutersListNamedSets + * @instance + */ + RoutersListNamedSets.prototype.result = $util.emptyArray; + + /** + * RoutersListNamedSets selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.RoutersListNamedSets + * @instance + */ + RoutersListNamedSets.prototype.selfLink = null; + + /** + * RoutersListNamedSets unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1beta.RoutersListNamedSets + * @instance + */ + RoutersListNamedSets.prototype.unreachables = $util.emptyArray; + + /** + * RoutersListNamedSets warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.RoutersListNamedSets + * @instance + */ + RoutersListNamedSets.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RoutersListNamedSets.prototype, "_etag", { + get: $util.oneOfGetter($oneOfFields = ["etag"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RoutersListNamedSets.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RoutersListNamedSets.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RoutersListNamedSets.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RoutersListNamedSets.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RoutersListNamedSets.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new RoutersListNamedSets instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.RoutersListNamedSets + * @static + * @param {google.cloud.compute.v1beta.IRoutersListNamedSets=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.RoutersListNamedSets} RoutersListNamedSets instance + */ + RoutersListNamedSets.create = function create(properties) { + return new RoutersListNamedSets(properties); + }; + + /** + * Encodes the specified RoutersListNamedSets message. Does not implicitly {@link google.cloud.compute.v1beta.RoutersListNamedSets.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.RoutersListNamedSets + * @static + * @param {google.cloud.compute.v1beta.IRoutersListNamedSets} message RoutersListNamedSets message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RoutersListNamedSets.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3123477, wireType 2 =*/24987818).string(message.etag); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1beta.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); + if (message.result != null && message.result.length) + for (var i = 0; i < message.result.length; ++i) + $root.google.cloud.compute.v1beta.NamedSet.encode(message.result[i], writer.uint32(/* id 139315229, wireType 2 =*/1114521834).fork()).ldelim(); + if (message.unreachables != null && message.unreachables.length) + for (var i = 0; i < message.unreachables.length; ++i) + writer.uint32(/* id 243372063, wireType 2 =*/1946976506).string(message.unreachables[i]); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified RoutersListNamedSets message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.RoutersListNamedSets.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.RoutersListNamedSets + * @static + * @param {google.cloud.compute.v1beta.IRoutersListNamedSets} message RoutersListNamedSets message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RoutersListNamedSets.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RoutersListNamedSets message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.RoutersListNamedSets + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.RoutersListNamedSets} RoutersListNamedSets + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RoutersListNamedSets.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.RoutersListNamedSets(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3123477: { + message.etag = reader.string(); + break; + } + case 3355: { + message.id = reader.string(); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 79797525: { + message.nextPageToken = reader.string(); + break; + } + case 139315229: { + if (!(message.result && message.result.length)) + message.result = []; + message.result.push($root.google.cloud.compute.v1beta.NamedSet.decode(reader, reader.uint32())); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 243372063: { + if (!(message.unreachables && message.unreachables.length)) + message.unreachables = []; + message.unreachables.push(reader.string()); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RoutersListNamedSets message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.RoutersListBgpRoutes + * @memberof google.cloud.compute.v1beta.RoutersListNamedSets * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.RoutersListBgpRoutes} RoutersListBgpRoutes + * @returns {google.cloud.compute.v1beta.RoutersListNamedSets} RoutersListNamedSets * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoutersListBgpRoutes.decodeDelimited = function decodeDelimited(reader) { + RoutersListNamedSets.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RoutersListBgpRoutes message. + * Verifies a RoutersListNamedSets message. * @function verify - * @memberof google.cloud.compute.v1beta.RoutersListBgpRoutes + * @memberof google.cloud.compute.v1beta.RoutersListNamedSets * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoutersListBgpRoutes.verify = function verify(message) { + RoutersListNamedSets.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -1185512,7 +1202610,7 @@ if (!Array.isArray(message.result)) return "result: array expected"; for (var i = 0; i < message.result.length; ++i) { - var error = $root.google.cloud.compute.v1beta.BgpRoute.verify(message.result[i]); + var error = $root.google.cloud.compute.v1beta.NamedSet.verify(message.result[i]); if (error) return "result." + error; } @@ -1185541,17 +1202639,17 @@ }; /** - * Creates a RoutersListBgpRoutes message from a plain object. Also converts values to their respective internal types. + * Creates a RoutersListNamedSets message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.RoutersListBgpRoutes + * @memberof google.cloud.compute.v1beta.RoutersListNamedSets * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.RoutersListBgpRoutes} RoutersListBgpRoutes + * @returns {google.cloud.compute.v1beta.RoutersListNamedSets} RoutersListNamedSets */ - RoutersListBgpRoutes.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.RoutersListBgpRoutes) + RoutersListNamedSets.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.RoutersListNamedSets) return object; - var message = new $root.google.cloud.compute.v1beta.RoutersListBgpRoutes(); + var message = new $root.google.cloud.compute.v1beta.RoutersListNamedSets(); if (object.etag != null) message.etag = String(object.etag); if (object.id != null) @@ -1185562,41 +1202660,41 @@ message.nextPageToken = String(object.nextPageToken); if (object.result) { if (!Array.isArray(object.result)) - throw TypeError(".google.cloud.compute.v1beta.RoutersListBgpRoutes.result: array expected"); + throw TypeError(".google.cloud.compute.v1beta.RoutersListNamedSets.result: array expected"); message.result = []; for (var i = 0; i < object.result.length; ++i) { if (typeof object.result[i] !== "object") - throw TypeError(".google.cloud.compute.v1beta.RoutersListBgpRoutes.result: object expected"); - message.result[i] = $root.google.cloud.compute.v1beta.BgpRoute.fromObject(object.result[i]); + throw TypeError(".google.cloud.compute.v1beta.RoutersListNamedSets.result: object expected"); + message.result[i] = $root.google.cloud.compute.v1beta.NamedSet.fromObject(object.result[i]); } } if (object.selfLink != null) message.selfLink = String(object.selfLink); if (object.unreachables) { if (!Array.isArray(object.unreachables)) - throw TypeError(".google.cloud.compute.v1beta.RoutersListBgpRoutes.unreachables: array expected"); + throw TypeError(".google.cloud.compute.v1beta.RoutersListNamedSets.unreachables: array expected"); message.unreachables = []; for (var i = 0; i < object.unreachables.length; ++i) message.unreachables[i] = String(object.unreachables[i]); } if (object.warning != null) { if (typeof object.warning !== "object") - throw TypeError(".google.cloud.compute.v1beta.RoutersListBgpRoutes.warning: object expected"); + throw TypeError(".google.cloud.compute.v1beta.RoutersListNamedSets.warning: object expected"); message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); } return message; }; /** - * Creates a plain object from a RoutersListBgpRoutes message. Also converts values to other types if specified. + * Creates a plain object from a RoutersListNamedSets message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.RoutersListBgpRoutes + * @memberof google.cloud.compute.v1beta.RoutersListNamedSets * @static - * @param {google.cloud.compute.v1beta.RoutersListBgpRoutes} message RoutersListBgpRoutes + * @param {google.cloud.compute.v1beta.RoutersListNamedSets} message RoutersListNamedSets * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoutersListBgpRoutes.toObject = function toObject(message, options) { + RoutersListNamedSets.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1185632,7 +1202730,7 @@ if (message.result && message.result.length) { object.result = []; for (var j = 0; j < message.result.length; ++j) - object.result[j] = $root.google.cloud.compute.v1beta.BgpRoute.toObject(message.result[j], options); + object.result[j] = $root.google.cloud.compute.v1beta.NamedSet.toObject(message.result[j], options); } if (message.unreachables && message.unreachables.length) { object.unreachables = []; @@ -1185648,32 +1202746,32 @@ }; /** - * Converts this RoutersListBgpRoutes to JSON. + * Converts this RoutersListNamedSets to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.RoutersListBgpRoutes + * @memberof google.cloud.compute.v1beta.RoutersListNamedSets * @instance * @returns {Object.} JSON object */ - RoutersListBgpRoutes.prototype.toJSON = function toJSON() { + RoutersListNamedSets.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RoutersListBgpRoutes + * Gets the default type url for RoutersListNamedSets * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.RoutersListBgpRoutes + * @memberof google.cloud.compute.v1beta.RoutersListNamedSets * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RoutersListBgpRoutes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RoutersListNamedSets.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.RoutersListBgpRoutes"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.RoutersListNamedSets"; }; - return RoutersListBgpRoutes; + return RoutersListNamedSets; })(); v1beta.RoutersListRoutePolicies = (function() { @@ -1188601,6 +1205699,7 @@ * @property {string|null} [onHostMaintenance] Scheduling onHostMaintenance * @property {google.cloud.compute.v1beta.ISchedulingOnInstanceStopAction|null} [onInstanceStopAction] Scheduling onInstanceStopAction * @property {boolean|null} [preemptible] Scheduling preemptible + * @property {google.cloud.compute.v1beta.IDuration|null} [preemptionNoticeDuration] Scheduling preemptionNoticeDuration * @property {string|null} [provisioningModel] Scheduling provisioningModel * @property {boolean|null} [skipGuestOsShutdown] Scheduling skipGuestOsShutdown * @property {string|null} [terminationTime] Scheduling terminationTime @@ -1188742,6 +1205841,14 @@ */ Scheduling.prototype.preemptible = null; + /** + * Scheduling preemptionNoticeDuration. + * @member {google.cloud.compute.v1beta.IDuration|null|undefined} preemptionNoticeDuration + * @memberof google.cloud.compute.v1beta.Scheduling + * @instance + */ + Scheduling.prototype.preemptionNoticeDuration = null; + /** * Scheduling provisioningModel. * @member {string|null|undefined} provisioningModel @@ -1188853,6 +1205960,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Scheduling.prototype, "_preemptionNoticeDuration", { + get: $util.oneOfGetter($oneOfFields = ["preemptionNoticeDuration"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Scheduling.prototype, "_provisioningModel", { get: $util.oneOfGetter($oneOfFields = ["provisioningModel"]), @@ -1188930,6 +1206043,8 @@ if (message.nodeAffinities != null && message.nodeAffinities.length) for (var i = 0; i < message.nodeAffinities.length; ++i) $root.google.cloud.compute.v1beta.SchedulingNodeAffinity.encode(message.nodeAffinities[i], writer.uint32(/* id 461799971, wireType 2 =*/3694399770).fork()).ldelim(); + if (message.preemptionNoticeDuration != null && Object.hasOwnProperty.call(message, "preemptionNoticeDuration")) + $root.google.cloud.compute.v1beta.Duration.encode(message.preemptionNoticeDuration, writer.uint32(/* id 486176437, wireType 2 =*/3889411498).fork()).ldelim(); if (message.onInstanceStopAction != null && Object.hasOwnProperty.call(message, "onInstanceStopAction")) $root.google.cloud.compute.v1beta.SchedulingOnInstanceStopAction.encode(message.onInstanceStopAction, writer.uint32(/* id 529876681, wireType 2 =*/4239013450).fork()).ldelim(); return writer; @@ -1189030,6 +1206145,10 @@ message.preemptible = reader.bool(); break; } + case 486176437: { + message.preemptionNoticeDuration = $root.google.cloud.compute.v1beta.Duration.decode(reader, reader.uint32()); + break; + } case 494423: { message.provisioningModel = reader.string(); break; @@ -1189169,6 +1206288,14 @@ if (typeof message.preemptible !== "boolean") return "preemptible: boolean expected"; } + if (message.preemptionNoticeDuration != null && message.hasOwnProperty("preemptionNoticeDuration")) { + properties._preemptionNoticeDuration = 1; + { + var error = $root.google.cloud.compute.v1beta.Duration.verify(message.preemptionNoticeDuration); + if (error) + return "preemptionNoticeDuration." + error; + } + } if (message.provisioningModel != null && message.hasOwnProperty("provisioningModel")) { properties._provisioningModel = 1; if (!$util.isString(message.provisioningModel)) @@ -1189249,6 +1206376,11 @@ } if (object.preemptible != null) message.preemptible = Boolean(object.preemptible); + if (object.preemptionNoticeDuration != null) { + if (typeof object.preemptionNoticeDuration !== "object") + throw TypeError(".google.cloud.compute.v1beta.Scheduling.preemptionNoticeDuration: object expected"); + message.preemptionNoticeDuration = $root.google.cloud.compute.v1beta.Duration.fromObject(object.preemptionNoticeDuration); + } if (object.provisioningModel != null) message.provisioningModel = String(object.provisioningModel); if (object.skipGuestOsShutdown != null) @@ -1189358,6 +1206490,11 @@ for (var j = 0; j < message.nodeAffinities.length; ++j) object.nodeAffinities[j] = $root.google.cloud.compute.v1beta.SchedulingNodeAffinity.toObject(message.nodeAffinities[j], options); } + if (message.preemptionNoticeDuration != null && message.hasOwnProperty("preemptionNoticeDuration")) { + object.preemptionNoticeDuration = $root.google.cloud.compute.v1beta.Duration.toObject(message.preemptionNoticeDuration, options); + if (options.oneofs) + object._preemptionNoticeDuration = "preemptionNoticeDuration"; + } if (message.onInstanceStopAction != null && message.hasOwnProperty("onInstanceStopAction")) { object.onInstanceStopAction = $root.google.cloud.compute.v1beta.SchedulingOnInstanceStopAction.toObject(message.onInstanceStopAction, options); if (options.oneofs) @@ -1214238,6 +1231375,286 @@ return SetIamPolicyInstanceTemplateRequest; })(); + v1beta.SetIamPolicyInstantSnapshotGroupRequest = (function() { + + /** + * Properties of a SetIamPolicyInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @interface ISetIamPolicyInstantSnapshotGroupRequest + * @property {string|null} [project] SetIamPolicyInstantSnapshotGroupRequest project + * @property {string|null} [resource] SetIamPolicyInstantSnapshotGroupRequest resource + * @property {string|null} [zone] SetIamPolicyInstantSnapshotGroupRequest zone + * @property {google.cloud.compute.v1beta.IZoneSetPolicyRequest|null} [zoneSetPolicyRequestResource] SetIamPolicyInstantSnapshotGroupRequest zoneSetPolicyRequestResource + */ + + /** + * Constructs a new SetIamPolicyInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a SetIamPolicyInstantSnapshotGroupRequest. + * @implements ISetIamPolicyInstantSnapshotGroupRequest + * @constructor + * @param {google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest=} [properties] Properties to set + */ + function SetIamPolicyInstantSnapshotGroupRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SetIamPolicyInstantSnapshotGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest + * @instance + */ + SetIamPolicyInstantSnapshotGroupRequest.prototype.project = ""; + + /** + * SetIamPolicyInstantSnapshotGroupRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest + * @instance + */ + SetIamPolicyInstantSnapshotGroupRequest.prototype.resource = ""; + + /** + * SetIamPolicyInstantSnapshotGroupRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest + * @instance + */ + SetIamPolicyInstantSnapshotGroupRequest.prototype.zone = ""; + + /** + * SetIamPolicyInstantSnapshotGroupRequest zoneSetPolicyRequestResource. + * @member {google.cloud.compute.v1beta.IZoneSetPolicyRequest|null|undefined} zoneSetPolicyRequestResource + * @memberof google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest + * @instance + */ + SetIamPolicyInstantSnapshotGroupRequest.prototype.zoneSetPolicyRequestResource = null; + + /** + * Creates a new SetIamPolicyInstantSnapshotGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest} SetIamPolicyInstantSnapshotGroupRequest instance + */ + SetIamPolicyInstantSnapshotGroupRequest.create = function create(properties) { + return new SetIamPolicyInstantSnapshotGroupRequest(properties); + }; + + /** + * Encodes the specified SetIamPolicyInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest} message SetIamPolicyInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyInstantSnapshotGroupRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.zoneSetPolicyRequestResource != null && Object.hasOwnProperty.call(message, "zoneSetPolicyRequestResource")) + $root.google.cloud.compute.v1beta.ZoneSetPolicyRequest.encode(message.zoneSetPolicyRequestResource, writer.uint32(/* id 382082107, wireType 2 =*/3056656858).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SetIamPolicyInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest} message SetIamPolicyInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetIamPolicyInstantSnapshotGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest} SetIamPolicyInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicyInstantSnapshotGroupRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + case 382082107: { + message.zoneSetPolicyRequestResource = $root.google.cloud.compute.v1beta.ZoneSetPolicyRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetIamPolicyInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest} SetIamPolicyInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicyInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetIamPolicyInstantSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetIamPolicyInstantSnapshotGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + if (message.zoneSetPolicyRequestResource != null && message.hasOwnProperty("zoneSetPolicyRequestResource")) { + var error = $root.google.cloud.compute.v1beta.ZoneSetPolicyRequest.verify(message.zoneSetPolicyRequestResource); + if (error) + return "zoneSetPolicyRequestResource." + error; + } + return null; + }; + + /** + * Creates a SetIamPolicyInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest} SetIamPolicyInstantSnapshotGroupRequest + */ + SetIamPolicyInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.resource != null) + message.resource = String(object.resource); + if (object.zone != null) + message.zone = String(object.zone); + if (object.zoneSetPolicyRequestResource != null) { + if (typeof object.zoneSetPolicyRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest.zoneSetPolicyRequestResource: object expected"); + message.zoneSetPolicyRequestResource = $root.google.cloud.compute.v1beta.ZoneSetPolicyRequest.fromObject(object.zoneSetPolicyRequestResource); + } + return message; + }; + + /** + * Creates a plain object from a SetIamPolicyInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest} message SetIamPolicyInstantSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetIamPolicyInstantSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.resource = ""; + object.project = ""; + object.zoneSetPolicyRequestResource = null; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.zoneSetPolicyRequestResource != null && message.hasOwnProperty("zoneSetPolicyRequestResource")) + object.zoneSetPolicyRequestResource = $root.google.cloud.compute.v1beta.ZoneSetPolicyRequest.toObject(message.zoneSetPolicyRequestResource, options); + return object; + }; + + /** + * Converts this SetIamPolicyInstantSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + SetIamPolicyInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SetIamPolicyInstantSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetIamPolicyInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest"; + }; + + return SetIamPolicyInstantSnapshotGroupRequest; + })(); + v1beta.SetIamPolicyInstantSnapshotRequest = (function() { /** @@ -1216615,55 +1234032,335 @@ }; /** - * Converts this SetIamPolicyNodeTemplateRequest to JSON. + * Converts this SetIamPolicyNodeTemplateRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.SetIamPolicyNodeTemplateRequest + * @instance + * @returns {Object.} JSON object + */ + SetIamPolicyNodeTemplateRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SetIamPolicyNodeTemplateRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.SetIamPolicyNodeTemplateRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetIamPolicyNodeTemplateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyNodeTemplateRequest"; + }; + + return SetIamPolicyNodeTemplateRequest; + })(); + + v1beta.SetIamPolicyRegionBackendBucketRequest = (function() { + + /** + * Properties of a SetIamPolicyRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1beta + * @interface ISetIamPolicyRegionBackendBucketRequest + * @property {string|null} [project] SetIamPolicyRegionBackendBucketRequest project + * @property {string|null} [region] SetIamPolicyRegionBackendBucketRequest region + * @property {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionBackendBucketRequest regionSetPolicyRequestResource + * @property {string|null} [resource] SetIamPolicyRegionBackendBucketRequest resource + */ + + /** + * Constructs a new SetIamPolicyRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a SetIamPolicyRegionBackendBucketRequest. + * @implements ISetIamPolicyRegionBackendBucketRequest + * @constructor + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest=} [properties] Properties to set + */ + function SetIamPolicyRegionBackendBucketRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SetIamPolicyRegionBackendBucketRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @instance + */ + SetIamPolicyRegionBackendBucketRequest.prototype.project = ""; + + /** + * SetIamPolicyRegionBackendBucketRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @instance + */ + SetIamPolicyRegionBackendBucketRequest.prototype.region = ""; + + /** + * SetIamPolicyRegionBackendBucketRequest regionSetPolicyRequestResource. + * @member {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null|undefined} regionSetPolicyRequestResource + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @instance + */ + SetIamPolicyRegionBackendBucketRequest.prototype.regionSetPolicyRequestResource = null; + + /** + * SetIamPolicyRegionBackendBucketRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @instance + */ + SetIamPolicyRegionBackendBucketRequest.prototype.resource = ""; + + /** + * Creates a new SetIamPolicyRegionBackendBucketRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest} SetIamPolicyRegionBackendBucketRequest instance + */ + SetIamPolicyRegionBackendBucketRequest.create = function create(properties) { + return new SetIamPolicyRegionBackendBucketRequest(properties); + }; + + /** + * Encodes the specified SetIamPolicyRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest} message SetIamPolicyRegionBackendBucketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyRegionBackendBucketRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.regionSetPolicyRequestResource != null && Object.hasOwnProperty.call(message, "regionSetPolicyRequestResource")) + $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.encode(message.regionSetPolicyRequestResource, writer.uint32(/* id 276489091, wireType 2 =*/2211912730).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SetIamPolicyRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest} message SetIamPolicyRegionBackendBucketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyRegionBackendBucketRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetIamPolicyRegionBackendBucketRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest} SetIamPolicyRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicyRegionBackendBucketRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 276489091: { + message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.decode(reader, reader.uint32()); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetIamPolicyRegionBackendBucketRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest} SetIamPolicyRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicyRegionBackendBucketRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetIamPolicyRegionBackendBucketRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetIamPolicyRegionBackendBucketRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.regionSetPolicyRequestResource != null && message.hasOwnProperty("regionSetPolicyRequestResource")) { + var error = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.verify(message.regionSetPolicyRequestResource); + if (error) + return "regionSetPolicyRequestResource." + error; + } + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + return null; + }; + + /** + * Creates a SetIamPolicyRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest} SetIamPolicyRegionBackendBucketRequest + */ + SetIamPolicyRegionBackendBucketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.regionSetPolicyRequestResource != null) { + if (typeof object.regionSetPolicyRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest.regionSetPolicyRequestResource: object expected"); + message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.fromObject(object.regionSetPolicyRequestResource); + } + if (object.resource != null) + message.resource = String(object.resource); + return message; + }; + + /** + * Creates a plain object from a SetIamPolicyRegionBackendBucketRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest} message SetIamPolicyRegionBackendBucketRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetIamPolicyRegionBackendBucketRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.resource = ""; + object.project = ""; + object.regionSetPolicyRequestResource = null; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.regionSetPolicyRequestResource != null && message.hasOwnProperty("regionSetPolicyRequestResource")) + object.regionSetPolicyRequestResource = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.toObject(message.regionSetPolicyRequestResource, options); + return object; + }; + + /** + * Converts this SetIamPolicyRegionBackendBucketRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.SetIamPolicyNodeTemplateRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest * @instance * @returns {Object.} JSON object */ - SetIamPolicyNodeTemplateRequest.prototype.toJSON = function toJSON() { + SetIamPolicyRegionBackendBucketRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetIamPolicyNodeTemplateRequest + * Gets the default type url for SetIamPolicyRegionBackendBucketRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.SetIamPolicyNodeTemplateRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetIamPolicyNodeTemplateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetIamPolicyRegionBackendBucketRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyNodeTemplateRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest"; }; - return SetIamPolicyNodeTemplateRequest; + return SetIamPolicyRegionBackendBucketRequest; })(); - v1beta.SetIamPolicyRegionBackendBucketRequest = (function() { + v1beta.SetIamPolicyRegionBackendServiceRequest = (function() { /** - * Properties of a SetIamPolicyRegionBackendBucketRequest. + * Properties of a SetIamPolicyRegionBackendServiceRequest. * @memberof google.cloud.compute.v1beta - * @interface ISetIamPolicyRegionBackendBucketRequest - * @property {string|null} [project] SetIamPolicyRegionBackendBucketRequest project - * @property {string|null} [region] SetIamPolicyRegionBackendBucketRequest region - * @property {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionBackendBucketRequest regionSetPolicyRequestResource - * @property {string|null} [resource] SetIamPolicyRegionBackendBucketRequest resource + * @interface ISetIamPolicyRegionBackendServiceRequest + * @property {string|null} [project] SetIamPolicyRegionBackendServiceRequest project + * @property {string|null} [region] SetIamPolicyRegionBackendServiceRequest region + * @property {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionBackendServiceRequest regionSetPolicyRequestResource + * @property {string|null} [resource] SetIamPolicyRegionBackendServiceRequest resource */ /** - * Constructs a new SetIamPolicyRegionBackendBucketRequest. + * Constructs a new SetIamPolicyRegionBackendServiceRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a SetIamPolicyRegionBackendBucketRequest. - * @implements ISetIamPolicyRegionBackendBucketRequest + * @classdesc Represents a SetIamPolicyRegionBackendServiceRequest. + * @implements ISetIamPolicyRegionBackendServiceRequest * @constructor - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendServiceRequest=} [properties] Properties to set */ - function SetIamPolicyRegionBackendBucketRequest(properties) { + function SetIamPolicyRegionBackendServiceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1216671,59 +1234368,59 @@ } /** - * SetIamPolicyRegionBackendBucketRequest project. + * SetIamPolicyRegionBackendServiceRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest * @instance */ - SetIamPolicyRegionBackendBucketRequest.prototype.project = ""; + SetIamPolicyRegionBackendServiceRequest.prototype.project = ""; /** - * SetIamPolicyRegionBackendBucketRequest region. + * SetIamPolicyRegionBackendServiceRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest * @instance */ - SetIamPolicyRegionBackendBucketRequest.prototype.region = ""; + SetIamPolicyRegionBackendServiceRequest.prototype.region = ""; /** - * SetIamPolicyRegionBackendBucketRequest regionSetPolicyRequestResource. + * SetIamPolicyRegionBackendServiceRequest regionSetPolicyRequestResource. * @member {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null|undefined} regionSetPolicyRequestResource - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest * @instance */ - SetIamPolicyRegionBackendBucketRequest.prototype.regionSetPolicyRequestResource = null; + SetIamPolicyRegionBackendServiceRequest.prototype.regionSetPolicyRequestResource = null; /** - * SetIamPolicyRegionBackendBucketRequest resource. + * SetIamPolicyRegionBackendServiceRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest * @instance */ - SetIamPolicyRegionBackendBucketRequest.prototype.resource = ""; + SetIamPolicyRegionBackendServiceRequest.prototype.resource = ""; /** - * Creates a new SetIamPolicyRegionBackendBucketRequest instance using the specified properties. + * Creates a new SetIamPolicyRegionBackendServiceRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest} SetIamPolicyRegionBackendBucketRequest instance + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendServiceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest instance */ - SetIamPolicyRegionBackendBucketRequest.create = function create(properties) { - return new SetIamPolicyRegionBackendBucketRequest(properties); + SetIamPolicyRegionBackendServiceRequest.create = function create(properties) { + return new SetIamPolicyRegionBackendServiceRequest(properties); }; /** - * Encodes the specified SetIamPolicyRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyRegionBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest} message SetIamPolicyRegionBackendBucketRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendServiceRequest} message SetIamPolicyRegionBackendServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionBackendBucketRequest.encode = function encode(message, writer) { + SetIamPolicyRegionBackendServiceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1216738,33 +1234435,33 @@ }; /** - * Encodes the specified SetIamPolicyRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyRegionBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest} message SetIamPolicyRegionBackendBucketRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendServiceRequest} message SetIamPolicyRegionBackendServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionBackendBucketRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetIamPolicyRegionBackendServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetIamPolicyRegionBackendBucketRequest message from the specified reader or buffer. + * Decodes a SetIamPolicyRegionBackendServiceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest} SetIamPolicyRegionBackendBucketRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyRegionBackendBucketRequest.decode = function decode(reader, length, error) { + SetIamPolicyRegionBackendServiceRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1216795,30 +1234492,30 @@ }; /** - * Decodes a SetIamPolicyRegionBackendBucketRequest message from the specified reader or buffer, length delimited. + * Decodes a SetIamPolicyRegionBackendServiceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest} SetIamPolicyRegionBackendBucketRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyRegionBackendBucketRequest.decodeDelimited = function decodeDelimited(reader) { + SetIamPolicyRegionBackendServiceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetIamPolicyRegionBackendBucketRequest message. + * Verifies a SetIamPolicyRegionBackendServiceRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetIamPolicyRegionBackendBucketRequest.verify = function verify(message) { + SetIamPolicyRegionBackendServiceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1216839,24 +1234536,24 @@ }; /** - * Creates a SetIamPolicyRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetIamPolicyRegionBackendServiceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest} SetIamPolicyRegionBackendBucketRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest */ - SetIamPolicyRegionBackendBucketRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest) + SetIamPolicyRegionBackendServiceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest) return object; - var message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest(); + var message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) message.region = String(object.region); if (object.regionSetPolicyRequestResource != null) { if (typeof object.regionSetPolicyRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest.regionSetPolicyRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest.regionSetPolicyRequestResource: object expected"); message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.fromObject(object.regionSetPolicyRequestResource); } if (object.resource != null) @@ -1216865,15 +1234562,15 @@ }; /** - * Creates a plain object from a SetIamPolicyRegionBackendBucketRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetIamPolicyRegionBackendServiceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest * @static - * @param {google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest} message SetIamPolicyRegionBackendBucketRequest + * @param {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} message SetIamPolicyRegionBackendServiceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetIamPolicyRegionBackendBucketRequest.toObject = function toObject(message, options) { + SetIamPolicyRegionBackendServiceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1216895,55 +1234592,55 @@ }; /** - * Converts this SetIamPolicyRegionBackendBucketRequest to JSON. + * Converts this SetIamPolicyRegionBackendServiceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest * @instance * @returns {Object.} JSON object */ - SetIamPolicyRegionBackendBucketRequest.prototype.toJSON = function toJSON() { + SetIamPolicyRegionBackendServiceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetIamPolicyRegionBackendBucketRequest + * Gets the default type url for SetIamPolicyRegionBackendServiceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetIamPolicyRegionBackendBucketRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetIamPolicyRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest"; }; - return SetIamPolicyRegionBackendBucketRequest; + return SetIamPolicyRegionBackendServiceRequest; })(); - v1beta.SetIamPolicyRegionBackendServiceRequest = (function() { + v1beta.SetIamPolicyRegionDiskRequest = (function() { /** - * Properties of a SetIamPolicyRegionBackendServiceRequest. + * Properties of a SetIamPolicyRegionDiskRequest. * @memberof google.cloud.compute.v1beta - * @interface ISetIamPolicyRegionBackendServiceRequest - * @property {string|null} [project] SetIamPolicyRegionBackendServiceRequest project - * @property {string|null} [region] SetIamPolicyRegionBackendServiceRequest region - * @property {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionBackendServiceRequest regionSetPolicyRequestResource - * @property {string|null} [resource] SetIamPolicyRegionBackendServiceRequest resource + * @interface ISetIamPolicyRegionDiskRequest + * @property {string|null} [project] SetIamPolicyRegionDiskRequest project + * @property {string|null} [region] SetIamPolicyRegionDiskRequest region + * @property {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionDiskRequest regionSetPolicyRequestResource + * @property {string|null} [resource] SetIamPolicyRegionDiskRequest resource */ /** - * Constructs a new SetIamPolicyRegionBackendServiceRequest. + * Constructs a new SetIamPolicyRegionDiskRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a SetIamPolicyRegionBackendServiceRequest. - * @implements ISetIamPolicyRegionBackendServiceRequest + * @classdesc Represents a SetIamPolicyRegionDiskRequest. + * @implements ISetIamPolicyRegionDiskRequest * @constructor - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendServiceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionDiskRequest=} [properties] Properties to set */ - function SetIamPolicyRegionBackendServiceRequest(properties) { + function SetIamPolicyRegionDiskRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1216951,59 +1234648,59 @@ } /** - * SetIamPolicyRegionBackendServiceRequest project. + * SetIamPolicyRegionDiskRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @instance */ - SetIamPolicyRegionBackendServiceRequest.prototype.project = ""; + SetIamPolicyRegionDiskRequest.prototype.project = ""; /** - * SetIamPolicyRegionBackendServiceRequest region. + * SetIamPolicyRegionDiskRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @instance */ - SetIamPolicyRegionBackendServiceRequest.prototype.region = ""; + SetIamPolicyRegionDiskRequest.prototype.region = ""; /** - * SetIamPolicyRegionBackendServiceRequest regionSetPolicyRequestResource. + * SetIamPolicyRegionDiskRequest regionSetPolicyRequestResource. * @member {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null|undefined} regionSetPolicyRequestResource - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @instance */ - SetIamPolicyRegionBackendServiceRequest.prototype.regionSetPolicyRequestResource = null; + SetIamPolicyRegionDiskRequest.prototype.regionSetPolicyRequestResource = null; /** - * SetIamPolicyRegionBackendServiceRequest resource. + * SetIamPolicyRegionDiskRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @instance */ - SetIamPolicyRegionBackendServiceRequest.prototype.resource = ""; + SetIamPolicyRegionDiskRequest.prototype.resource = ""; /** - * Creates a new SetIamPolicyRegionBackendServiceRequest instance using the specified properties. + * Creates a new SetIamPolicyRegionDiskRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendServiceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest instance + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionDiskRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest instance */ - SetIamPolicyRegionBackendServiceRequest.create = function create(properties) { - return new SetIamPolicyRegionBackendServiceRequest(properties); + SetIamPolicyRegionDiskRequest.create = function create(properties) { + return new SetIamPolicyRegionDiskRequest(properties); }; /** - * Encodes the specified SetIamPolicyRegionBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendServiceRequest} message SetIamPolicyRegionBackendServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionDiskRequest} message SetIamPolicyRegionDiskRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionBackendServiceRequest.encode = function encode(message, writer) { + SetIamPolicyRegionDiskRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1217018,33 +1234715,33 @@ }; /** - * Encodes the specified SetIamPolicyRegionBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendServiceRequest} message SetIamPolicyRegionBackendServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionDiskRequest} message SetIamPolicyRegionDiskRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionBackendServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetIamPolicyRegionDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetIamPolicyRegionBackendServiceRequest message from the specified reader or buffer. + * Decodes a SetIamPolicyRegionDiskRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyRegionBackendServiceRequest.decode = function decode(reader, length, error) { + SetIamPolicyRegionDiskRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1217075,30 +1234772,30 @@ }; /** - * Decodes a SetIamPolicyRegionBackendServiceRequest message from the specified reader or buffer, length delimited. + * Decodes a SetIamPolicyRegionDiskRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyRegionBackendServiceRequest.decodeDelimited = function decodeDelimited(reader) { + SetIamPolicyRegionDiskRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetIamPolicyRegionBackendServiceRequest message. + * Verifies a SetIamPolicyRegionDiskRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetIamPolicyRegionBackendServiceRequest.verify = function verify(message) { + SetIamPolicyRegionDiskRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1217119,24 +1234816,24 @@ }; /** - * Creates a SetIamPolicyRegionBackendServiceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetIamPolicyRegionDiskRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest */ - SetIamPolicyRegionBackendServiceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest) + SetIamPolicyRegionDiskRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest) return object; - var message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest(); + var message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) message.region = String(object.region); if (object.regionSetPolicyRequestResource != null) { if (typeof object.regionSetPolicyRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest.regionSetPolicyRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest.regionSetPolicyRequestResource: object expected"); message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.fromObject(object.regionSetPolicyRequestResource); } if (object.resource != null) @@ -1217145,15 +1234842,15 @@ }; /** - * Creates a plain object from a SetIamPolicyRegionBackendServiceRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetIamPolicyRegionDiskRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} message SetIamPolicyRegionBackendServiceRequest + * @param {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} message SetIamPolicyRegionDiskRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetIamPolicyRegionBackendServiceRequest.toObject = function toObject(message, options) { + SetIamPolicyRegionDiskRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1217175,55 +1234872,55 @@ }; /** - * Converts this SetIamPolicyRegionBackendServiceRequest to JSON. + * Converts this SetIamPolicyRegionDiskRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @instance * @returns {Object.} JSON object */ - SetIamPolicyRegionBackendServiceRequest.prototype.toJSON = function toJSON() { + SetIamPolicyRegionDiskRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetIamPolicyRegionBackendServiceRequest + * Gets the default type url for SetIamPolicyRegionDiskRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetIamPolicyRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetIamPolicyRegionDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest"; }; - return SetIamPolicyRegionBackendServiceRequest; + return SetIamPolicyRegionDiskRequest; })(); - v1beta.SetIamPolicyRegionDiskRequest = (function() { + v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest = (function() { /** - * Properties of a SetIamPolicyRegionDiskRequest. + * Properties of a SetIamPolicyRegionInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1beta - * @interface ISetIamPolicyRegionDiskRequest - * @property {string|null} [project] SetIamPolicyRegionDiskRequest project - * @property {string|null} [region] SetIamPolicyRegionDiskRequest region - * @property {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionDiskRequest regionSetPolicyRequestResource - * @property {string|null} [resource] SetIamPolicyRegionDiskRequest resource + * @interface ISetIamPolicyRegionInstantSnapshotGroupRequest + * @property {string|null} [project] SetIamPolicyRegionInstantSnapshotGroupRequest project + * @property {string|null} [region] SetIamPolicyRegionInstantSnapshotGroupRequest region + * @property {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionInstantSnapshotGroupRequest regionSetPolicyRequestResource + * @property {string|null} [resource] SetIamPolicyRegionInstantSnapshotGroupRequest resource */ /** - * Constructs a new SetIamPolicyRegionDiskRequest. + * Constructs a new SetIamPolicyRegionInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a SetIamPolicyRegionDiskRequest. - * @implements ISetIamPolicyRegionDiskRequest + * @classdesc Represents a SetIamPolicyRegionInstantSnapshotGroupRequest. + * @implements ISetIamPolicyRegionInstantSnapshotGroupRequest * @constructor - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionDiskRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest=} [properties] Properties to set */ - function SetIamPolicyRegionDiskRequest(properties) { + function SetIamPolicyRegionInstantSnapshotGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1217231,59 +1234928,59 @@ } /** - * SetIamPolicyRegionDiskRequest project. + * SetIamPolicyRegionInstantSnapshotGroupRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest * @instance */ - SetIamPolicyRegionDiskRequest.prototype.project = ""; + SetIamPolicyRegionInstantSnapshotGroupRequest.prototype.project = ""; /** - * SetIamPolicyRegionDiskRequest region. + * SetIamPolicyRegionInstantSnapshotGroupRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest * @instance */ - SetIamPolicyRegionDiskRequest.prototype.region = ""; + SetIamPolicyRegionInstantSnapshotGroupRequest.prototype.region = ""; /** - * SetIamPolicyRegionDiskRequest regionSetPolicyRequestResource. + * SetIamPolicyRegionInstantSnapshotGroupRequest regionSetPolicyRequestResource. * @member {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null|undefined} regionSetPolicyRequestResource - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest * @instance */ - SetIamPolicyRegionDiskRequest.prototype.regionSetPolicyRequestResource = null; + SetIamPolicyRegionInstantSnapshotGroupRequest.prototype.regionSetPolicyRequestResource = null; /** - * SetIamPolicyRegionDiskRequest resource. + * SetIamPolicyRegionInstantSnapshotGroupRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest * @instance */ - SetIamPolicyRegionDiskRequest.prototype.resource = ""; + SetIamPolicyRegionInstantSnapshotGroupRequest.prototype.resource = ""; /** - * Creates a new SetIamPolicyRegionDiskRequest instance using the specified properties. + * Creates a new SetIamPolicyRegionInstantSnapshotGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionDiskRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest instance + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest} SetIamPolicyRegionInstantSnapshotGroupRequest instance */ - SetIamPolicyRegionDiskRequest.create = function create(properties) { - return new SetIamPolicyRegionDiskRequest(properties); + SetIamPolicyRegionInstantSnapshotGroupRequest.create = function create(properties) { + return new SetIamPolicyRegionInstantSnapshotGroupRequest(properties); }; /** - * Encodes the specified SetIamPolicyRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionDiskRequest} message SetIamPolicyRegionDiskRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest} message SetIamPolicyRegionInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionDiskRequest.encode = function encode(message, writer) { + SetIamPolicyRegionInstantSnapshotGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1217298,33 +1234995,33 @@ }; /** - * Encodes the specified SetIamPolicyRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionDiskRequest} message SetIamPolicyRegionDiskRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest} message SetIamPolicyRegionInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetIamPolicyRegionInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetIamPolicyRegionDiskRequest message from the specified reader or buffer. + * Decodes a SetIamPolicyRegionInstantSnapshotGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest} SetIamPolicyRegionInstantSnapshotGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyRegionDiskRequest.decode = function decode(reader, length, error) { + SetIamPolicyRegionInstantSnapshotGroupRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1217355,30 +1235052,30 @@ }; /** - * Decodes a SetIamPolicyRegionDiskRequest message from the specified reader or buffer, length delimited. + * Decodes a SetIamPolicyRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest} SetIamPolicyRegionInstantSnapshotGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyRegionDiskRequest.decodeDelimited = function decodeDelimited(reader) { + SetIamPolicyRegionInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetIamPolicyRegionDiskRequest message. + * Verifies a SetIamPolicyRegionInstantSnapshotGroupRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetIamPolicyRegionDiskRequest.verify = function verify(message) { + SetIamPolicyRegionInstantSnapshotGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1217399,24 +1235096,24 @@ }; /** - * Creates a SetIamPolicyRegionDiskRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetIamPolicyRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest} SetIamPolicyRegionInstantSnapshotGroupRequest */ - SetIamPolicyRegionDiskRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest) + SetIamPolicyRegionInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest) return object; - var message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest(); + var message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) message.region = String(object.region); if (object.regionSetPolicyRequestResource != null) { if (typeof object.regionSetPolicyRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest.regionSetPolicyRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest.regionSetPolicyRequestResource: object expected"); message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.fromObject(object.regionSetPolicyRequestResource); } if (object.resource != null) @@ -1217425,15 +1235122,15 @@ }; /** - * Creates a plain object from a SetIamPolicyRegionDiskRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetIamPolicyRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} message SetIamPolicyRegionDiskRequest + * @param {google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest} message SetIamPolicyRegionInstantSnapshotGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetIamPolicyRegionDiskRequest.toObject = function toObject(message, options) { + SetIamPolicyRegionInstantSnapshotGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1217455,32 +1235152,32 @@ }; /** - * Converts this SetIamPolicyRegionDiskRequest to JSON. + * Converts this SetIamPolicyRegionInstantSnapshotGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest * @instance * @returns {Object.} JSON object */ - SetIamPolicyRegionDiskRequest.prototype.toJSON = function toJSON() { + SetIamPolicyRegionInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetIamPolicyRegionDiskRequest + * Gets the default type url for SetIamPolicyRegionInstantSnapshotGroupRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetIamPolicyRegionDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetIamPolicyRegionInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest"; }; - return SetIamPolicyRegionDiskRequest; + return SetIamPolicyRegionInstantSnapshotGroupRequest; })(); v1beta.SetIamPolicyRegionInstantSnapshotRequest = (function() { @@ -1219769,6 +1237466,263 @@ return SetIamPolicyServiceAttachmentRequest; })(); + v1beta.SetIamPolicySnapshotGroupRequest = (function() { + + /** + * Properties of a SetIamPolicySnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @interface ISetIamPolicySnapshotGroupRequest + * @property {google.cloud.compute.v1beta.IGlobalSetPolicyRequest|null} [globalSetPolicyRequestResource] SetIamPolicySnapshotGroupRequest globalSetPolicyRequestResource + * @property {string|null} [project] SetIamPolicySnapshotGroupRequest project + * @property {string|null} [resource] SetIamPolicySnapshotGroupRequest resource + */ + + /** + * Constructs a new SetIamPolicySnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a SetIamPolicySnapshotGroupRequest. + * @implements ISetIamPolicySnapshotGroupRequest + * @constructor + * @param {google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest=} [properties] Properties to set + */ + function SetIamPolicySnapshotGroupRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SetIamPolicySnapshotGroupRequest globalSetPolicyRequestResource. + * @member {google.cloud.compute.v1beta.IGlobalSetPolicyRequest|null|undefined} globalSetPolicyRequestResource + * @memberof google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest + * @instance + */ + SetIamPolicySnapshotGroupRequest.prototype.globalSetPolicyRequestResource = null; + + /** + * SetIamPolicySnapshotGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest + * @instance + */ + SetIamPolicySnapshotGroupRequest.prototype.project = ""; + + /** + * SetIamPolicySnapshotGroupRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest + * @instance + */ + SetIamPolicySnapshotGroupRequest.prototype.resource = ""; + + /** + * Creates a new SetIamPolicySnapshotGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest} SetIamPolicySnapshotGroupRequest instance + */ + SetIamPolicySnapshotGroupRequest.create = function create(properties) { + return new SetIamPolicySnapshotGroupRequest(properties); + }; + + /** + * Encodes the specified SetIamPolicySnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest} message SetIamPolicySnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicySnapshotGroupRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.globalSetPolicyRequestResource != null && Object.hasOwnProperty.call(message, "globalSetPolicyRequestResource")) + $root.google.cloud.compute.v1beta.GlobalSetPolicyRequest.encode(message.globalSetPolicyRequestResource, writer.uint32(/* id 337048498, wireType 2 =*/2696387986).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SetIamPolicySnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest} message SetIamPolicySnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicySnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetIamPolicySnapshotGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest} SetIamPolicySnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicySnapshotGroupRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 337048498: { + message.globalSetPolicyRequestResource = $root.google.cloud.compute.v1beta.GlobalSetPolicyRequest.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetIamPolicySnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest} SetIamPolicySnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicySnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetIamPolicySnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetIamPolicySnapshotGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.globalSetPolicyRequestResource != null && message.hasOwnProperty("globalSetPolicyRequestResource")) { + var error = $root.google.cloud.compute.v1beta.GlobalSetPolicyRequest.verify(message.globalSetPolicyRequestResource); + if (error) + return "globalSetPolicyRequestResource." + error; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + return null; + }; + + /** + * Creates a SetIamPolicySnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest} SetIamPolicySnapshotGroupRequest + */ + SetIamPolicySnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest(); + if (object.globalSetPolicyRequestResource != null) { + if (typeof object.globalSetPolicyRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest.globalSetPolicyRequestResource: object expected"); + message.globalSetPolicyRequestResource = $root.google.cloud.compute.v1beta.GlobalSetPolicyRequest.fromObject(object.globalSetPolicyRequestResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.resource != null) + message.resource = String(object.resource); + return message; + }; + + /** + * Creates a plain object from a SetIamPolicySnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest} message SetIamPolicySnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetIamPolicySnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.resource = ""; + object.project = ""; + object.globalSetPolicyRequestResource = null; + } + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.globalSetPolicyRequestResource != null && message.hasOwnProperty("globalSetPolicyRequestResource")) + object.globalSetPolicyRequestResource = $root.google.cloud.compute.v1beta.GlobalSetPolicyRequest.toObject(message.globalSetPolicyRequestResource, options); + return object; + }; + + /** + * Converts this SetIamPolicySnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + SetIamPolicySnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SetIamPolicySnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetIamPolicySnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest"; + }; + + return SetIamPolicySnapshotGroupRequest; + })(); + v1beta.SetIamPolicySnapshotRequest = (function() { /** @@ -1242440,6 +1260394,8 @@ * @property {boolean|null} [satisfiesPzs] Snapshot satisfiesPzs * @property {string|null} [selfLink] Snapshot selfLink * @property {google.cloud.compute.v1beta.ICustomerEncryptionKey|null} [snapshotEncryptionKey] Snapshot snapshotEncryptionKey + * @property {string|null} [snapshotGroupId] Snapshot snapshotGroupId + * @property {string|null} [snapshotGroupName] Snapshot snapshotGroupName * @property {string|null} [snapshotType] Snapshot snapshotType * @property {string|null} [sourceDisk] Snapshot sourceDisk * @property {google.cloud.compute.v1beta.ICustomerEncryptionKey|null} [sourceDiskEncryptionKey] Snapshot sourceDiskEncryptionKey @@ -1242678,6 +1260634,22 @@ */ Snapshot.prototype.snapshotEncryptionKey = null; + /** + * Snapshot snapshotGroupId. + * @member {string|null|undefined} snapshotGroupId + * @memberof google.cloud.compute.v1beta.Snapshot + * @instance + */ + Snapshot.prototype.snapshotGroupId = null; + + /** + * Snapshot snapshotGroupName. + * @member {string|null|undefined} snapshotGroupName + * @memberof google.cloud.compute.v1beta.Snapshot + * @instance + */ + Snapshot.prototype.snapshotGroupName = null; + /** * Snapshot snapshotType. * @member {string|null|undefined} snapshotType @@ -1242927,6 +1260899,18 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Snapshot.prototype, "_snapshotGroupId", { + get: $util.oneOfGetter($oneOfFields = ["snapshotGroupId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Snapshot.prototype, "_snapshotGroupName", { + get: $util.oneOfGetter($oneOfFields = ["snapshotGroupName"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Snapshot.prototype, "_snapshotType", { get: $util.oneOfGetter($oneOfFields = ["snapshotType"]), @@ -1243070,6 +1261054,10 @@ writer.uint32(/* id 219202054, wireType 2 =*/1753616434).string(message.sourceInstantSnapshot); if (message.sourceSnapshotSchedulePolicy != null && Object.hasOwnProperty.call(message, "sourceSnapshotSchedulePolicy")) writer.uint32(/* id 235756291, wireType 2 =*/1886050330).string(message.sourceSnapshotSchedulePolicy); + if (message.snapshotGroupName != null && Object.hasOwnProperty.call(message, "snapshotGroupName")) + writer.uint32(/* id 246247846, wireType 2 =*/1969982770).string(message.snapshotGroupName); + if (message.snapshotGroupId != null && Object.hasOwnProperty.call(message, "snapshotGroupId")) + writer.uint32(/* id 255004406, wireType 2 =*/2040035250).string(message.snapshotGroupId); if (message.sourceInstantSnapshotId != null && Object.hasOwnProperty.call(message, "sourceInstantSnapshotId")) writer.uint32(/* id 287582708, wireType 2 =*/2300661666).string(message.sourceInstantSnapshotId); if (message.architecture != null && Object.hasOwnProperty.call(message, "architecture")) @@ -1243284,6 +1261272,14 @@ message.snapshotEncryptionKey = $root.google.cloud.compute.v1beta.CustomerEncryptionKey.decode(reader, reader.uint32()); break; } + case 255004406: { + message.snapshotGroupId = reader.string(); + break; + } + case 246247846: { + message.snapshotGroupName = reader.string(); + break; + } case 124349653: { message.snapshotType = reader.string(); break; @@ -1243526,6 +1261522,16 @@ return "snapshotEncryptionKey." + error; } } + if (message.snapshotGroupId != null && message.hasOwnProperty("snapshotGroupId")) { + properties._snapshotGroupId = 1; + if (!$util.isString(message.snapshotGroupId)) + return "snapshotGroupId: string expected"; + } + if (message.snapshotGroupName != null && message.hasOwnProperty("snapshotGroupName")) { + properties._snapshotGroupName = 1; + if (!$util.isString(message.snapshotGroupName)) + return "snapshotGroupName: string expected"; + } if (message.snapshotType != null && message.hasOwnProperty("snapshotType")) { properties._snapshotType = 1; if (!$util.isString(message.snapshotType)) @@ -1243740,6 +1261746,10 @@ throw TypeError(".google.cloud.compute.v1beta.Snapshot.snapshotEncryptionKey: object expected"); message.snapshotEncryptionKey = $root.google.cloud.compute.v1beta.CustomerEncryptionKey.fromObject(object.snapshotEncryptionKey); } + if (object.snapshotGroupId != null) + message.snapshotGroupId = String(object.snapshotGroupId); + if (object.snapshotGroupName != null) + message.snapshotGroupName = String(object.snapshotGroupName); if (object.snapshotType != null) message.snapshotType = String(object.snapshotType); if (object.sourceDisk != null) @@ -1243841,333 +1261851,1428 @@ if (options.oneofs) object._creationTimestamp = "creationTimestamp"; } - if (message.snapshotEncryptionKey != null && message.hasOwnProperty("snapshotEncryptionKey")) { - object.snapshotEncryptionKey = $root.google.cloud.compute.v1beta.CustomerEncryptionKey.toObject(message.snapshotEncryptionKey, options); - if (options.oneofs) - object._snapshotEncryptionKey = "snapshotEncryptionKey"; - } - if (message.licenseCodes && message.licenseCodes.length) { - object.licenseCodes = []; - for (var j = 0; j < message.licenseCodes.length; ++j) - if (typeof message.licenseCodes[j] === "number") - object.licenseCodes[j] = options.longs === String ? String(message.licenseCodes[j]) : message.licenseCodes[j]; - else - object.licenseCodes[j] = options.longs === String ? $util.Long.prototype.toString.call(message.licenseCodes[j]) : options.longs === Number ? new $util.LongBits(message.licenseCodes[j].low >>> 0, message.licenseCodes[j].high >>> 0).toNumber() : message.licenseCodes[j]; - } - if (message.chainName != null && message.hasOwnProperty("chainName")) { - object.chainName = message.chainName; - if (options.oneofs) - object._chainName = "chainName"; - } - if (message.sourceSnapshotSchedulePolicyId != null && message.hasOwnProperty("sourceSnapshotSchedulePolicyId")) { - object.sourceSnapshotSchedulePolicyId = message.sourceSnapshotSchedulePolicyId; - if (options.oneofs) - object._sourceSnapshotSchedulePolicyId = "sourceSnapshotSchedulePolicyId"; - } - if (message.params != null && message.hasOwnProperty("params")) { - object.params = $root.google.cloud.compute.v1beta.SnapshotParams.toObject(message.params, options); - if (options.oneofs) - object._params = "params"; - } - if (message.guestOsFeatures && message.guestOsFeatures.length) { - object.guestOsFeatures = []; - for (var j = 0; j < message.guestOsFeatures.length; ++j) - object.guestOsFeatures[j] = $root.google.cloud.compute.v1beta.GuestOsFeature.toObject(message.guestOsFeatures[j], options); - } - if (message.enableConfidentialCompute != null && message.hasOwnProperty("enableConfidentialCompute")) { - object.enableConfidentialCompute = message.enableConfidentialCompute; - if (options.oneofs) - object._enableConfidentialCompute = "enableConfidentialCompute"; - } - if (message.snapshotType != null && message.hasOwnProperty("snapshotType")) { - object.snapshotType = message.snapshotType; - if (options.oneofs) - object._snapshotType = "snapshotType"; - } - if (message.creationSizeBytes != null && message.hasOwnProperty("creationSizeBytes")) { - if (typeof message.creationSizeBytes === "number") - object.creationSizeBytes = options.longs === String ? String(message.creationSizeBytes) : message.creationSizeBytes; - else - object.creationSizeBytes = options.longs === String ? $util.Long.prototype.toString.call(message.creationSizeBytes) : options.longs === Number ? new $util.LongBits(message.creationSizeBytes.low >>> 0, message.creationSizeBytes.high >>> 0).toNumber() : message.creationSizeBytes; - if (options.oneofs) - object._creationSizeBytes = "creationSizeBytes"; - } - if (message.region != null && message.hasOwnProperty("region")) { - object.region = message.region; + if (message.snapshotEncryptionKey != null && message.hasOwnProperty("snapshotEncryptionKey")) { + object.snapshotEncryptionKey = $root.google.cloud.compute.v1beta.CustomerEncryptionKey.toObject(message.snapshotEncryptionKey, options); + if (options.oneofs) + object._snapshotEncryptionKey = "snapshotEncryptionKey"; + } + if (message.licenseCodes && message.licenseCodes.length) { + object.licenseCodes = []; + for (var j = 0; j < message.licenseCodes.length; ++j) + if (typeof message.licenseCodes[j] === "number") + object.licenseCodes[j] = options.longs === String ? String(message.licenseCodes[j]) : message.licenseCodes[j]; + else + object.licenseCodes[j] = options.longs === String ? $util.Long.prototype.toString.call(message.licenseCodes[j]) : options.longs === Number ? new $util.LongBits(message.licenseCodes[j].low >>> 0, message.licenseCodes[j].high >>> 0).toNumber() : message.licenseCodes[j]; + } + if (message.chainName != null && message.hasOwnProperty("chainName")) { + object.chainName = message.chainName; + if (options.oneofs) + object._chainName = "chainName"; + } + if (message.sourceSnapshotSchedulePolicyId != null && message.hasOwnProperty("sourceSnapshotSchedulePolicyId")) { + object.sourceSnapshotSchedulePolicyId = message.sourceSnapshotSchedulePolicyId; + if (options.oneofs) + object._sourceSnapshotSchedulePolicyId = "sourceSnapshotSchedulePolicyId"; + } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1beta.SnapshotParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } + if (message.guestOsFeatures && message.guestOsFeatures.length) { + object.guestOsFeatures = []; + for (var j = 0; j < message.guestOsFeatures.length; ++j) + object.guestOsFeatures[j] = $root.google.cloud.compute.v1beta.GuestOsFeature.toObject(message.guestOsFeatures[j], options); + } + if (message.enableConfidentialCompute != null && message.hasOwnProperty("enableConfidentialCompute")) { + object.enableConfidentialCompute = message.enableConfidentialCompute; + if (options.oneofs) + object._enableConfidentialCompute = "enableConfidentialCompute"; + } + if (message.snapshotType != null && message.hasOwnProperty("snapshotType")) { + object.snapshotType = message.snapshotType; + if (options.oneofs) + object._snapshotType = "snapshotType"; + } + if (message.creationSizeBytes != null && message.hasOwnProperty("creationSizeBytes")) { + if (typeof message.creationSizeBytes === "number") + object.creationSizeBytes = options.longs === String ? String(message.creationSizeBytes) : message.creationSizeBytes; + else + object.creationSizeBytes = options.longs === String ? $util.Long.prototype.toString.call(message.creationSizeBytes) : options.longs === Number ? new $util.LongBits(message.creationSizeBytes.low >>> 0, message.creationSizeBytes.high >>> 0).toNumber() : message.creationSizeBytes; + if (options.oneofs) + object._creationSizeBytes = "creationSizeBytes"; + } + if (message.region != null && message.hasOwnProperty("region")) { + object.region = message.region; + if (options.oneofs) + object._region = "region"; + } + if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) { + object.labelFingerprint = message.labelFingerprint; + if (options.oneofs) + object._labelFingerprint = "labelFingerprint"; + } + if (message.status != null && message.hasOwnProperty("status")) { + object.status = message.status; + if (options.oneofs) + object._status = "status"; + } + if (message.sourceInstantSnapshot != null && message.hasOwnProperty("sourceInstantSnapshot")) { + object.sourceInstantSnapshot = message.sourceInstantSnapshot; + if (options.oneofs) + object._sourceInstantSnapshot = "sourceInstantSnapshot"; + } + if (message.sourceSnapshotSchedulePolicy != null && message.hasOwnProperty("sourceSnapshotSchedulePolicy")) { + object.sourceSnapshotSchedulePolicy = message.sourceSnapshotSchedulePolicy; + if (options.oneofs) + object._sourceSnapshotSchedulePolicy = "sourceSnapshotSchedulePolicy"; + } + if (message.snapshotGroupName != null && message.hasOwnProperty("snapshotGroupName")) { + object.snapshotGroupName = message.snapshotGroupName; + if (options.oneofs) + object._snapshotGroupName = "snapshotGroupName"; + } + if (message.snapshotGroupId != null && message.hasOwnProperty("snapshotGroupId")) { + object.snapshotGroupId = message.snapshotGroupId; + if (options.oneofs) + object._snapshotGroupId = "snapshotGroupId"; + } + if (message.sourceInstantSnapshotId != null && message.hasOwnProperty("sourceInstantSnapshotId")) { + object.sourceInstantSnapshotId = message.sourceInstantSnapshotId; + if (options.oneofs) + object._sourceInstantSnapshotId = "sourceInstantSnapshotId"; + } + if (message.architecture != null && message.hasOwnProperty("architecture")) { + object.architecture = message.architecture; + if (options.oneofs) + object._architecture = "architecture"; + } + if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) { + if (typeof message.diskSizeGb === "number") + object.diskSizeGb = options.longs === String ? String(message.diskSizeGb) : message.diskSizeGb; + else + object.diskSizeGb = options.longs === String ? $util.Long.prototype.toString.call(message.diskSizeGb) : options.longs === Number ? new $util.LongBits(message.diskSizeGb.low >>> 0, message.diskSizeGb.high >>> 0).toNumber() : message.diskSizeGb; + if (options.oneofs) + object._diskSizeGb = "diskSizeGb"; + } + if (message.storageLocations && message.storageLocations.length) { + object.storageLocations = []; + for (var j = 0; j < message.storageLocations.length; ++j) + object.storageLocations[j] = message.storageLocations[j]; + } + if (message.licenses && message.licenses.length) { + object.licenses = []; + for (var j = 0; j < message.licenses.length; ++j) + object.licenses[j] = message.licenses[j]; + } + if (message.locationHint != null && message.hasOwnProperty("locationHint")) { + object.locationHint = message.locationHint; + if (options.oneofs) + object._locationHint = "locationHint"; + } + if (message.sourceDiskForRecoveryCheckpoint != null && message.hasOwnProperty("sourceDiskForRecoveryCheckpoint")) { + object.sourceDiskForRecoveryCheckpoint = message.sourceDiskForRecoveryCheckpoint; + if (options.oneofs) + object._sourceDiskForRecoveryCheckpoint = "sourceDiskForRecoveryCheckpoint"; + } + if (message.guestFlush != null && message.hasOwnProperty("guestFlush")) { + object.guestFlush = message.guestFlush; + if (options.oneofs) + object._guestFlush = "guestFlush"; + } + if (message.userLicenses && message.userLicenses.length) { + object.userLicenses = []; + for (var j = 0; j < message.userLicenses.length; ++j) + object.userLicenses[j] = message.userLicenses[j]; + } + if (message.description != null && message.hasOwnProperty("description")) { + object.description = message.description; + if (options.oneofs) + object._description = "description"; + } + if (message.storageBytes != null && message.hasOwnProperty("storageBytes")) { + if (typeof message.storageBytes === "number") + object.storageBytes = options.longs === String ? String(message.storageBytes) : message.storageBytes; + else + object.storageBytes = options.longs === String ? $util.Long.prototype.toString.call(message.storageBytes) : options.longs === Number ? new $util.LongBits(message.storageBytes.low >>> 0, message.storageBytes.high >>> 0).toNumber() : message.storageBytes; + if (options.oneofs) + object._storageBytes = "storageBytes"; + } + if (message.downloadBytes != null && message.hasOwnProperty("downloadBytes")) { + if (typeof message.downloadBytes === "number") + object.downloadBytes = options.longs === String ? String(message.downloadBytes) : message.downloadBytes; + else + object.downloadBytes = options.longs === String ? $util.Long.prototype.toString.call(message.downloadBytes) : options.longs === Number ? new $util.LongBits(message.downloadBytes.low >>> 0, message.downloadBytes.high >>> 0).toNumber() : message.downloadBytes; + if (options.oneofs) + object._downloadBytes = "downloadBytes"; + } + if (message.sourceInstantSnapshotEncryptionKey != null && message.hasOwnProperty("sourceInstantSnapshotEncryptionKey")) { + object.sourceInstantSnapshotEncryptionKey = $root.google.cloud.compute.v1beta.CustomerEncryptionKey.toObject(message.sourceInstantSnapshotEncryptionKey, options); + if (options.oneofs) + object._sourceInstantSnapshotEncryptionKey = "sourceInstantSnapshotEncryptionKey"; + } + if (message.sourceDisk != null && message.hasOwnProperty("sourceDisk")) { + object.sourceDisk = message.sourceDisk; + if (options.oneofs) + object._sourceDisk = "sourceDisk"; + } + if (message.sourceDiskId != null && message.hasOwnProperty("sourceDiskId")) { + object.sourceDiskId = message.sourceDiskId; + if (options.oneofs) + object._sourceDiskId = "sourceDiskId"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + if (message.autoCreated != null && message.hasOwnProperty("autoCreated")) { + object.autoCreated = message.autoCreated; + if (options.oneofs) + object._autoCreated = "autoCreated"; + } + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) { + object.satisfiesPzi = message.satisfiesPzi; + if (options.oneofs) + object._satisfiesPzi = "satisfiesPzi"; + } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { + object.satisfiesPzs = message.satisfiesPzs; + if (options.oneofs) + object._satisfiesPzs = "satisfiesPzs"; + } + if (message.storageBytesStatus != null && message.hasOwnProperty("storageBytesStatus")) { + object.storageBytesStatus = message.storageBytesStatus; + if (options.oneofs) + object._storageBytesStatus = "storageBytesStatus"; + } + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.sourceDiskEncryptionKey != null && message.hasOwnProperty("sourceDiskEncryptionKey")) { + object.sourceDiskEncryptionKey = $root.google.cloud.compute.v1beta.CustomerEncryptionKey.toObject(message.sourceDiskEncryptionKey, options); + if (options.oneofs) + object._sourceDiskEncryptionKey = "sourceDiskEncryptionKey"; + } + return object; + }; + + /** + * Converts this Snapshot to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.Snapshot + * @instance + * @returns {Object.} JSON object + */ + Snapshot.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Snapshot + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.Snapshot + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Snapshot.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.Snapshot"; + }; + + /** + * Architecture enum. + * @name google.cloud.compute.v1beta.Snapshot.Architecture + * @enum {number} + * @property {number} UNDEFINED_ARCHITECTURE=0 UNDEFINED_ARCHITECTURE value + * @property {number} ARCHITECTURE_UNSPECIFIED=394750507 ARCHITECTURE_UNSPECIFIED value + * @property {number} ARM64=62547450 ARM64 value + * @property {number} X86_64=425300551 X86_64 value + */ + Snapshot.Architecture = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_ARCHITECTURE"] = 0; + values[valuesById[394750507] = "ARCHITECTURE_UNSPECIFIED"] = 394750507; + values[valuesById[62547450] = "ARM64"] = 62547450; + values[valuesById[425300551] = "X86_64"] = 425300551; + return values; + })(); + + /** + * SnapshotType enum. + * @name google.cloud.compute.v1beta.Snapshot.SnapshotType + * @enum {number} + * @property {number} UNDEFINED_SNAPSHOT_TYPE=0 UNDEFINED_SNAPSHOT_TYPE value + * @property {number} ARCHIVE=506752162 ARCHIVE value + * @property {number} STANDARD=484642493 STANDARD value + */ + Snapshot.SnapshotType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_SNAPSHOT_TYPE"] = 0; + values[valuesById[506752162] = "ARCHIVE"] = 506752162; + values[valuesById[484642493] = "STANDARD"] = 484642493; + return values; + })(); + + /** + * Status enum. + * @name google.cloud.compute.v1beta.Snapshot.Status + * @enum {number} + * @property {number} UNDEFINED_STATUS=0 UNDEFINED_STATUS value + * @property {number} CREATING=455564985 CREATING value + * @property {number} DELETING=528602024 DELETING value + * @property {number} FAILED=455706685 FAILED value + * @property {number} READY=77848963 READY value + * @property {number} UPLOADING=267603489 UPLOADING value + */ + Snapshot.Status = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STATUS"] = 0; + values[valuesById[455564985] = "CREATING"] = 455564985; + values[valuesById[528602024] = "DELETING"] = 528602024; + values[valuesById[455706685] = "FAILED"] = 455706685; + values[valuesById[77848963] = "READY"] = 77848963; + values[valuesById[267603489] = "UPLOADING"] = 267603489; + return values; + })(); + + /** + * StorageBytesStatus enum. + * @name google.cloud.compute.v1beta.Snapshot.StorageBytesStatus + * @enum {number} + * @property {number} UNDEFINED_STORAGE_BYTES_STATUS=0 UNDEFINED_STORAGE_BYTES_STATUS value + * @property {number} UPDATING=494614342 UPDATING value + * @property {number} UP_TO_DATE=101306702 UP_TO_DATE value + */ + Snapshot.StorageBytesStatus = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STORAGE_BYTES_STATUS"] = 0; + values[valuesById[494614342] = "UPDATING"] = 494614342; + values[valuesById[101306702] = "UP_TO_DATE"] = 101306702; + return values; + })(); + + return Snapshot; + })(); + + v1beta.SnapshotAggregatedList = (function() { + + /** + * Properties of a SnapshotAggregatedList. + * @memberof google.cloud.compute.v1beta + * @interface ISnapshotAggregatedList + * @property {string|null} [etag] SnapshotAggregatedList etag + * @property {string|null} [id] SnapshotAggregatedList id + * @property {Object.|null} [items] SnapshotAggregatedList items + * @property {string|null} [kind] SnapshotAggregatedList kind + * @property {string|null} [nextPageToken] SnapshotAggregatedList nextPageToken + * @property {string|null} [selfLink] SnapshotAggregatedList selfLink + * @property {Array.|null} [unreachables] SnapshotAggregatedList unreachables + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] SnapshotAggregatedList warning + */ + + /** + * Constructs a new SnapshotAggregatedList. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a SnapshotAggregatedList. + * @implements ISnapshotAggregatedList + * @constructor + * @param {google.cloud.compute.v1beta.ISnapshotAggregatedList=} [properties] Properties to set + */ + function SnapshotAggregatedList(properties) { + this.items = {}; + this.unreachables = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SnapshotAggregatedList etag. + * @member {string|null|undefined} etag + * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @instance + */ + SnapshotAggregatedList.prototype.etag = null; + + /** + * SnapshotAggregatedList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @instance + */ + SnapshotAggregatedList.prototype.id = null; + + /** + * SnapshotAggregatedList items. + * @member {Object.} items + * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @instance + */ + SnapshotAggregatedList.prototype.items = $util.emptyObject; + + /** + * SnapshotAggregatedList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @instance + */ + SnapshotAggregatedList.prototype.kind = null; + + /** + * SnapshotAggregatedList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @instance + */ + SnapshotAggregatedList.prototype.nextPageToken = null; + + /** + * SnapshotAggregatedList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @instance + */ + SnapshotAggregatedList.prototype.selfLink = null; + + /** + * SnapshotAggregatedList unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @instance + */ + SnapshotAggregatedList.prototype.unreachables = $util.emptyArray; + + /** + * SnapshotAggregatedList warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @instance + */ + SnapshotAggregatedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotAggregatedList.prototype, "_etag", { + get: $util.oneOfGetter($oneOfFields = ["etag"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotAggregatedList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotAggregatedList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotAggregatedList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotAggregatedList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotAggregatedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SnapshotAggregatedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @static + * @param {google.cloud.compute.v1beta.ISnapshotAggregatedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SnapshotAggregatedList} SnapshotAggregatedList instance + */ + SnapshotAggregatedList.create = function create(properties) { + return new SnapshotAggregatedList(properties); + }; + + /** + * Encodes the specified SnapshotAggregatedList message. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotAggregatedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @static + * @param {google.cloud.compute.v1beta.ISnapshotAggregatedList} message SnapshotAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotAggregatedList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3123477, wireType 2 =*/24987818).string(message.etag); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1beta.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); + if (message.items != null && Object.hasOwnProperty.call(message, "items")) + for (var keys = Object.keys(message.items), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.compute.v1beta.SnapshotsScopedList.encode(message.items[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.unreachables != null && message.unreachables.length) + for (var i = 0; i < message.unreachables.length; ++i) + writer.uint32(/* id 243372063, wireType 2 =*/1946976506).string(message.unreachables[i]); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified SnapshotAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotAggregatedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @static + * @param {google.cloud.compute.v1beta.ISnapshotAggregatedList} message SnapshotAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotAggregatedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SnapshotAggregatedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.SnapshotAggregatedList} SnapshotAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotAggregatedList.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SnapshotAggregatedList(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3123477: { + message.etag = reader.string(); + break; + } + case 3355: { + message.id = reader.string(); + break; + } + case 100526016: { + if (message.items === $util.emptyObject) + message.items = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.compute.v1beta.SnapshotsScopedList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.items[key] = value; + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 79797525: { + message.nextPageToken = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 243372063: { + if (!(message.unreachables && message.unreachables.length)) + message.unreachables = []; + message.unreachables.push(reader.string()); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SnapshotAggregatedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.SnapshotAggregatedList} SnapshotAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotAggregatedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SnapshotAggregatedList message. + * @function verify + * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SnapshotAggregatedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.etag != null && message.hasOwnProperty("etag")) { + properties._etag = 1; + if (!$util.isString(message.etag)) + return "etag: string expected"; + } + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!$util.isObject(message.items)) + return "items: object expected"; + var key = Object.keys(message.items); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1beta.SnapshotsScopedList.verify(message.items[key[i]]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.unreachables != null && message.hasOwnProperty("unreachables")) { + if (!Array.isArray(message.unreachables)) + return "unreachables: array expected"; + for (var i = 0; i < message.unreachables.length; ++i) + if (!$util.isString(message.unreachables[i])) + return "unreachables: string[] expected"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a SnapshotAggregatedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.SnapshotAggregatedList} SnapshotAggregatedList + */ + SnapshotAggregatedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SnapshotAggregatedList) + return object; + var message = new $root.google.cloud.compute.v1beta.SnapshotAggregatedList(); + if (object.etag != null) + message.etag = String(object.etag); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (typeof object.items !== "object") + throw TypeError(".google.cloud.compute.v1beta.SnapshotAggregatedList.items: object expected"); + message.items = {}; + for (var keys = Object.keys(object.items), i = 0; i < keys.length; ++i) { + if (typeof object.items[keys[i]] !== "object") + throw TypeError(".google.cloud.compute.v1beta.SnapshotAggregatedList.items: object expected"); + message.items[keys[i]] = $root.google.cloud.compute.v1beta.SnapshotsScopedList.fromObject(object.items[keys[i]]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.unreachables) { + if (!Array.isArray(object.unreachables)) + throw TypeError(".google.cloud.compute.v1beta.SnapshotAggregatedList.unreachables: array expected"); + message.unreachables = []; + for (var i = 0; i < object.unreachables.length; ++i) + message.unreachables[i] = String(object.unreachables[i]); + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1beta.SnapshotAggregatedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a SnapshotAggregatedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @static + * @param {google.cloud.compute.v1beta.SnapshotAggregatedList} message SnapshotAggregatedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SnapshotAggregatedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.unreachables = []; + if (options.objects || options.defaults) + object.items = {}; + if (message.id != null && message.hasOwnProperty("id")) { + object.id = message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.etag != null && message.hasOwnProperty("etag")) { + object.etag = message.etag; + if (options.oneofs) + object._etag = "etag"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + var keys2; + if (message.items && (keys2 = Object.keys(message.items)).length) { + object.items = {}; + for (var j = 0; j < keys2.length; ++j) + object.items[keys2[j]] = $root.google.cloud.compute.v1beta.SnapshotsScopedList.toObject(message.items[keys2[j]], options); + } + if (message.unreachables && message.unreachables.length) { + object.unreachables = []; + for (var j = 0; j < message.unreachables.length; ++j) + object.unreachables[j] = message.unreachables[j]; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this SnapshotAggregatedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @instance + * @returns {Object.} JSON object + */ + SnapshotAggregatedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SnapshotAggregatedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SnapshotAggregatedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.SnapshotAggregatedList"; + }; + + return SnapshotAggregatedList; + })(); + + v1beta.SnapshotGroup = (function() { + + /** + * Properties of a SnapshotGroup. + * @memberof google.cloud.compute.v1beta + * @interface ISnapshotGroup + * @property {string|null} [creationTimestamp] SnapshotGroup creationTimestamp + * @property {string|null} [description] SnapshotGroup description + * @property {number|Long|null} [id] SnapshotGroup id + * @property {string|null} [kind] SnapshotGroup kind + * @property {string|null} [name] SnapshotGroup name + * @property {string|null} [selfLink] SnapshotGroup selfLink + * @property {string|null} [selfLinkWithId] SnapshotGroup selfLinkWithId + * @property {google.cloud.compute.v1beta.ISnapshotGroupSourceInfo|null} [sourceInfo] SnapshotGroup sourceInfo + * @property {string|null} [sourceInstantSnapshotGroup] SnapshotGroup sourceInstantSnapshotGroup + * @property {google.cloud.compute.v1beta.ISnapshotGroupSourceInstantSnapshotGroupInfo|null} [sourceInstantSnapshotGroupInfo] SnapshotGroup sourceInstantSnapshotGroupInfo + * @property {string|null} [status] SnapshotGroup status + */ + + /** + * Constructs a new SnapshotGroup. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a SnapshotGroup. + * @implements ISnapshotGroup + * @constructor + * @param {google.cloud.compute.v1beta.ISnapshotGroup=} [properties] Properties to set + */ + function SnapshotGroup(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SnapshotGroup creationTimestamp. + * @member {string|null|undefined} creationTimestamp + * @memberof google.cloud.compute.v1beta.SnapshotGroup + * @instance + */ + SnapshotGroup.prototype.creationTimestamp = null; + + /** + * SnapshotGroup description. + * @member {string|null|undefined} description + * @memberof google.cloud.compute.v1beta.SnapshotGroup + * @instance + */ + SnapshotGroup.prototype.description = null; + + /** + * SnapshotGroup id. + * @member {number|Long|null|undefined} id + * @memberof google.cloud.compute.v1beta.SnapshotGroup + * @instance + */ + SnapshotGroup.prototype.id = null; + + /** + * SnapshotGroup kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.SnapshotGroup + * @instance + */ + SnapshotGroup.prototype.kind = null; + + /** + * SnapshotGroup name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1beta.SnapshotGroup + * @instance + */ + SnapshotGroup.prototype.name = null; + + /** + * SnapshotGroup selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.SnapshotGroup + * @instance + */ + SnapshotGroup.prototype.selfLink = null; + + /** + * SnapshotGroup selfLinkWithId. + * @member {string|null|undefined} selfLinkWithId + * @memberof google.cloud.compute.v1beta.SnapshotGroup + * @instance + */ + SnapshotGroup.prototype.selfLinkWithId = null; + + /** + * SnapshotGroup sourceInfo. + * @member {google.cloud.compute.v1beta.ISnapshotGroupSourceInfo|null|undefined} sourceInfo + * @memberof google.cloud.compute.v1beta.SnapshotGroup + * @instance + */ + SnapshotGroup.prototype.sourceInfo = null; + + /** + * SnapshotGroup sourceInstantSnapshotGroup. + * @member {string|null|undefined} sourceInstantSnapshotGroup + * @memberof google.cloud.compute.v1beta.SnapshotGroup + * @instance + */ + SnapshotGroup.prototype.sourceInstantSnapshotGroup = null; + + /** + * SnapshotGroup sourceInstantSnapshotGroupInfo. + * @member {google.cloud.compute.v1beta.ISnapshotGroupSourceInstantSnapshotGroupInfo|null|undefined} sourceInstantSnapshotGroupInfo + * @memberof google.cloud.compute.v1beta.SnapshotGroup + * @instance + */ + SnapshotGroup.prototype.sourceInstantSnapshotGroupInfo = null; + + /** + * SnapshotGroup status. + * @member {string|null|undefined} status + * @memberof google.cloud.compute.v1beta.SnapshotGroup + * @instance + */ + SnapshotGroup.prototype.status = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotGroup.prototype, "_creationTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotGroup.prototype, "_description", { + get: $util.oneOfGetter($oneOfFields = ["description"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotGroup.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotGroup.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotGroup.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotGroup.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotGroup.prototype, "_selfLinkWithId", { + get: $util.oneOfGetter($oneOfFields = ["selfLinkWithId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotGroup.prototype, "_sourceInfo", { + get: $util.oneOfGetter($oneOfFields = ["sourceInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotGroup.prototype, "_sourceInstantSnapshotGroup", { + get: $util.oneOfGetter($oneOfFields = ["sourceInstantSnapshotGroup"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotGroup.prototype, "_sourceInstantSnapshotGroupInfo", { + get: $util.oneOfGetter($oneOfFields = ["sourceInstantSnapshotGroupInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotGroup.prototype, "_status", { + get: $util.oneOfGetter($oneOfFields = ["status"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SnapshotGroup instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.SnapshotGroup + * @static + * @param {google.cloud.compute.v1beta.ISnapshotGroup=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SnapshotGroup} SnapshotGroup instance + */ + SnapshotGroup.create = function create(properties) { + return new SnapshotGroup(properties); + }; + + /** + * Encodes the specified SnapshotGroup message. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotGroup.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.SnapshotGroup + * @static + * @param {google.cloud.compute.v1beta.ISnapshotGroup} message SnapshotGroup message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotGroup.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 0 =*/26840).uint64(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); + if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) + writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.selfLinkWithId != null && Object.hasOwnProperty.call(message, "selfLinkWithId")) + writer.uint32(/* id 44520962, wireType 2 =*/356167698).string(message.selfLinkWithId); + if (message.sourceInstantSnapshotGroupInfo != null && Object.hasOwnProperty.call(message, "sourceInstantSnapshotGroupInfo")) + $root.google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo.encode(message.sourceInstantSnapshotGroupInfo, writer.uint32(/* id 62296647, wireType 2 =*/498373178).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 181260274, wireType 2 =*/1450082194).string(message.status); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + if (message.sourceInfo != null && Object.hasOwnProperty.call(message, "sourceInfo")) + $root.google.cloud.compute.v1beta.SnapshotGroupSourceInfo.encode(message.sourceInfo, writer.uint32(/* id 451907154, wireType 2 =*/3615257234).fork()).ldelim(); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + if (message.sourceInstantSnapshotGroup != null && Object.hasOwnProperty.call(message, "sourceInstantSnapshotGroup")) + writer.uint32(/* id 525991686, wireType 2 =*/4207933490).string(message.sourceInstantSnapshotGroup); + return writer; + }; + + /** + * Encodes the specified SnapshotGroup message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotGroup.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.SnapshotGroup + * @static + * @param {google.cloud.compute.v1beta.ISnapshotGroup} message SnapshotGroup message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotGroup.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SnapshotGroup message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.SnapshotGroup + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.SnapshotGroup} SnapshotGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotGroup.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SnapshotGroup(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 30525366: { + message.creationTimestamp = reader.string(); + break; + } + case 422937596: { + message.description = reader.string(); + break; + } + case 3355: { + message.id = reader.uint64(); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 3373707: { + message.name = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 44520962: { + message.selfLinkWithId = reader.string(); + break; + } + case 451907154: { + message.sourceInfo = $root.google.cloud.compute.v1beta.SnapshotGroupSourceInfo.decode(reader, reader.uint32()); + break; + } + case 525991686: { + message.sourceInstantSnapshotGroup = reader.string(); + break; + } + case 62296647: { + message.sourceInstantSnapshotGroupInfo = $root.google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo.decode(reader, reader.uint32()); + break; + } + case 181260274: { + message.status = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SnapshotGroup message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.SnapshotGroup + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.SnapshotGroup} SnapshotGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotGroup.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SnapshotGroup message. + * @function verify + * @memberof google.cloud.compute.v1beta.SnapshotGroup + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SnapshotGroup.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + properties._creationTimestamp = 1; + if (!$util.isString(message.creationTimestamp)) + return "creationTimestamp: string expected"; + } + if (message.description != null && message.hasOwnProperty("description")) { + properties._description = 1; + if (!$util.isString(message.description)) + return "description: string expected"; + } + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.name != null && message.hasOwnProperty("name")) { + properties._name = 1; + if (!$util.isString(message.name)) + return "name: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + properties._selfLinkWithId = 1; + if (!$util.isString(message.selfLinkWithId)) + return "selfLinkWithId: string expected"; + } + if (message.sourceInfo != null && message.hasOwnProperty("sourceInfo")) { + properties._sourceInfo = 1; + { + var error = $root.google.cloud.compute.v1beta.SnapshotGroupSourceInfo.verify(message.sourceInfo); + if (error) + return "sourceInfo." + error; + } + } + if (message.sourceInstantSnapshotGroup != null && message.hasOwnProperty("sourceInstantSnapshotGroup")) { + properties._sourceInstantSnapshotGroup = 1; + if (!$util.isString(message.sourceInstantSnapshotGroup)) + return "sourceInstantSnapshotGroup: string expected"; + } + if (message.sourceInstantSnapshotGroupInfo != null && message.hasOwnProperty("sourceInstantSnapshotGroupInfo")) { + properties._sourceInstantSnapshotGroupInfo = 1; + { + var error = $root.google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo.verify(message.sourceInstantSnapshotGroupInfo); + if (error) + return "sourceInstantSnapshotGroupInfo." + error; + } + } + if (message.status != null && message.hasOwnProperty("status")) { + properties._status = 1; + if (!$util.isString(message.status)) + return "status: string expected"; + } + return null; + }; + + /** + * Creates a SnapshotGroup message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.SnapshotGroup + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.SnapshotGroup} SnapshotGroup + */ + SnapshotGroup.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SnapshotGroup) + return object; + var message = new $root.google.cloud.compute.v1beta.SnapshotGroup(); + if (object.creationTimestamp != null) + message.creationTimestamp = String(object.creationTimestamp); + if (object.description != null) + message.description = String(object.description); + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = true; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + message.id = object.id; + else if (typeof object.id === "object") + message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true); + if (object.kind != null) + message.kind = String(object.kind); + if (object.name != null) + message.name = String(object.name); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.selfLinkWithId != null) + message.selfLinkWithId = String(object.selfLinkWithId); + if (object.sourceInfo != null) { + if (typeof object.sourceInfo !== "object") + throw TypeError(".google.cloud.compute.v1beta.SnapshotGroup.sourceInfo: object expected"); + message.sourceInfo = $root.google.cloud.compute.v1beta.SnapshotGroupSourceInfo.fromObject(object.sourceInfo); + } + if (object.sourceInstantSnapshotGroup != null) + message.sourceInstantSnapshotGroup = String(object.sourceInstantSnapshotGroup); + if (object.sourceInstantSnapshotGroupInfo != null) { + if (typeof object.sourceInstantSnapshotGroupInfo !== "object") + throw TypeError(".google.cloud.compute.v1beta.SnapshotGroup.sourceInstantSnapshotGroupInfo: object expected"); + message.sourceInstantSnapshotGroupInfo = $root.google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo.fromObject(object.sourceInstantSnapshotGroupInfo); + } + if (object.status != null) + message.status = String(object.status); + return message; + }; + + /** + * Creates a plain object from a SnapshotGroup message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.SnapshotGroup + * @static + * @param {google.cloud.compute.v1beta.SnapshotGroup} message SnapshotGroup + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SnapshotGroup.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.id != null && message.hasOwnProperty("id")) { + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber(true) : message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.name != null && message.hasOwnProperty("name")) { + object.name = message.name; + if (options.oneofs) + object._name = "name"; + } + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + object.creationTimestamp = message.creationTimestamp; + if (options.oneofs) + object._creationTimestamp = "creationTimestamp"; + } + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + object.selfLinkWithId = message.selfLinkWithId; if (options.oneofs) - object._region = "region"; + object._selfLinkWithId = "selfLinkWithId"; } - if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) { - object.labelFingerprint = message.labelFingerprint; + if (message.sourceInstantSnapshotGroupInfo != null && message.hasOwnProperty("sourceInstantSnapshotGroupInfo")) { + object.sourceInstantSnapshotGroupInfo = $root.google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo.toObject(message.sourceInstantSnapshotGroupInfo, options); if (options.oneofs) - object._labelFingerprint = "labelFingerprint"; + object._sourceInstantSnapshotGroupInfo = "sourceInstantSnapshotGroupInfo"; } if (message.status != null && message.hasOwnProperty("status")) { object.status = message.status; if (options.oneofs) object._status = "status"; } - if (message.sourceInstantSnapshot != null && message.hasOwnProperty("sourceInstantSnapshot")) { - object.sourceInstantSnapshot = message.sourceInstantSnapshot; - if (options.oneofs) - object._sourceInstantSnapshot = "sourceInstantSnapshot"; - } - if (message.sourceSnapshotSchedulePolicy != null && message.hasOwnProperty("sourceSnapshotSchedulePolicy")) { - object.sourceSnapshotSchedulePolicy = message.sourceSnapshotSchedulePolicy; - if (options.oneofs) - object._sourceSnapshotSchedulePolicy = "sourceSnapshotSchedulePolicy"; - } - if (message.sourceInstantSnapshotId != null && message.hasOwnProperty("sourceInstantSnapshotId")) { - object.sourceInstantSnapshotId = message.sourceInstantSnapshotId; - if (options.oneofs) - object._sourceInstantSnapshotId = "sourceInstantSnapshotId"; - } - if (message.architecture != null && message.hasOwnProperty("architecture")) { - object.architecture = message.architecture; - if (options.oneofs) - object._architecture = "architecture"; - } - if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) { - if (typeof message.diskSizeGb === "number") - object.diskSizeGb = options.longs === String ? String(message.diskSizeGb) : message.diskSizeGb; - else - object.diskSizeGb = options.longs === String ? $util.Long.prototype.toString.call(message.diskSizeGb) : options.longs === Number ? new $util.LongBits(message.diskSizeGb.low >>> 0, message.diskSizeGb.high >>> 0).toNumber() : message.diskSizeGb; - if (options.oneofs) - object._diskSizeGb = "diskSizeGb"; - } - if (message.storageLocations && message.storageLocations.length) { - object.storageLocations = []; - for (var j = 0; j < message.storageLocations.length; ++j) - object.storageLocations[j] = message.storageLocations[j]; - } - if (message.licenses && message.licenses.length) { - object.licenses = []; - for (var j = 0; j < message.licenses.length; ++j) - object.licenses[j] = message.licenses[j]; - } - if (message.locationHint != null && message.hasOwnProperty("locationHint")) { - object.locationHint = message.locationHint; - if (options.oneofs) - object._locationHint = "locationHint"; - } - if (message.sourceDiskForRecoveryCheckpoint != null && message.hasOwnProperty("sourceDiskForRecoveryCheckpoint")) { - object.sourceDiskForRecoveryCheckpoint = message.sourceDiskForRecoveryCheckpoint; - if (options.oneofs) - object._sourceDiskForRecoveryCheckpoint = "sourceDiskForRecoveryCheckpoint"; - } - if (message.guestFlush != null && message.hasOwnProperty("guestFlush")) { - object.guestFlush = message.guestFlush; - if (options.oneofs) - object._guestFlush = "guestFlush"; - } - if (message.userLicenses && message.userLicenses.length) { - object.userLicenses = []; - for (var j = 0; j < message.userLicenses.length; ++j) - object.userLicenses[j] = message.userLicenses[j]; - } if (message.description != null && message.hasOwnProperty("description")) { object.description = message.description; if (options.oneofs) object._description = "description"; } - if (message.storageBytes != null && message.hasOwnProperty("storageBytes")) { - if (typeof message.storageBytes === "number") - object.storageBytes = options.longs === String ? String(message.storageBytes) : message.storageBytes; - else - object.storageBytes = options.longs === String ? $util.Long.prototype.toString.call(message.storageBytes) : options.longs === Number ? new $util.LongBits(message.storageBytes.low >>> 0, message.storageBytes.high >>> 0).toNumber() : message.storageBytes; - if (options.oneofs) - object._storageBytes = "storageBytes"; - } - if (message.downloadBytes != null && message.hasOwnProperty("downloadBytes")) { - if (typeof message.downloadBytes === "number") - object.downloadBytes = options.longs === String ? String(message.downloadBytes) : message.downloadBytes; - else - object.downloadBytes = options.longs === String ? $util.Long.prototype.toString.call(message.downloadBytes) : options.longs === Number ? new $util.LongBits(message.downloadBytes.low >>> 0, message.downloadBytes.high >>> 0).toNumber() : message.downloadBytes; - if (options.oneofs) - object._downloadBytes = "downloadBytes"; - } - if (message.sourceInstantSnapshotEncryptionKey != null && message.hasOwnProperty("sourceInstantSnapshotEncryptionKey")) { - object.sourceInstantSnapshotEncryptionKey = $root.google.cloud.compute.v1beta.CustomerEncryptionKey.toObject(message.sourceInstantSnapshotEncryptionKey, options); + if (message.sourceInfo != null && message.hasOwnProperty("sourceInfo")) { + object.sourceInfo = $root.google.cloud.compute.v1beta.SnapshotGroupSourceInfo.toObject(message.sourceInfo, options); if (options.oneofs) - object._sourceInstantSnapshotEncryptionKey = "sourceInstantSnapshotEncryptionKey"; - } - if (message.sourceDisk != null && message.hasOwnProperty("sourceDisk")) { - object.sourceDisk = message.sourceDisk; - if (options.oneofs) - object._sourceDisk = "sourceDisk"; - } - if (message.sourceDiskId != null && message.hasOwnProperty("sourceDiskId")) { - object.sourceDiskId = message.sourceDiskId; - if (options.oneofs) - object._sourceDiskId = "sourceDiskId"; + object._sourceInfo = "sourceInfo"; } if (message.selfLink != null && message.hasOwnProperty("selfLink")) { object.selfLink = message.selfLink; if (options.oneofs) object._selfLink = "selfLink"; } - if (message.autoCreated != null && message.hasOwnProperty("autoCreated")) { - object.autoCreated = message.autoCreated; - if (options.oneofs) - object._autoCreated = "autoCreated"; - } - if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) { - object.satisfiesPzi = message.satisfiesPzi; - if (options.oneofs) - object._satisfiesPzi = "satisfiesPzi"; - } - if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { - object.satisfiesPzs = message.satisfiesPzs; - if (options.oneofs) - object._satisfiesPzs = "satisfiesPzs"; - } - if (message.storageBytesStatus != null && message.hasOwnProperty("storageBytesStatus")) { - object.storageBytesStatus = message.storageBytesStatus; - if (options.oneofs) - object._storageBytesStatus = "storageBytesStatus"; - } - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.sourceDiskEncryptionKey != null && message.hasOwnProperty("sourceDiskEncryptionKey")) { - object.sourceDiskEncryptionKey = $root.google.cloud.compute.v1beta.CustomerEncryptionKey.toObject(message.sourceDiskEncryptionKey, options); + if (message.sourceInstantSnapshotGroup != null && message.hasOwnProperty("sourceInstantSnapshotGroup")) { + object.sourceInstantSnapshotGroup = message.sourceInstantSnapshotGroup; if (options.oneofs) - object._sourceDiskEncryptionKey = "sourceDiskEncryptionKey"; + object._sourceInstantSnapshotGroup = "sourceInstantSnapshotGroup"; } return object; }; /** - * Converts this Snapshot to JSON. + * Converts this SnapshotGroup to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.Snapshot + * @memberof google.cloud.compute.v1beta.SnapshotGroup * @instance * @returns {Object.} JSON object */ - Snapshot.prototype.toJSON = function toJSON() { + SnapshotGroup.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Snapshot + * Gets the default type url for SnapshotGroup * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.Snapshot + * @memberof google.cloud.compute.v1beta.SnapshotGroup * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Snapshot.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SnapshotGroup.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.Snapshot"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.SnapshotGroup"; }; - /** - * Architecture enum. - * @name google.cloud.compute.v1beta.Snapshot.Architecture - * @enum {number} - * @property {number} UNDEFINED_ARCHITECTURE=0 UNDEFINED_ARCHITECTURE value - * @property {number} ARCHITECTURE_UNSPECIFIED=394750507 ARCHITECTURE_UNSPECIFIED value - * @property {number} ARM64=62547450 ARM64 value - * @property {number} X86_64=425300551 X86_64 value - */ - Snapshot.Architecture = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED_ARCHITECTURE"] = 0; - values[valuesById[394750507] = "ARCHITECTURE_UNSPECIFIED"] = 394750507; - values[valuesById[62547450] = "ARM64"] = 62547450; - values[valuesById[425300551] = "X86_64"] = 425300551; - return values; - })(); - - /** - * SnapshotType enum. - * @name google.cloud.compute.v1beta.Snapshot.SnapshotType - * @enum {number} - * @property {number} UNDEFINED_SNAPSHOT_TYPE=0 UNDEFINED_SNAPSHOT_TYPE value - * @property {number} ARCHIVE=506752162 ARCHIVE value - * @property {number} STANDARD=484642493 STANDARD value - */ - Snapshot.SnapshotType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED_SNAPSHOT_TYPE"] = 0; - values[valuesById[506752162] = "ARCHIVE"] = 506752162; - values[valuesById[484642493] = "STANDARD"] = 484642493; - return values; - })(); - /** * Status enum. - * @name google.cloud.compute.v1beta.Snapshot.Status + * @name google.cloud.compute.v1beta.SnapshotGroup.Status * @enum {number} * @property {number} UNDEFINED_STATUS=0 UNDEFINED_STATUS value * @property {number} CREATING=455564985 CREATING value * @property {number} DELETING=528602024 DELETING value * @property {number} FAILED=455706685 FAILED value + * @property {number} INVALID=530283991 INVALID value * @property {number} READY=77848963 READY value + * @property {number} UNKNOWN=433141802 UNKNOWN value * @property {number} UPLOADING=267603489 UPLOADING value */ - Snapshot.Status = (function() { + SnapshotGroup.Status = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_STATUS"] = 0; values[valuesById[455564985] = "CREATING"] = 455564985; values[valuesById[528602024] = "DELETING"] = 528602024; values[valuesById[455706685] = "FAILED"] = 455706685; + values[valuesById[530283991] = "INVALID"] = 530283991; values[valuesById[77848963] = "READY"] = 77848963; + values[valuesById[433141802] = "UNKNOWN"] = 433141802; values[valuesById[267603489] = "UPLOADING"] = 267603489; return values; })(); - /** - * StorageBytesStatus enum. - * @name google.cloud.compute.v1beta.Snapshot.StorageBytesStatus - * @enum {number} - * @property {number} UNDEFINED_STORAGE_BYTES_STATUS=0 UNDEFINED_STORAGE_BYTES_STATUS value - * @property {number} UPDATING=494614342 UPDATING value - * @property {number} UP_TO_DATE=101306702 UP_TO_DATE value - */ - Snapshot.StorageBytesStatus = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED_STORAGE_BYTES_STATUS"] = 0; - values[valuesById[494614342] = "UPDATING"] = 494614342; - values[valuesById[101306702] = "UP_TO_DATE"] = 101306702; - return values; - })(); - - return Snapshot; + return SnapshotGroup; })(); - v1beta.SnapshotAggregatedList = (function() { + v1beta.SnapshotGroupParameters = (function() { /** - * Properties of a SnapshotAggregatedList. + * Properties of a SnapshotGroupParameters. * @memberof google.cloud.compute.v1beta - * @interface ISnapshotAggregatedList - * @property {string|null} [etag] SnapshotAggregatedList etag - * @property {string|null} [id] SnapshotAggregatedList id - * @property {Object.|null} [items] SnapshotAggregatedList items - * @property {string|null} [kind] SnapshotAggregatedList kind - * @property {string|null} [nextPageToken] SnapshotAggregatedList nextPageToken - * @property {string|null} [selfLink] SnapshotAggregatedList selfLink - * @property {Array.|null} [unreachables] SnapshotAggregatedList unreachables - * @property {google.cloud.compute.v1beta.IWarning|null} [warning] SnapshotAggregatedList warning + * @interface ISnapshotGroupParameters + * @property {Array.|null} [replicaZones] SnapshotGroupParameters replicaZones + * @property {string|null} [sourceSnapshotGroup] SnapshotGroupParameters sourceSnapshotGroup + * @property {string|null} [type] SnapshotGroupParameters type */ /** - * Constructs a new SnapshotAggregatedList. + * Constructs a new SnapshotGroupParameters. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a SnapshotAggregatedList. - * @implements ISnapshotAggregatedList + * @classdesc Represents a SnapshotGroupParameters. + * @implements ISnapshotGroupParameters * @constructor - * @param {google.cloud.compute.v1beta.ISnapshotAggregatedList=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ISnapshotGroupParameters=} [properties] Properties to set */ - function SnapshotAggregatedList(properties) { - this.items = {}; - this.unreachables = []; + function SnapshotGroupParameters(properties) { + this.replicaZones = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1244175,239 +1263280,646 @@ } /** - * SnapshotAggregatedList etag. - * @member {string|null|undefined} etag - * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * SnapshotGroupParameters replicaZones. + * @member {Array.} replicaZones + * @memberof google.cloud.compute.v1beta.SnapshotGroupParameters * @instance */ - SnapshotAggregatedList.prototype.etag = null; + SnapshotGroupParameters.prototype.replicaZones = $util.emptyArray; /** - * SnapshotAggregatedList id. - * @member {string|null|undefined} id - * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * SnapshotGroupParameters sourceSnapshotGroup. + * @member {string|null|undefined} sourceSnapshotGroup + * @memberof google.cloud.compute.v1beta.SnapshotGroupParameters * @instance */ - SnapshotAggregatedList.prototype.id = null; + SnapshotGroupParameters.prototype.sourceSnapshotGroup = null; /** - * SnapshotAggregatedList items. - * @member {Object.} items - * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * SnapshotGroupParameters type. + * @member {string|null|undefined} type + * @memberof google.cloud.compute.v1beta.SnapshotGroupParameters * @instance */ - SnapshotAggregatedList.prototype.items = $util.emptyObject; + SnapshotGroupParameters.prototype.type = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotGroupParameters.prototype, "_sourceSnapshotGroup", { + get: $util.oneOfGetter($oneOfFields = ["sourceSnapshotGroup"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotGroupParameters.prototype, "_type", { + get: $util.oneOfGetter($oneOfFields = ["type"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * SnapshotAggregatedList kind. - * @member {string|null|undefined} kind - * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList - * @instance + * Creates a new SnapshotGroupParameters instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.SnapshotGroupParameters + * @static + * @param {google.cloud.compute.v1beta.ISnapshotGroupParameters=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SnapshotGroupParameters} SnapshotGroupParameters instance */ - SnapshotAggregatedList.prototype.kind = null; + SnapshotGroupParameters.create = function create(properties) { + return new SnapshotGroupParameters(properties); + }; /** - * SnapshotAggregatedList nextPageToken. - * @member {string|null|undefined} nextPageToken - * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList - * @instance + * Encodes the specified SnapshotGroupParameters message. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotGroupParameters.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.SnapshotGroupParameters + * @static + * @param {google.cloud.compute.v1beta.ISnapshotGroupParameters} message SnapshotGroupParameters message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - SnapshotAggregatedList.prototype.nextPageToken = null; + SnapshotGroupParameters.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3575610, wireType 2 =*/28604882).string(message.type); + if (message.replicaZones != null && message.replicaZones.length) + for (var i = 0; i < message.replicaZones.length; ++i) + writer.uint32(/* id 48438272, wireType 2 =*/387506178).string(message.replicaZones[i]); + if (message.sourceSnapshotGroup != null && Object.hasOwnProperty.call(message, "sourceSnapshotGroup")) + writer.uint32(/* id 225130728, wireType 2 =*/1801045826).string(message.sourceSnapshotGroup); + return writer; + }; /** - * SnapshotAggregatedList selfLink. - * @member {string|null|undefined} selfLink - * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * Encodes the specified SnapshotGroupParameters message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotGroupParameters.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.SnapshotGroupParameters + * @static + * @param {google.cloud.compute.v1beta.ISnapshotGroupParameters} message SnapshotGroupParameters message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotGroupParameters.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SnapshotGroupParameters message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.SnapshotGroupParameters + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.SnapshotGroupParameters} SnapshotGroupParameters + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotGroupParameters.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SnapshotGroupParameters(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 48438272: { + if (!(message.replicaZones && message.replicaZones.length)) + message.replicaZones = []; + message.replicaZones.push(reader.string()); + break; + } + case 225130728: { + message.sourceSnapshotGroup = reader.string(); + break; + } + case 3575610: { + message.type = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SnapshotGroupParameters message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.SnapshotGroupParameters + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.SnapshotGroupParameters} SnapshotGroupParameters + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotGroupParameters.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SnapshotGroupParameters message. + * @function verify + * @memberof google.cloud.compute.v1beta.SnapshotGroupParameters + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SnapshotGroupParameters.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.replicaZones != null && message.hasOwnProperty("replicaZones")) { + if (!Array.isArray(message.replicaZones)) + return "replicaZones: array expected"; + for (var i = 0; i < message.replicaZones.length; ++i) + if (!$util.isString(message.replicaZones[i])) + return "replicaZones: string[] expected"; + } + if (message.sourceSnapshotGroup != null && message.hasOwnProperty("sourceSnapshotGroup")) { + properties._sourceSnapshotGroup = 1; + if (!$util.isString(message.sourceSnapshotGroup)) + return "sourceSnapshotGroup: string expected"; + } + if (message.type != null && message.hasOwnProperty("type")) { + properties._type = 1; + if (!$util.isString(message.type)) + return "type: string expected"; + } + return null; + }; + + /** + * Creates a SnapshotGroupParameters message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.SnapshotGroupParameters + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.SnapshotGroupParameters} SnapshotGroupParameters + */ + SnapshotGroupParameters.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SnapshotGroupParameters) + return object; + var message = new $root.google.cloud.compute.v1beta.SnapshotGroupParameters(); + if (object.replicaZones) { + if (!Array.isArray(object.replicaZones)) + throw TypeError(".google.cloud.compute.v1beta.SnapshotGroupParameters.replicaZones: array expected"); + message.replicaZones = []; + for (var i = 0; i < object.replicaZones.length; ++i) + message.replicaZones[i] = String(object.replicaZones[i]); + } + if (object.sourceSnapshotGroup != null) + message.sourceSnapshotGroup = String(object.sourceSnapshotGroup); + if (object.type != null) + message.type = String(object.type); + return message; + }; + + /** + * Creates a plain object from a SnapshotGroupParameters message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.SnapshotGroupParameters + * @static + * @param {google.cloud.compute.v1beta.SnapshotGroupParameters} message SnapshotGroupParameters + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SnapshotGroupParameters.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.replicaZones = []; + if (message.type != null && message.hasOwnProperty("type")) { + object.type = message.type; + if (options.oneofs) + object._type = "type"; + } + if (message.replicaZones && message.replicaZones.length) { + object.replicaZones = []; + for (var j = 0; j < message.replicaZones.length; ++j) + object.replicaZones[j] = message.replicaZones[j]; + } + if (message.sourceSnapshotGroup != null && message.hasOwnProperty("sourceSnapshotGroup")) { + object.sourceSnapshotGroup = message.sourceSnapshotGroup; + if (options.oneofs) + object._sourceSnapshotGroup = "sourceSnapshotGroup"; + } + return object; + }; + + /** + * Converts this SnapshotGroupParameters to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.SnapshotGroupParameters * @instance + * @returns {Object.} JSON object */ - SnapshotAggregatedList.prototype.selfLink = null; + SnapshotGroupParameters.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * SnapshotAggregatedList unreachables. - * @member {Array.} unreachables - * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * Gets the default type url for SnapshotGroupParameters + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.SnapshotGroupParameters + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SnapshotGroupParameters.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.SnapshotGroupParameters"; + }; + + return SnapshotGroupParameters; + })(); + + v1beta.SnapshotGroupSourceInfo = (function() { + + /** + * Properties of a SnapshotGroupSourceInfo. + * @memberof google.cloud.compute.v1beta + * @interface ISnapshotGroupSourceInfo + * @property {string|null} [consistencyGroup] SnapshotGroupSourceInfo consistencyGroup + * @property {string|null} [consistencyGroupId] SnapshotGroupSourceInfo consistencyGroupId + */ + + /** + * Constructs a new SnapshotGroupSourceInfo. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a SnapshotGroupSourceInfo. + * @implements ISnapshotGroupSourceInfo + * @constructor + * @param {google.cloud.compute.v1beta.ISnapshotGroupSourceInfo=} [properties] Properties to set + */ + function SnapshotGroupSourceInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SnapshotGroupSourceInfo consistencyGroup. + * @member {string|null|undefined} consistencyGroup + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInfo * @instance */ - SnapshotAggregatedList.prototype.unreachables = $util.emptyArray; + SnapshotGroupSourceInfo.prototype.consistencyGroup = null; /** - * SnapshotAggregatedList warning. - * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning - * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * SnapshotGroupSourceInfo consistencyGroupId. + * @member {string|null|undefined} consistencyGroupId + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInfo * @instance */ - SnapshotAggregatedList.prototype.warning = null; + SnapshotGroupSourceInfo.prototype.consistencyGroupId = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(SnapshotAggregatedList.prototype, "_etag", { - get: $util.oneOfGetter($oneOfFields = ["etag"]), + Object.defineProperty(SnapshotGroupSourceInfo.prototype, "_consistencyGroup", { + get: $util.oneOfGetter($oneOfFields = ["consistencyGroup"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(SnapshotAggregatedList.prototype, "_id", { - get: $util.oneOfGetter($oneOfFields = ["id"]), + Object.defineProperty(SnapshotGroupSourceInfo.prototype, "_consistencyGroupId", { + get: $util.oneOfGetter($oneOfFields = ["consistencyGroupId"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field - Object.defineProperty(SnapshotAggregatedList.prototype, "_kind", { - get: $util.oneOfGetter($oneOfFields = ["kind"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Creates a new SnapshotGroupSourceInfo instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInfo + * @static + * @param {google.cloud.compute.v1beta.ISnapshotGroupSourceInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SnapshotGroupSourceInfo} SnapshotGroupSourceInfo instance + */ + SnapshotGroupSourceInfo.create = function create(properties) { + return new SnapshotGroupSourceInfo(properties); + }; - // Virtual OneOf for proto3 optional field - Object.defineProperty(SnapshotAggregatedList.prototype, "_nextPageToken", { - get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Encodes the specified SnapshotGroupSourceInfo message. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotGroupSourceInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInfo + * @static + * @param {google.cloud.compute.v1beta.ISnapshotGroupSourceInfo} message SnapshotGroupSourceInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotGroupSourceInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.consistencyGroupId != null && Object.hasOwnProperty.call(message, "consistencyGroupId")) + writer.uint32(/* id 85599522, wireType 2 =*/684796178).string(message.consistencyGroupId); + if (message.consistencyGroup != null && Object.hasOwnProperty.call(message, "consistencyGroup")) + writer.uint32(/* id 508183960, wireType 2 =*/4065471682).string(message.consistencyGroup); + return writer; + }; + + /** + * Encodes the specified SnapshotGroupSourceInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotGroupSourceInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInfo + * @static + * @param {google.cloud.compute.v1beta.ISnapshotGroupSourceInfo} message SnapshotGroupSourceInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotGroupSourceInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SnapshotGroupSourceInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.SnapshotGroupSourceInfo} SnapshotGroupSourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotGroupSourceInfo.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SnapshotGroupSourceInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 508183960: { + message.consistencyGroup = reader.string(); + break; + } + case 85599522: { + message.consistencyGroupId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SnapshotGroupSourceInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.SnapshotGroupSourceInfo} SnapshotGroupSourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotGroupSourceInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SnapshotGroupSourceInfo message. + * @function verify + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SnapshotGroupSourceInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.consistencyGroup != null && message.hasOwnProperty("consistencyGroup")) { + properties._consistencyGroup = 1; + if (!$util.isString(message.consistencyGroup)) + return "consistencyGroup: string expected"; + } + if (message.consistencyGroupId != null && message.hasOwnProperty("consistencyGroupId")) { + properties._consistencyGroupId = 1; + if (!$util.isString(message.consistencyGroupId)) + return "consistencyGroupId: string expected"; + } + return null; + }; + + /** + * Creates a SnapshotGroupSourceInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.SnapshotGroupSourceInfo} SnapshotGroupSourceInfo + */ + SnapshotGroupSourceInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SnapshotGroupSourceInfo) + return object; + var message = new $root.google.cloud.compute.v1beta.SnapshotGroupSourceInfo(); + if (object.consistencyGroup != null) + message.consistencyGroup = String(object.consistencyGroup); + if (object.consistencyGroupId != null) + message.consistencyGroupId = String(object.consistencyGroupId); + return message; + }; + + /** + * Creates a plain object from a SnapshotGroupSourceInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInfo + * @static + * @param {google.cloud.compute.v1beta.SnapshotGroupSourceInfo} message SnapshotGroupSourceInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SnapshotGroupSourceInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.consistencyGroupId != null && message.hasOwnProperty("consistencyGroupId")) { + object.consistencyGroupId = message.consistencyGroupId; + if (options.oneofs) + object._consistencyGroupId = "consistencyGroupId"; + } + if (message.consistencyGroup != null && message.hasOwnProperty("consistencyGroup")) { + object.consistencyGroup = message.consistencyGroup; + if (options.oneofs) + object._consistencyGroup = "consistencyGroup"; + } + return object; + }; + + /** + * Converts this SnapshotGroupSourceInfo to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInfo + * @instance + * @returns {Object.} JSON object + */ + SnapshotGroupSourceInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SnapshotGroupSourceInfo + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SnapshotGroupSourceInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.SnapshotGroupSourceInfo"; + }; + + return SnapshotGroupSourceInfo; + })(); + + v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo = (function() { + + /** + * Properties of a SnapshotGroupSourceInstantSnapshotGroupInfo. + * @memberof google.cloud.compute.v1beta + * @interface ISnapshotGroupSourceInstantSnapshotGroupInfo + * @property {string|null} [instantSnapshotGroup] SnapshotGroupSourceInstantSnapshotGroupInfo instantSnapshotGroup + * @property {string|null} [instantSnapshotGroupId] SnapshotGroupSourceInstantSnapshotGroupInfo instantSnapshotGroupId + */ + + /** + * Constructs a new SnapshotGroupSourceInstantSnapshotGroupInfo. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a SnapshotGroupSourceInstantSnapshotGroupInfo. + * @implements ISnapshotGroupSourceInstantSnapshotGroupInfo + * @constructor + * @param {google.cloud.compute.v1beta.ISnapshotGroupSourceInstantSnapshotGroupInfo=} [properties] Properties to set + */ + function SnapshotGroupSourceInstantSnapshotGroupInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SnapshotGroupSourceInstantSnapshotGroupInfo instantSnapshotGroup. + * @member {string|null|undefined} instantSnapshotGroup + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo + * @instance + */ + SnapshotGroupSourceInstantSnapshotGroupInfo.prototype.instantSnapshotGroup = null; + + /** + * SnapshotGroupSourceInstantSnapshotGroupInfo instantSnapshotGroupId. + * @member {string|null|undefined} instantSnapshotGroupId + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo + * @instance + */ + SnapshotGroupSourceInstantSnapshotGroupInfo.prototype.instantSnapshotGroupId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(SnapshotAggregatedList.prototype, "_selfLink", { - get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + Object.defineProperty(SnapshotGroupSourceInstantSnapshotGroupInfo.prototype, "_instantSnapshotGroup", { + get: $util.oneOfGetter($oneOfFields = ["instantSnapshotGroup"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(SnapshotAggregatedList.prototype, "_warning", { - get: $util.oneOfGetter($oneOfFields = ["warning"]), + Object.defineProperty(SnapshotGroupSourceInstantSnapshotGroupInfo.prototype, "_instantSnapshotGroupId", { + get: $util.oneOfGetter($oneOfFields = ["instantSnapshotGroupId"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new SnapshotAggregatedList instance using the specified properties. + * Creates a new SnapshotGroupSourceInstantSnapshotGroupInfo instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo * @static - * @param {google.cloud.compute.v1beta.ISnapshotAggregatedList=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.SnapshotAggregatedList} SnapshotAggregatedList instance + * @param {google.cloud.compute.v1beta.ISnapshotGroupSourceInstantSnapshotGroupInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo} SnapshotGroupSourceInstantSnapshotGroupInfo instance */ - SnapshotAggregatedList.create = function create(properties) { - return new SnapshotAggregatedList(properties); + SnapshotGroupSourceInstantSnapshotGroupInfo.create = function create(properties) { + return new SnapshotGroupSourceInstantSnapshotGroupInfo(properties); }; /** - * Encodes the specified SnapshotAggregatedList message. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotAggregatedList.verify|verify} messages. + * Encodes the specified SnapshotGroupSourceInstantSnapshotGroupInfo message. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo * @static - * @param {google.cloud.compute.v1beta.ISnapshotAggregatedList} message SnapshotAggregatedList message or plain object to encode + * @param {google.cloud.compute.v1beta.ISnapshotGroupSourceInstantSnapshotGroupInfo} message SnapshotGroupSourceInstantSnapshotGroupInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SnapshotAggregatedList.encode = function encode(message, writer) { + SnapshotGroupSourceInstantSnapshotGroupInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 3123477, wireType 2 =*/24987818).string(message.etag); - if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) - writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); - if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) - $root.google.cloud.compute.v1beta.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); - if (message.items != null && Object.hasOwnProperty.call(message, "items")) - for (var keys = Object.keys(message.items), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.compute.v1beta.SnapshotsScopedList.encode(message.items[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.unreachables != null && message.unreachables.length) - for (var i = 0; i < message.unreachables.length; ++i) - writer.uint32(/* id 243372063, wireType 2 =*/1946976506).string(message.unreachables[i]); - if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) - writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + if (message.instantSnapshotGroupId != null && Object.hasOwnProperty.call(message, "instantSnapshotGroupId")) + writer.uint32(/* id 157599768, wireType 2 =*/1260798146).string(message.instantSnapshotGroupId); + if (message.instantSnapshotGroup != null && Object.hasOwnProperty.call(message, "instantSnapshotGroup")) + writer.uint32(/* id 223180386, wireType 2 =*/1785443090).string(message.instantSnapshotGroup); return writer; }; /** - * Encodes the specified SnapshotAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotAggregatedList.verify|verify} messages. + * Encodes the specified SnapshotGroupSourceInstantSnapshotGroupInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo * @static - * @param {google.cloud.compute.v1beta.ISnapshotAggregatedList} message SnapshotAggregatedList message or plain object to encode + * @param {google.cloud.compute.v1beta.ISnapshotGroupSourceInstantSnapshotGroupInfo} message SnapshotGroupSourceInstantSnapshotGroupInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SnapshotAggregatedList.encodeDelimited = function encodeDelimited(message, writer) { + SnapshotGroupSourceInstantSnapshotGroupInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SnapshotAggregatedList message from the specified reader or buffer. + * Decodes a SnapshotGroupSourceInstantSnapshotGroupInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.SnapshotAggregatedList} SnapshotAggregatedList + * @returns {google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo} SnapshotGroupSourceInstantSnapshotGroupInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SnapshotAggregatedList.decode = function decode(reader, length, error) { + SnapshotGroupSourceInstantSnapshotGroupInfo.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SnapshotAggregatedList(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 3123477: { - message.etag = reader.string(); - break; - } - case 3355: { - message.id = reader.string(); - break; - } - case 100526016: { - if (message.items === $util.emptyObject) - message.items = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.compute.v1beta.SnapshotsScopedList.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.items[key] = value; - break; - } - case 3292052: { - message.kind = reader.string(); - break; - } - case 79797525: { - message.nextPageToken = reader.string(); - break; - } - case 456214797: { - message.selfLink = reader.string(); + case 223180386: { + message.instantSnapshotGroup = reader.string(); break; } - case 243372063: { - if (!(message.unreachables && message.unreachables.length)) - message.unreachables = []; - message.unreachables.push(reader.string()); - break; - } - case 50704284: { - message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); + case 157599768: { + message.instantSnapshotGroupId = reader.string(); break; } default: @@ -1244419,221 +1263931,118 @@ }; /** - * Decodes a SnapshotAggregatedList message from the specified reader or buffer, length delimited. + * Decodes a SnapshotGroupSourceInstantSnapshotGroupInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.SnapshotAggregatedList} SnapshotAggregatedList + * @returns {google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo} SnapshotGroupSourceInstantSnapshotGroupInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SnapshotAggregatedList.decodeDelimited = function decodeDelimited(reader) { + SnapshotGroupSourceInstantSnapshotGroupInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SnapshotAggregatedList message. + * Verifies a SnapshotGroupSourceInstantSnapshotGroupInfo message. * @function verify - * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SnapshotAggregatedList.verify = function verify(message) { + SnapshotGroupSourceInstantSnapshotGroupInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.etag != null && message.hasOwnProperty("etag")) { - properties._etag = 1; - if (!$util.isString(message.etag)) - return "etag: string expected"; - } - if (message.id != null && message.hasOwnProperty("id")) { - properties._id = 1; - if (!$util.isString(message.id)) - return "id: string expected"; - } - if (message.items != null && message.hasOwnProperty("items")) { - if (!$util.isObject(message.items)) - return "items: object expected"; - var key = Object.keys(message.items); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.compute.v1beta.SnapshotsScopedList.verify(message.items[key[i]]); - if (error) - return "items." + error; - } - } - if (message.kind != null && message.hasOwnProperty("kind")) { - properties._kind = 1; - if (!$util.isString(message.kind)) - return "kind: string expected"; - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { - properties._nextPageToken = 1; - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.instantSnapshotGroup != null && message.hasOwnProperty("instantSnapshotGroup")) { + properties._instantSnapshotGroup = 1; + if (!$util.isString(message.instantSnapshotGroup)) + return "instantSnapshotGroup: string expected"; } - if (message.selfLink != null && message.hasOwnProperty("selfLink")) { - properties._selfLink = 1; - if (!$util.isString(message.selfLink)) - return "selfLink: string expected"; - } - if (message.unreachables != null && message.hasOwnProperty("unreachables")) { - if (!Array.isArray(message.unreachables)) - return "unreachables: array expected"; - for (var i = 0; i < message.unreachables.length; ++i) - if (!$util.isString(message.unreachables[i])) - return "unreachables: string[] expected"; - } - if (message.warning != null && message.hasOwnProperty("warning")) { - properties._warning = 1; - { - var error = $root.google.cloud.compute.v1beta.Warning.verify(message.warning); - if (error) - return "warning." + error; - } + if (message.instantSnapshotGroupId != null && message.hasOwnProperty("instantSnapshotGroupId")) { + properties._instantSnapshotGroupId = 1; + if (!$util.isString(message.instantSnapshotGroupId)) + return "instantSnapshotGroupId: string expected"; } return null; }; /** - * Creates a SnapshotAggregatedList message from a plain object. Also converts values to their respective internal types. + * Creates a SnapshotGroupSourceInstantSnapshotGroupInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.SnapshotAggregatedList} SnapshotAggregatedList + * @returns {google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo} SnapshotGroupSourceInstantSnapshotGroupInfo */ - SnapshotAggregatedList.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.SnapshotAggregatedList) + SnapshotGroupSourceInstantSnapshotGroupInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo) return object; - var message = new $root.google.cloud.compute.v1beta.SnapshotAggregatedList(); - if (object.etag != null) - message.etag = String(object.etag); - if (object.id != null) - message.id = String(object.id); - if (object.items) { - if (typeof object.items !== "object") - throw TypeError(".google.cloud.compute.v1beta.SnapshotAggregatedList.items: object expected"); - message.items = {}; - for (var keys = Object.keys(object.items), i = 0; i < keys.length; ++i) { - if (typeof object.items[keys[i]] !== "object") - throw TypeError(".google.cloud.compute.v1beta.SnapshotAggregatedList.items: object expected"); - message.items[keys[i]] = $root.google.cloud.compute.v1beta.SnapshotsScopedList.fromObject(object.items[keys[i]]); - } - } - if (object.kind != null) - message.kind = String(object.kind); - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.selfLink != null) - message.selfLink = String(object.selfLink); - if (object.unreachables) { - if (!Array.isArray(object.unreachables)) - throw TypeError(".google.cloud.compute.v1beta.SnapshotAggregatedList.unreachables: array expected"); - message.unreachables = []; - for (var i = 0; i < object.unreachables.length; ++i) - message.unreachables[i] = String(object.unreachables[i]); - } - if (object.warning != null) { - if (typeof object.warning !== "object") - throw TypeError(".google.cloud.compute.v1beta.SnapshotAggregatedList.warning: object expected"); - message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); - } + var message = new $root.google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo(); + if (object.instantSnapshotGroup != null) + message.instantSnapshotGroup = String(object.instantSnapshotGroup); + if (object.instantSnapshotGroupId != null) + message.instantSnapshotGroupId = String(object.instantSnapshotGroupId); return message; }; /** - * Creates a plain object from a SnapshotAggregatedList message. Also converts values to other types if specified. + * Creates a plain object from a SnapshotGroupSourceInstantSnapshotGroupInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo * @static - * @param {google.cloud.compute.v1beta.SnapshotAggregatedList} message SnapshotAggregatedList + * @param {google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo} message SnapshotGroupSourceInstantSnapshotGroupInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SnapshotAggregatedList.toObject = function toObject(message, options) { + SnapshotGroupSourceInstantSnapshotGroupInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.unreachables = []; - if (options.objects || options.defaults) - object.items = {}; - if (message.id != null && message.hasOwnProperty("id")) { - object.id = message.id; - if (options.oneofs) - object._id = "id"; - } - if (message.etag != null && message.hasOwnProperty("etag")) { - object.etag = message.etag; - if (options.oneofs) - object._etag = "etag"; - } - if (message.kind != null && message.hasOwnProperty("kind")) { - object.kind = message.kind; - if (options.oneofs) - object._kind = "kind"; - } - if (message.warning != null && message.hasOwnProperty("warning")) { - object.warning = $root.google.cloud.compute.v1beta.Warning.toObject(message.warning, options); - if (options.oneofs) - object._warning = "warning"; - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { - object.nextPageToken = message.nextPageToken; + if (message.instantSnapshotGroupId != null && message.hasOwnProperty("instantSnapshotGroupId")) { + object.instantSnapshotGroupId = message.instantSnapshotGroupId; if (options.oneofs) - object._nextPageToken = "nextPageToken"; + object._instantSnapshotGroupId = "instantSnapshotGroupId"; } - var keys2; - if (message.items && (keys2 = Object.keys(message.items)).length) { - object.items = {}; - for (var j = 0; j < keys2.length; ++j) - object.items[keys2[j]] = $root.google.cloud.compute.v1beta.SnapshotsScopedList.toObject(message.items[keys2[j]], options); - } - if (message.unreachables && message.unreachables.length) { - object.unreachables = []; - for (var j = 0; j < message.unreachables.length; ++j) - object.unreachables[j] = message.unreachables[j]; - } - if (message.selfLink != null && message.hasOwnProperty("selfLink")) { - object.selfLink = message.selfLink; + if (message.instantSnapshotGroup != null && message.hasOwnProperty("instantSnapshotGroup")) { + object.instantSnapshotGroup = message.instantSnapshotGroup; if (options.oneofs) - object._selfLink = "selfLink"; + object._instantSnapshotGroup = "instantSnapshotGroup"; } return object; }; /** - * Converts this SnapshotAggregatedList to JSON. + * Converts this SnapshotGroupSourceInstantSnapshotGroupInfo to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo * @instance * @returns {Object.} JSON object */ - SnapshotAggregatedList.prototype.toJSON = function toJSON() { + SnapshotGroupSourceInstantSnapshotGroupInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SnapshotAggregatedList + * Gets the default type url for SnapshotGroupSourceInstantSnapshotGroupInfo * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.SnapshotAggregatedList + * @memberof google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SnapshotAggregatedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SnapshotGroupSourceInstantSnapshotGroupInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.SnapshotAggregatedList"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.SnapshotGroupSourceInstantSnapshotGroupInfo"; }; - return SnapshotAggregatedList; + return SnapshotGroupSourceInstantSnapshotGroupInfo; })(); v1beta.SnapshotList = (function() { @@ -1286795,6 +1306204,7 @@ * @property {Object.|null} [labels] TargetVpnGateway labels * @property {string|null} [name] TargetVpnGateway name * @property {string|null} [network] TargetVpnGateway network + * @property {google.cloud.compute.v1beta.ITargetVpnGatewayParams|null} [params] TargetVpnGateway params * @property {string|null} [region] TargetVpnGateway region * @property {string|null} [selfLink] TargetVpnGateway selfLink * @property {string|null} [status] TargetVpnGateway status @@ -1286891,6 +1306301,14 @@ */ TargetVpnGateway.prototype.network = null; + /** + * TargetVpnGateway params. + * @member {google.cloud.compute.v1beta.ITargetVpnGatewayParams|null|undefined} params + * @memberof google.cloud.compute.v1beta.TargetVpnGateway + * @instance + */ + TargetVpnGateway.prototype.params = null; + /** * TargetVpnGateway region. * @member {string|null|undefined} region @@ -1286968,6 +1306386,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(TargetVpnGateway.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(TargetVpnGateway.prototype, "_region", { get: $util.oneOfGetter($oneOfFields = ["region"]), @@ -1287018,6 +1306442,8 @@ writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1beta.TargetVpnGatewayParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.tunnels != null && message.tunnels.length) for (var i = 0; i < message.tunnels.length; ++i) writer.uint32(/* id 104561931, wireType 2 =*/836495450).string(message.tunnels[i]); @@ -1287132,6 +1306558,10 @@ message.network = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1beta.TargetVpnGatewayParams.decode(reader, reader.uint32()); + break; + } case 138946292: { message.region = reader.string(); break; @@ -1287236,6 +1306666,14 @@ if (!$util.isString(message.network)) return "network: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1beta.TargetVpnGatewayParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.region != null && message.hasOwnProperty("region")) { properties._region = 1; if (!$util.isString(message.region)) @@ -1287308,6 +1306746,11 @@ message.name = String(object.name); if (object.network != null) message.network = String(object.network); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1beta.TargetVpnGateway.params: object expected"); + message.params = $root.google.cloud.compute.v1beta.TargetVpnGatewayParams.fromObject(object.params); + } if (object.region != null) message.region = String(object.region); if (object.selfLink != null) @@ -1287366,6 +1306809,11 @@ if (options.oneofs) object._creationTimestamp = "creationTimestamp"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1beta.TargetVpnGatewayParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } if (message.tunnels && message.tunnels.length) { object.tunnels = []; for (var j = 0; j < message.tunnels.length; ++j) @@ -1288327,6 +1307775,246 @@ return TargetVpnGatewayList; })(); + v1beta.TargetVpnGatewayParams = (function() { + + /** + * Properties of a TargetVpnGatewayParams. + * @memberof google.cloud.compute.v1beta + * @interface ITargetVpnGatewayParams + * @property {Object.|null} [resourceManagerTags] TargetVpnGatewayParams resourceManagerTags + */ + + /** + * Constructs a new TargetVpnGatewayParams. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a TargetVpnGatewayParams. + * @implements ITargetVpnGatewayParams + * @constructor + * @param {google.cloud.compute.v1beta.ITargetVpnGatewayParams=} [properties] Properties to set + */ + function TargetVpnGatewayParams(properties) { + this.resourceManagerTags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TargetVpnGatewayParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1beta.TargetVpnGatewayParams + * @instance + */ + TargetVpnGatewayParams.prototype.resourceManagerTags = $util.emptyObject; + + /** + * Creates a new TargetVpnGatewayParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.TargetVpnGatewayParams + * @static + * @param {google.cloud.compute.v1beta.ITargetVpnGatewayParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TargetVpnGatewayParams} TargetVpnGatewayParams instance + */ + TargetVpnGatewayParams.create = function create(properties) { + return new TargetVpnGatewayParams(properties); + }; + + /** + * Encodes the specified TargetVpnGatewayParams message. Does not implicitly {@link google.cloud.compute.v1beta.TargetVpnGatewayParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.TargetVpnGatewayParams + * @static + * @param {google.cloud.compute.v1beta.ITargetVpnGatewayParams} message TargetVpnGatewayParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TargetVpnGatewayParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + for (var keys = Object.keys(message.resourceManagerTags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 377671164, wireType 2 =*/3021369314).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceManagerTags[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified TargetVpnGatewayParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TargetVpnGatewayParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.TargetVpnGatewayParams + * @static + * @param {google.cloud.compute.v1beta.ITargetVpnGatewayParams} message TargetVpnGatewayParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TargetVpnGatewayParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TargetVpnGatewayParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.TargetVpnGatewayParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.TargetVpnGatewayParams} TargetVpnGatewayParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TargetVpnGatewayParams.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TargetVpnGatewayParams(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 377671164: { + if (message.resourceManagerTags === $util.emptyObject) + message.resourceManagerTags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.resourceManagerTags[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TargetVpnGatewayParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.TargetVpnGatewayParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.TargetVpnGatewayParams} TargetVpnGatewayParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TargetVpnGatewayParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TargetVpnGatewayParams message. + * @function verify + * @memberof google.cloud.compute.v1beta.TargetVpnGatewayParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TargetVpnGatewayParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + if (!$util.isObject(message.resourceManagerTags)) + return "resourceManagerTags: object expected"; + var key = Object.keys(message.resourceManagerTags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourceManagerTags[key[i]])) + return "resourceManagerTags: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a TargetVpnGatewayParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.TargetVpnGatewayParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.TargetVpnGatewayParams} TargetVpnGatewayParams + */ + TargetVpnGatewayParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TargetVpnGatewayParams) + return object; + var message = new $root.google.cloud.compute.v1beta.TargetVpnGatewayParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1beta.TargetVpnGatewayParams.resourceManagerTags: object expected"); + message.resourceManagerTags = {}; + for (var keys = Object.keys(object.resourceManagerTags), i = 0; i < keys.length; ++i) + message.resourceManagerTags[keys[i]] = String(object.resourceManagerTags[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a TargetVpnGatewayParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.TargetVpnGatewayParams + * @static + * @param {google.cloud.compute.v1beta.TargetVpnGatewayParams} message TargetVpnGatewayParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TargetVpnGatewayParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.resourceManagerTags = {}; + var keys2; + if (message.resourceManagerTags && (keys2 = Object.keys(message.resourceManagerTags)).length) { + object.resourceManagerTags = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourceManagerTags[keys2[j]] = message.resourceManagerTags[keys2[j]]; + } + return object; + }; + + /** + * Converts this TargetVpnGatewayParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.TargetVpnGatewayParams + * @instance + * @returns {Object.} JSON object + */ + TargetVpnGatewayParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TargetVpnGatewayParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.TargetVpnGatewayParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TargetVpnGatewayParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.TargetVpnGatewayParams"; + }; + + return TargetVpnGatewayParams; + })(); + v1beta.TargetVpnGatewaysScopedList = (function() { /** @@ -1292932,30 +1312620,310 @@ }; /** - * Decodes a TestIamPermissionsInstanceGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsInstanceGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest} TestIamPermissionsInstanceGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsInstanceGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsInstanceGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestIamPermissionsInstanceGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) { + var error = $root.google.cloud.compute.v1beta.TestPermissionsRequest.verify(message.testPermissionsRequestResource); + if (error) + return "testPermissionsRequestResource." + error; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a TestIamPermissionsInstanceGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest} TestIamPermissionsInstanceGroupRequest + */ + TestIamPermissionsInstanceGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.resource != null) + message.resource = String(object.resource); + if (object.testPermissionsRequestResource != null) { + if (typeof object.testPermissionsRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest.testPermissionsRequestResource: object expected"); + message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); + } + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a TestIamPermissionsInstanceGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest + * @static + * @param {google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest} message TestIamPermissionsInstanceGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestIamPermissionsInstanceGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.resource = ""; + object.project = ""; + object.testPermissionsRequestResource = null; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) + object.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.toObject(message.testPermissionsRequestResource, options); + return object; + }; + + /** + * Converts this TestIamPermissionsInstanceGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest + * @instance + * @returns {Object.} JSON object + */ + TestIamPermissionsInstanceGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TestIamPermissionsInstanceGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TestIamPermissionsInstanceGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest"; + }; + + return TestIamPermissionsInstanceGroupRequest; + })(); + + v1beta.TestIamPermissionsInstanceRequest = (function() { + + /** + * Properties of a TestIamPermissionsInstanceRequest. + * @memberof google.cloud.compute.v1beta + * @interface ITestIamPermissionsInstanceRequest + * @property {string|null} [project] TestIamPermissionsInstanceRequest project + * @property {string|null} [resource] TestIamPermissionsInstanceRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsInstanceRequest testPermissionsRequestResource + * @property {string|null} [zone] TestIamPermissionsInstanceRequest zone + */ + + /** + * Constructs a new TestIamPermissionsInstanceRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a TestIamPermissionsInstanceRequest. + * @implements ITestIamPermissionsInstanceRequest + * @constructor + * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstanceRequest=} [properties] Properties to set + */ + function TestIamPermissionsInstanceRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TestIamPermissionsInstanceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @instance + */ + TestIamPermissionsInstanceRequest.prototype.project = ""; + + /** + * TestIamPermissionsInstanceRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @instance + */ + TestIamPermissionsInstanceRequest.prototype.resource = ""; + + /** + * TestIamPermissionsInstanceRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @instance + */ + TestIamPermissionsInstanceRequest.prototype.testPermissionsRequestResource = null; + + /** + * TestIamPermissionsInstanceRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @instance + */ + TestIamPermissionsInstanceRequest.prototype.zone = ""; + + /** + * Creates a new TestIamPermissionsInstanceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstanceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest} TestIamPermissionsInstanceRequest instance + */ + TestIamPermissionsInstanceRequest.create = function create(properties) { + return new TestIamPermissionsInstanceRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsInstanceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstanceRequest} message TestIamPermissionsInstanceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsInstanceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.testPermissionsRequestResource != null && Object.hasOwnProperty.call(message, "testPermissionsRequestResource")) + $root.google.cloud.compute.v1beta.TestPermissionsRequest.encode(message.testPermissionsRequestResource, writer.uint32(/* id 439214758, wireType 2 =*/3513718066).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TestIamPermissionsInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstanceRequest} message TestIamPermissionsInstanceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsInstanceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest} TestIamPermissionsInstanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsInstanceRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + case 439214758: { + message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.decode(reader, reader.uint32()); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TestIamPermissionsInstanceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest} TestIamPermissionsInstanceGroupRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest} TestIamPermissionsInstanceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsInstanceGroupRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsInstanceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsInstanceGroupRequest message. + * Verifies a TestIamPermissionsInstanceRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsInstanceGroupRequest.verify = function verify(message) { + TestIamPermissionsInstanceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1292976,24 +1312944,24 @@ }; /** - * Creates a TestIamPermissionsInstanceGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsInstanceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest} TestIamPermissionsInstanceGroupRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest} TestIamPermissionsInstanceRequest */ - TestIamPermissionsInstanceGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest) + TestIamPermissionsInstanceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest(); if (object.project != null) message.project = String(object.project); if (object.resource != null) message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } if (object.zone != null) @@ -1293002,15 +1312970,15 @@ }; /** - * Creates a plain object from a TestIamPermissionsInstanceGroupRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsInstanceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest} message TestIamPermissionsInstanceGroupRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest} message TestIamPermissionsInstanceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsInstanceGroupRequest.toObject = function toObject(message, options) { + TestIamPermissionsInstanceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1293032,55 +1313000,54 @@ }; /** - * Converts this TestIamPermissionsInstanceGroupRequest to JSON. + * Converts this TestIamPermissionsInstanceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsInstanceGroupRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsInstanceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsInstanceGroupRequest + * Gets the default type url for TestIamPermissionsInstanceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsInstanceGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsInstanceGroupRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest"; }; - return TestIamPermissionsInstanceGroupRequest; + return TestIamPermissionsInstanceRequest; })(); - v1beta.TestIamPermissionsInstanceRequest = (function() { + v1beta.TestIamPermissionsInstanceTemplateRequest = (function() { /** - * Properties of a TestIamPermissionsInstanceRequest. + * Properties of a TestIamPermissionsInstanceTemplateRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsInstanceRequest - * @property {string|null} [project] TestIamPermissionsInstanceRequest project - * @property {string|null} [resource] TestIamPermissionsInstanceRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsInstanceRequest testPermissionsRequestResource - * @property {string|null} [zone] TestIamPermissionsInstanceRequest zone + * @interface ITestIamPermissionsInstanceTemplateRequest + * @property {string|null} [project] TestIamPermissionsInstanceTemplateRequest project + * @property {string|null} [resource] TestIamPermissionsInstanceTemplateRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsInstanceTemplateRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsInstanceRequest. + * Constructs a new TestIamPermissionsInstanceTemplateRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsInstanceRequest. - * @implements ITestIamPermissionsInstanceRequest + * @classdesc Represents a TestIamPermissionsInstanceTemplateRequest. + * @implements ITestIamPermissionsInstanceTemplateRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstanceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstanceTemplateRequest=} [properties] Properties to set */ - function TestIamPermissionsInstanceRequest(properties) { + function TestIamPermissionsInstanceTemplateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1293088,63 +1313055,53 @@ } /** - * TestIamPermissionsInstanceRequest project. + * TestIamPermissionsInstanceTemplateRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest * @instance */ - TestIamPermissionsInstanceRequest.prototype.project = ""; + TestIamPermissionsInstanceTemplateRequest.prototype.project = ""; /** - * TestIamPermissionsInstanceRequest resource. + * TestIamPermissionsInstanceTemplateRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest * @instance */ - TestIamPermissionsInstanceRequest.prototype.resource = ""; + TestIamPermissionsInstanceTemplateRequest.prototype.resource = ""; /** - * TestIamPermissionsInstanceRequest testPermissionsRequestResource. + * TestIamPermissionsInstanceTemplateRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest - * @instance - */ - TestIamPermissionsInstanceRequest.prototype.testPermissionsRequestResource = null; - - /** - * TestIamPermissionsInstanceRequest zone. - * @member {string} zone - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest * @instance */ - TestIamPermissionsInstanceRequest.prototype.zone = ""; + TestIamPermissionsInstanceTemplateRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsInstanceRequest instance using the specified properties. + * Creates a new TestIamPermissionsInstanceTemplateRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstanceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest} TestIamPermissionsInstanceRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstanceTemplateRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest} TestIamPermissionsInstanceTemplateRequest instance */ - TestIamPermissionsInstanceRequest.create = function create(properties) { - return new TestIamPermissionsInstanceRequest(properties); + TestIamPermissionsInstanceTemplateRequest.create = function create(properties) { + return new TestIamPermissionsInstanceTemplateRequest(properties); }; /** - * Encodes the specified TestIamPermissionsInstanceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsInstanceTemplateRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstanceRequest} message TestIamPermissionsInstanceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstanceTemplateRequest} message TestIamPermissionsInstanceTemplateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsInstanceRequest.encode = function encode(message, writer) { + TestIamPermissionsInstanceTemplateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -1293155,33 +1313112,33 @@ }; /** - * Encodes the specified TestIamPermissionsInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsInstanceTemplateRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstanceRequest} message TestIamPermissionsInstanceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstanceTemplateRequest} message TestIamPermissionsInstanceTemplateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsInstanceTemplateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsInstanceRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsInstanceTemplateRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest} TestIamPermissionsInstanceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest} TestIamPermissionsInstanceTemplateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsInstanceRequest.decode = function decode(reader, length, error) { + TestIamPermissionsInstanceTemplateRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1293199,10 +1313156,6 @@ message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.decode(reader, reader.uint32()); break; } - case 3744684: { - message.zone = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -1293212,30 +1313165,30 @@ }; /** - * Decodes a TestIamPermissionsInstanceRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsInstanceTemplateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest} TestIamPermissionsInstanceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest} TestIamPermissionsInstanceTemplateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsInstanceRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsInstanceTemplateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsInstanceRequest message. + * Verifies a TestIamPermissionsInstanceTemplateRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsInstanceRequest.verify = function verify(message) { + TestIamPermissionsInstanceTemplateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1293249,59 +1313202,51 @@ if (error) return "testPermissionsRequestResource." + error; } - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; return null; }; /** - * Creates a TestIamPermissionsInstanceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsInstanceTemplateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest} TestIamPermissionsInstanceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest} TestIamPermissionsInstanceTemplateRequest */ - TestIamPermissionsInstanceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest) + TestIamPermissionsInstanceTemplateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest(); if (object.project != null) message.project = String(object.project); if (object.resource != null) message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } - if (object.zone != null) - message.zone = String(object.zone); return message; }; /** - * Creates a plain object from a TestIamPermissionsInstanceRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsInstanceTemplateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest} message TestIamPermissionsInstanceRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest} message TestIamPermissionsInstanceTemplateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsInstanceRequest.toObject = function toObject(message, options) { + TestIamPermissionsInstanceTemplateRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.zone = ""; object.resource = ""; object.project = ""; object.testPermissionsRequestResource = null; } - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; if (message.resource != null && message.hasOwnProperty("resource")) object.resource = message.resource; if (message.project != null && message.hasOwnProperty("project")) @@ -1293312,54 +1313257,55 @@ }; /** - * Converts this TestIamPermissionsInstanceRequest to JSON. + * Converts this TestIamPermissionsInstanceTemplateRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsInstanceRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsInstanceTemplateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsInstanceRequest + * Gets the default type url for TestIamPermissionsInstanceTemplateRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsInstanceTemplateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsInstanceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest"; }; - return TestIamPermissionsInstanceRequest; + return TestIamPermissionsInstanceTemplateRequest; })(); - v1beta.TestIamPermissionsInstanceTemplateRequest = (function() { + v1beta.TestIamPermissionsInstantSnapshotGroupRequest = (function() { /** - * Properties of a TestIamPermissionsInstanceTemplateRequest. + * Properties of a TestIamPermissionsInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsInstanceTemplateRequest - * @property {string|null} [project] TestIamPermissionsInstanceTemplateRequest project - * @property {string|null} [resource] TestIamPermissionsInstanceTemplateRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsInstanceTemplateRequest testPermissionsRequestResource + * @interface ITestIamPermissionsInstantSnapshotGroupRequest + * @property {string|null} [project] TestIamPermissionsInstantSnapshotGroupRequest project + * @property {string|null} [resource] TestIamPermissionsInstantSnapshotGroupRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsInstantSnapshotGroupRequest testPermissionsRequestResource + * @property {string|null} [zone] TestIamPermissionsInstantSnapshotGroupRequest zone */ /** - * Constructs a new TestIamPermissionsInstanceTemplateRequest. + * Constructs a new TestIamPermissionsInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsInstanceTemplateRequest. - * @implements ITestIamPermissionsInstanceTemplateRequest + * @classdesc Represents a TestIamPermissionsInstantSnapshotGroupRequest. + * @implements ITestIamPermissionsInstantSnapshotGroupRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstanceTemplateRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest=} [properties] Properties to set */ - function TestIamPermissionsInstanceTemplateRequest(properties) { + function TestIamPermissionsInstantSnapshotGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1293367,53 +1313313,63 @@ } /** - * TestIamPermissionsInstanceTemplateRequest project. + * TestIamPermissionsInstantSnapshotGroupRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest * @instance */ - TestIamPermissionsInstanceTemplateRequest.prototype.project = ""; + TestIamPermissionsInstantSnapshotGroupRequest.prototype.project = ""; /** - * TestIamPermissionsInstanceTemplateRequest resource. + * TestIamPermissionsInstantSnapshotGroupRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest * @instance */ - TestIamPermissionsInstanceTemplateRequest.prototype.resource = ""; + TestIamPermissionsInstantSnapshotGroupRequest.prototype.resource = ""; /** - * TestIamPermissionsInstanceTemplateRequest testPermissionsRequestResource. + * TestIamPermissionsInstantSnapshotGroupRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest * @instance */ - TestIamPermissionsInstanceTemplateRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsInstantSnapshotGroupRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsInstanceTemplateRequest instance using the specified properties. + * TestIamPermissionsInstantSnapshotGroupRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest + * @instance + */ + TestIamPermissionsInstantSnapshotGroupRequest.prototype.zone = ""; + + /** + * Creates a new TestIamPermissionsInstantSnapshotGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstanceTemplateRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest} TestIamPermissionsInstanceTemplateRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest} TestIamPermissionsInstantSnapshotGroupRequest instance */ - TestIamPermissionsInstanceTemplateRequest.create = function create(properties) { - return new TestIamPermissionsInstanceTemplateRequest(properties); + TestIamPermissionsInstantSnapshotGroupRequest.create = function create(properties) { + return new TestIamPermissionsInstantSnapshotGroupRequest(properties); }; /** - * Encodes the specified TestIamPermissionsInstanceTemplateRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstanceTemplateRequest} message TestIamPermissionsInstanceTemplateRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest} message TestIamPermissionsInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsInstanceTemplateRequest.encode = function encode(message, writer) { + TestIamPermissionsInstantSnapshotGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -1293424,33 +1313380,33 @@ }; /** - * Encodes the specified TestIamPermissionsInstanceTemplateRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstanceTemplateRequest} message TestIamPermissionsInstanceTemplateRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest} message TestIamPermissionsInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsInstanceTemplateRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsInstanceTemplateRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsInstantSnapshotGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest} TestIamPermissionsInstanceTemplateRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest} TestIamPermissionsInstantSnapshotGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsInstanceTemplateRequest.decode = function decode(reader, length, error) { + TestIamPermissionsInstantSnapshotGroupRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1293468,6 +1313424,10 @@ message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.decode(reader, reader.uint32()); break; } + case 3744684: { + message.zone = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -1293477,30 +1313437,30 @@ }; /** - * Decodes a TestIamPermissionsInstanceTemplateRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest} TestIamPermissionsInstanceTemplateRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest} TestIamPermissionsInstantSnapshotGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsInstanceTemplateRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsInstanceTemplateRequest message. + * Verifies a TestIamPermissionsInstantSnapshotGroupRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsInstanceTemplateRequest.verify = function verify(message) { + TestIamPermissionsInstantSnapshotGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1293514,51 +1313474,59 @@ if (error) return "testPermissionsRequestResource." + error; } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; return null; }; /** - * Creates a TestIamPermissionsInstanceTemplateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest} TestIamPermissionsInstanceTemplateRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest} TestIamPermissionsInstantSnapshotGroupRequest */ - TestIamPermissionsInstanceTemplateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest) + TestIamPermissionsInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest(); if (object.project != null) message.project = String(object.project); if (object.resource != null) message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } + if (object.zone != null) + message.zone = String(object.zone); return message; }; /** - * Creates a plain object from a TestIamPermissionsInstanceTemplateRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsInstantSnapshotGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest} message TestIamPermissionsInstanceTemplateRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest} message TestIamPermissionsInstantSnapshotGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsInstanceTemplateRequest.toObject = function toObject(message, options) { + TestIamPermissionsInstantSnapshotGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.zone = ""; object.resource = ""; object.project = ""; object.testPermissionsRequestResource = null; } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; if (message.resource != null && message.hasOwnProperty("resource")) object.resource = message.resource; if (message.project != null && message.hasOwnProperty("project")) @@ -1293569,32 +1313537,32 @@ }; /** - * Converts this TestIamPermissionsInstanceTemplateRequest to JSON. + * Converts this TestIamPermissionsInstantSnapshotGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsInstanceTemplateRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsInstanceTemplateRequest + * Gets the default type url for TestIamPermissionsInstantSnapshotGroupRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsInstanceTemplateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsInstanceTemplateRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest"; }; - return TestIamPermissionsInstanceTemplateRequest; + return TestIamPermissionsInstantSnapshotGroupRequest; })(); v1beta.TestIamPermissionsInstantSnapshotRequest = (function() { @@ -1297485,30 +1317453,310 @@ }; /** - * Decodes a TestIamPermissionsPacketMirroringRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsPacketMirroringRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest} TestIamPermissionsPacketMirroringRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsPacketMirroringRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsPacketMirroringRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestIamPermissionsPacketMirroringRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) { + var error = $root.google.cloud.compute.v1beta.TestPermissionsRequest.verify(message.testPermissionsRequestResource); + if (error) + return "testPermissionsRequestResource." + error; + } + return null; + }; + + /** + * Creates a TestIamPermissionsPacketMirroringRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest} TestIamPermissionsPacketMirroringRequest + */ + TestIamPermissionsPacketMirroringRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.resource != null) + message.resource = String(object.resource); + if (object.testPermissionsRequestResource != null) { + if (typeof object.testPermissionsRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest.testPermissionsRequestResource: object expected"); + message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); + } + return message; + }; + + /** + * Creates a plain object from a TestIamPermissionsPacketMirroringRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest + * @static + * @param {google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest} message TestIamPermissionsPacketMirroringRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestIamPermissionsPacketMirroringRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.resource = ""; + object.project = ""; + object.testPermissionsRequestResource = null; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) + object.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.toObject(message.testPermissionsRequestResource, options); + return object; + }; + + /** + * Converts this TestIamPermissionsPacketMirroringRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest + * @instance + * @returns {Object.} JSON object + */ + TestIamPermissionsPacketMirroringRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TestIamPermissionsPacketMirroringRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TestIamPermissionsPacketMirroringRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest"; + }; + + return TestIamPermissionsPacketMirroringRequest; + })(); + + v1beta.TestIamPermissionsRegionAutoscalerRequest = (function() { + + /** + * Properties of a TestIamPermissionsRegionAutoscalerRequest. + * @memberof google.cloud.compute.v1beta + * @interface ITestIamPermissionsRegionAutoscalerRequest + * @property {string|null} [project] TestIamPermissionsRegionAutoscalerRequest project + * @property {string|null} [region] TestIamPermissionsRegionAutoscalerRequest region + * @property {string|null} [resource] TestIamPermissionsRegionAutoscalerRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionAutoscalerRequest testPermissionsRequestResource + */ + + /** + * Constructs a new TestIamPermissionsRegionAutoscalerRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a TestIamPermissionsRegionAutoscalerRequest. + * @implements ITestIamPermissionsRegionAutoscalerRequest + * @constructor + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionAutoscalerRequest=} [properties] Properties to set + */ + function TestIamPermissionsRegionAutoscalerRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TestIamPermissionsRegionAutoscalerRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @instance + */ + TestIamPermissionsRegionAutoscalerRequest.prototype.project = ""; + + /** + * TestIamPermissionsRegionAutoscalerRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @instance + */ + TestIamPermissionsRegionAutoscalerRequest.prototype.region = ""; + + /** + * TestIamPermissionsRegionAutoscalerRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @instance + */ + TestIamPermissionsRegionAutoscalerRequest.prototype.resource = ""; + + /** + * TestIamPermissionsRegionAutoscalerRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @instance + */ + TestIamPermissionsRegionAutoscalerRequest.prototype.testPermissionsRequestResource = null; + + /** + * Creates a new TestIamPermissionsRegionAutoscalerRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionAutoscalerRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest instance + */ + TestIamPermissionsRegionAutoscalerRequest.create = function create(properties) { + return new TestIamPermissionsRegionAutoscalerRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsRegionAutoscalerRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionAutoscalerRequest} message TestIamPermissionsRegionAutoscalerRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionAutoscalerRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.testPermissionsRequestResource != null && Object.hasOwnProperty.call(message, "testPermissionsRequestResource")) + $root.google.cloud.compute.v1beta.TestPermissionsRequest.encode(message.testPermissionsRequestResource, writer.uint32(/* id 439214758, wireType 2 =*/3513718066).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TestIamPermissionsRegionAutoscalerRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionAutoscalerRequest} message TestIamPermissionsRegionAutoscalerRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionAutoscalerRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsRegionAutoscalerRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsRegionAutoscalerRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + case 439214758: { + message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TestIamPermissionsRegionAutoscalerRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest} TestIamPermissionsPacketMirroringRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsPacketMirroringRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionAutoscalerRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsPacketMirroringRequest message. + * Verifies a TestIamPermissionsRegionAutoscalerRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsPacketMirroringRequest.verify = function verify(message) { + TestIamPermissionsRegionAutoscalerRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1297529,17 +1317777,17 @@ }; /** - * Creates a TestIamPermissionsPacketMirroringRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionAutoscalerRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest} TestIamPermissionsPacketMirroringRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest */ - TestIamPermissionsPacketMirroringRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest) + TestIamPermissionsRegionAutoscalerRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1297548,22 +1317796,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsPacketMirroringRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionAutoscalerRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest} message TestIamPermissionsPacketMirroringRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} message TestIamPermissionsRegionAutoscalerRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsPacketMirroringRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionAutoscalerRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1297585,55 +1317833,55 @@ }; /** - * Converts this TestIamPermissionsPacketMirroringRequest to JSON. + * Converts this TestIamPermissionsRegionAutoscalerRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsPacketMirroringRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionAutoscalerRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsPacketMirroringRequest + * Gets the default type url for TestIamPermissionsRegionAutoscalerRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsPacketMirroringRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionAutoscalerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest"; }; - return TestIamPermissionsPacketMirroringRequest; + return TestIamPermissionsRegionAutoscalerRequest; })(); - v1beta.TestIamPermissionsRegionAutoscalerRequest = (function() { + v1beta.TestIamPermissionsRegionBackendBucketRequest = (function() { /** - * Properties of a TestIamPermissionsRegionAutoscalerRequest. + * Properties of a TestIamPermissionsRegionBackendBucketRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionAutoscalerRequest - * @property {string|null} [project] TestIamPermissionsRegionAutoscalerRequest project - * @property {string|null} [region] TestIamPermissionsRegionAutoscalerRequest region - * @property {string|null} [resource] TestIamPermissionsRegionAutoscalerRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionAutoscalerRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionBackendBucketRequest + * @property {string|null} [project] TestIamPermissionsRegionBackendBucketRequest project + * @property {string|null} [region] TestIamPermissionsRegionBackendBucketRequest region + * @property {string|null} [resource] TestIamPermissionsRegionBackendBucketRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionBackendBucketRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionAutoscalerRequest. + * Constructs a new TestIamPermissionsRegionBackendBucketRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionAutoscalerRequest. - * @implements ITestIamPermissionsRegionAutoscalerRequest + * @classdesc Represents a TestIamPermissionsRegionBackendBucketRequest. + * @implements ITestIamPermissionsRegionBackendBucketRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionAutoscalerRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionAutoscalerRequest(properties) { + function TestIamPermissionsRegionBackendBucketRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1297641,59 +1317889,59 @@ } /** - * TestIamPermissionsRegionAutoscalerRequest project. + * TestIamPermissionsRegionBackendBucketRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest * @instance */ - TestIamPermissionsRegionAutoscalerRequest.prototype.project = ""; + TestIamPermissionsRegionBackendBucketRequest.prototype.project = ""; /** - * TestIamPermissionsRegionAutoscalerRequest region. + * TestIamPermissionsRegionBackendBucketRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest * @instance */ - TestIamPermissionsRegionAutoscalerRequest.prototype.region = ""; + TestIamPermissionsRegionBackendBucketRequest.prototype.region = ""; /** - * TestIamPermissionsRegionAutoscalerRequest resource. + * TestIamPermissionsRegionBackendBucketRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest * @instance */ - TestIamPermissionsRegionAutoscalerRequest.prototype.resource = ""; + TestIamPermissionsRegionBackendBucketRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionAutoscalerRequest testPermissionsRequestResource. + * TestIamPermissionsRegionBackendBucketRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest * @instance */ - TestIamPermissionsRegionAutoscalerRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionBackendBucketRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionAutoscalerRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionBackendBucketRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionAutoscalerRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest} TestIamPermissionsRegionBackendBucketRequest instance */ - TestIamPermissionsRegionAutoscalerRequest.create = function create(properties) { - return new TestIamPermissionsRegionAutoscalerRequest(properties); + TestIamPermissionsRegionBackendBucketRequest.create = function create(properties) { + return new TestIamPermissionsRegionBackendBucketRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionAutoscalerRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionAutoscalerRequest} message TestIamPermissionsRegionAutoscalerRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest} message TestIamPermissionsRegionBackendBucketRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionAutoscalerRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionBackendBucketRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1297708,33 +1317956,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionAutoscalerRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionAutoscalerRequest} message TestIamPermissionsRegionAutoscalerRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest} message TestIamPermissionsRegionBackendBucketRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionAutoscalerRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionBackendBucketRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionAutoscalerRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionBackendBucketRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest} TestIamPermissionsRegionBackendBucketRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionAutoscalerRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionBackendBucketRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1297765,30 +1318013,30 @@ }; /** - * Decodes a TestIamPermissionsRegionAutoscalerRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionBackendBucketRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest} TestIamPermissionsRegionBackendBucketRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionAutoscalerRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionBackendBucketRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionAutoscalerRequest message. + * Verifies a TestIamPermissionsRegionBackendBucketRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionAutoscalerRequest.verify = function verify(message) { + TestIamPermissionsRegionBackendBucketRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1297809,17 +1318057,17 @@ }; /** - * Creates a TestIamPermissionsRegionAutoscalerRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest} TestIamPermissionsRegionBackendBucketRequest */ - TestIamPermissionsRegionAutoscalerRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest) + TestIamPermissionsRegionBackendBucketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1297828,22 +1318076,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionAutoscalerRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionBackendBucketRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} message TestIamPermissionsRegionAutoscalerRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest} message TestIamPermissionsRegionBackendBucketRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionAutoscalerRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionBackendBucketRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1297865,55 +1318113,55 @@ }; /** - * Converts this TestIamPermissionsRegionAutoscalerRequest to JSON. + * Converts this TestIamPermissionsRegionBackendBucketRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionAutoscalerRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionBackendBucketRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionAutoscalerRequest + * Gets the default type url for TestIamPermissionsRegionBackendBucketRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionAutoscalerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionBackendBucketRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest"; }; - return TestIamPermissionsRegionAutoscalerRequest; + return TestIamPermissionsRegionBackendBucketRequest; })(); - v1beta.TestIamPermissionsRegionBackendBucketRequest = (function() { + v1beta.TestIamPermissionsRegionBackendServiceRequest = (function() { /** - * Properties of a TestIamPermissionsRegionBackendBucketRequest. + * Properties of a TestIamPermissionsRegionBackendServiceRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionBackendBucketRequest - * @property {string|null} [project] TestIamPermissionsRegionBackendBucketRequest project - * @property {string|null} [region] TestIamPermissionsRegionBackendBucketRequest region - * @property {string|null} [resource] TestIamPermissionsRegionBackendBucketRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionBackendBucketRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionBackendServiceRequest + * @property {string|null} [project] TestIamPermissionsRegionBackendServiceRequest project + * @property {string|null} [region] TestIamPermissionsRegionBackendServiceRequest region + * @property {string|null} [resource] TestIamPermissionsRegionBackendServiceRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionBackendServiceRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionBackendBucketRequest. + * Constructs a new TestIamPermissionsRegionBackendServiceRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionBackendBucketRequest. - * @implements ITestIamPermissionsRegionBackendBucketRequest + * @classdesc Represents a TestIamPermissionsRegionBackendServiceRequest. + * @implements ITestIamPermissionsRegionBackendServiceRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendServiceRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionBackendBucketRequest(properties) { + function TestIamPermissionsRegionBackendServiceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1297921,59 +1318169,59 @@ } /** - * TestIamPermissionsRegionBackendBucketRequest project. + * TestIamPermissionsRegionBackendServiceRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest * @instance */ - TestIamPermissionsRegionBackendBucketRequest.prototype.project = ""; + TestIamPermissionsRegionBackendServiceRequest.prototype.project = ""; /** - * TestIamPermissionsRegionBackendBucketRequest region. + * TestIamPermissionsRegionBackendServiceRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest * @instance */ - TestIamPermissionsRegionBackendBucketRequest.prototype.region = ""; + TestIamPermissionsRegionBackendServiceRequest.prototype.region = ""; /** - * TestIamPermissionsRegionBackendBucketRequest resource. + * TestIamPermissionsRegionBackendServiceRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest * @instance */ - TestIamPermissionsRegionBackendBucketRequest.prototype.resource = ""; + TestIamPermissionsRegionBackendServiceRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionBackendBucketRequest testPermissionsRequestResource. + * TestIamPermissionsRegionBackendServiceRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest * @instance */ - TestIamPermissionsRegionBackendBucketRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionBackendServiceRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionBackendBucketRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionBackendServiceRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest} TestIamPermissionsRegionBackendBucketRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendServiceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest instance */ - TestIamPermissionsRegionBackendBucketRequest.create = function create(properties) { - return new TestIamPermissionsRegionBackendBucketRequest(properties); + TestIamPermissionsRegionBackendServiceRequest.create = function create(properties) { + return new TestIamPermissionsRegionBackendServiceRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest} message TestIamPermissionsRegionBackendBucketRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionBackendBucketRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionBackendServiceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1297988,33 +1318236,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest} message TestIamPermissionsRegionBackendBucketRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionBackendBucketRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionBackendServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionBackendBucketRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionBackendServiceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest} TestIamPermissionsRegionBackendBucketRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionBackendBucketRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionBackendServiceRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1298045,30 +1318293,30 @@ }; /** - * Decodes a TestIamPermissionsRegionBackendBucketRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionBackendServiceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest} TestIamPermissionsRegionBackendBucketRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionBackendBucketRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionBackendServiceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionBackendBucketRequest message. + * Verifies a TestIamPermissionsRegionBackendServiceRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionBackendBucketRequest.verify = function verify(message) { + TestIamPermissionsRegionBackendServiceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1298089,17 +1318337,17 @@ }; /** - * Creates a TestIamPermissionsRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionBackendServiceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest} TestIamPermissionsRegionBackendBucketRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest */ - TestIamPermissionsRegionBackendBucketRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest) + TestIamPermissionsRegionBackendServiceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1298108,22 +1318356,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionBackendBucketRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionBackendServiceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest} message TestIamPermissionsRegionBackendBucketRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionBackendBucketRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionBackendServiceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1298145,55 +1318393,55 @@ }; /** - * Converts this TestIamPermissionsRegionBackendBucketRequest to JSON. + * Converts this TestIamPermissionsRegionBackendServiceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionBackendBucketRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionBackendServiceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionBackendBucketRequest + * Gets the default type url for TestIamPermissionsRegionBackendServiceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionBackendBucketRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest"; }; - return TestIamPermissionsRegionBackendBucketRequest; + return TestIamPermissionsRegionBackendServiceRequest; })(); - v1beta.TestIamPermissionsRegionBackendServiceRequest = (function() { + v1beta.TestIamPermissionsRegionCommitmentRequest = (function() { /** - * Properties of a TestIamPermissionsRegionBackendServiceRequest. + * Properties of a TestIamPermissionsRegionCommitmentRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionBackendServiceRequest - * @property {string|null} [project] TestIamPermissionsRegionBackendServiceRequest project - * @property {string|null} [region] TestIamPermissionsRegionBackendServiceRequest region - * @property {string|null} [resource] TestIamPermissionsRegionBackendServiceRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionBackendServiceRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionCommitmentRequest + * @property {string|null} [project] TestIamPermissionsRegionCommitmentRequest project + * @property {string|null} [region] TestIamPermissionsRegionCommitmentRequest region + * @property {string|null} [resource] TestIamPermissionsRegionCommitmentRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionCommitmentRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionBackendServiceRequest. + * Constructs a new TestIamPermissionsRegionCommitmentRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionBackendServiceRequest. - * @implements ITestIamPermissionsRegionBackendServiceRequest + * @classdesc Represents a TestIamPermissionsRegionCommitmentRequest. + * @implements ITestIamPermissionsRegionCommitmentRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendServiceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCommitmentRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionBackendServiceRequest(properties) { + function TestIamPermissionsRegionCommitmentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1298201,59 +1318449,59 @@ } /** - * TestIamPermissionsRegionBackendServiceRequest project. + * TestIamPermissionsRegionCommitmentRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest * @instance */ - TestIamPermissionsRegionBackendServiceRequest.prototype.project = ""; + TestIamPermissionsRegionCommitmentRequest.prototype.project = ""; /** - * TestIamPermissionsRegionBackendServiceRequest region. + * TestIamPermissionsRegionCommitmentRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest * @instance */ - TestIamPermissionsRegionBackendServiceRequest.prototype.region = ""; + TestIamPermissionsRegionCommitmentRequest.prototype.region = ""; /** - * TestIamPermissionsRegionBackendServiceRequest resource. + * TestIamPermissionsRegionCommitmentRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest * @instance */ - TestIamPermissionsRegionBackendServiceRequest.prototype.resource = ""; + TestIamPermissionsRegionCommitmentRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionBackendServiceRequest testPermissionsRequestResource. + * TestIamPermissionsRegionCommitmentRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest * @instance */ - TestIamPermissionsRegionBackendServiceRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionCommitmentRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionBackendServiceRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionCommitmentRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendServiceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCommitmentRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} TestIamPermissionsRegionCommitmentRequest instance */ - TestIamPermissionsRegionBackendServiceRequest.create = function create(properties) { - return new TestIamPermissionsRegionBackendServiceRequest(properties); + TestIamPermissionsRegionCommitmentRequest.create = function create(properties) { + return new TestIamPermissionsRegionCommitmentRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionCommitmentRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCommitmentRequest} message TestIamPermissionsRegionCommitmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionBackendServiceRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionCommitmentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1298268,33 +1318516,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionCommitmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCommitmentRequest} message TestIamPermissionsRegionCommitmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionBackendServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionCommitmentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionBackendServiceRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionCommitmentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} TestIamPermissionsRegionCommitmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionBackendServiceRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionCommitmentRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1298325,30 +1318573,30 @@ }; /** - * Decodes a TestIamPermissionsRegionBackendServiceRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionCommitmentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} TestIamPermissionsRegionCommitmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionBackendServiceRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionCommitmentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionBackendServiceRequest message. + * Verifies a TestIamPermissionsRegionCommitmentRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionBackendServiceRequest.verify = function verify(message) { + TestIamPermissionsRegionCommitmentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1298369,17 +1318617,17 @@ }; /** - * Creates a TestIamPermissionsRegionBackendServiceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionCommitmentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} TestIamPermissionsRegionCommitmentRequest */ - TestIamPermissionsRegionBackendServiceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest) + TestIamPermissionsRegionCommitmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1298388,22 +1318636,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionBackendServiceRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionCommitmentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} message TestIamPermissionsRegionCommitmentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionBackendServiceRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionCommitmentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1298425,55 +1318673,55 @@ }; /** - * Converts this TestIamPermissionsRegionBackendServiceRequest to JSON. + * Converts this TestIamPermissionsRegionCommitmentRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionBackendServiceRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionCommitmentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionBackendServiceRequest + * Gets the default type url for TestIamPermissionsRegionCommitmentRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionCommitmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest"; }; - return TestIamPermissionsRegionBackendServiceRequest; + return TestIamPermissionsRegionCommitmentRequest; })(); - v1beta.TestIamPermissionsRegionCommitmentRequest = (function() { + v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest = (function() { /** - * Properties of a TestIamPermissionsRegionCommitmentRequest. + * Properties of a TestIamPermissionsRegionCompositeHealthCheckRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionCommitmentRequest - * @property {string|null} [project] TestIamPermissionsRegionCommitmentRequest project - * @property {string|null} [region] TestIamPermissionsRegionCommitmentRequest region - * @property {string|null} [resource] TestIamPermissionsRegionCommitmentRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionCommitmentRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionCompositeHealthCheckRequest + * @property {string|null} [project] TestIamPermissionsRegionCompositeHealthCheckRequest project + * @property {string|null} [region] TestIamPermissionsRegionCompositeHealthCheckRequest region + * @property {string|null} [resource] TestIamPermissionsRegionCompositeHealthCheckRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionCompositeHealthCheckRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionCommitmentRequest. + * Constructs a new TestIamPermissionsRegionCompositeHealthCheckRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionCommitmentRequest. - * @implements ITestIamPermissionsRegionCommitmentRequest + * @classdesc Represents a TestIamPermissionsRegionCompositeHealthCheckRequest. + * @implements ITestIamPermissionsRegionCompositeHealthCheckRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCommitmentRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionCommitmentRequest(properties) { + function TestIamPermissionsRegionCompositeHealthCheckRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1298481,59 +1318729,59 @@ } /** - * TestIamPermissionsRegionCommitmentRequest project. + * TestIamPermissionsRegionCompositeHealthCheckRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @instance */ - TestIamPermissionsRegionCommitmentRequest.prototype.project = ""; + TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.project = ""; /** - * TestIamPermissionsRegionCommitmentRequest region. + * TestIamPermissionsRegionCompositeHealthCheckRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @instance */ - TestIamPermissionsRegionCommitmentRequest.prototype.region = ""; + TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.region = ""; /** - * TestIamPermissionsRegionCommitmentRequest resource. + * TestIamPermissionsRegionCompositeHealthCheckRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @instance */ - TestIamPermissionsRegionCommitmentRequest.prototype.resource = ""; + TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionCommitmentRequest testPermissionsRequestResource. + * TestIamPermissionsRegionCompositeHealthCheckRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @instance */ - TestIamPermissionsRegionCommitmentRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionCommitmentRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionCompositeHealthCheckRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCommitmentRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} TestIamPermissionsRegionCommitmentRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest instance */ - TestIamPermissionsRegionCommitmentRequest.create = function create(properties) { - return new TestIamPermissionsRegionCommitmentRequest(properties); + TestIamPermissionsRegionCompositeHealthCheckRequest.create = function create(properties) { + return new TestIamPermissionsRegionCompositeHealthCheckRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionCommitmentRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCommitmentRequest} message TestIamPermissionsRegionCommitmentRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest} message TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionCommitmentRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionCompositeHealthCheckRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1298548,33 +1318796,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionCommitmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCommitmentRequest} message TestIamPermissionsRegionCommitmentRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest} message TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionCommitmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionCompositeHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionCommitmentRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionCompositeHealthCheckRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} TestIamPermissionsRegionCommitmentRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionCommitmentRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionCompositeHealthCheckRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1298605,30 +1318853,30 @@ }; /** - * Decodes a TestIamPermissionsRegionCommitmentRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} TestIamPermissionsRegionCommitmentRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionCommitmentRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionCompositeHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionCommitmentRequest message. + * Verifies a TestIamPermissionsRegionCompositeHealthCheckRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionCommitmentRequest.verify = function verify(message) { + TestIamPermissionsRegionCompositeHealthCheckRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1298649,17 +1318897,17 @@ }; /** - * Creates a TestIamPermissionsRegionCommitmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} TestIamPermissionsRegionCommitmentRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest */ - TestIamPermissionsRegionCommitmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest) + TestIamPermissionsRegionCompositeHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1298668,22 +1318916,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionCommitmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} message TestIamPermissionsRegionCommitmentRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest} message TestIamPermissionsRegionCompositeHealthCheckRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionCommitmentRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionCompositeHealthCheckRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1298705,55 +1318953,55 @@ }; /** - * Converts this TestIamPermissionsRegionCommitmentRequest to JSON. + * Converts this TestIamPermissionsRegionCompositeHealthCheckRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionCommitmentRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionCommitmentRequest + * Gets the default type url for TestIamPermissionsRegionCompositeHealthCheckRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionCommitmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionCompositeHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest"; }; - return TestIamPermissionsRegionCommitmentRequest; + return TestIamPermissionsRegionCompositeHealthCheckRequest; })(); - v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest = (function() { + v1beta.TestIamPermissionsRegionDiskRequest = (function() { /** - * Properties of a TestIamPermissionsRegionCompositeHealthCheckRequest. + * Properties of a TestIamPermissionsRegionDiskRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionCompositeHealthCheckRequest - * @property {string|null} [project] TestIamPermissionsRegionCompositeHealthCheckRequest project - * @property {string|null} [region] TestIamPermissionsRegionCompositeHealthCheckRequest region - * @property {string|null} [resource] TestIamPermissionsRegionCompositeHealthCheckRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionCompositeHealthCheckRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionDiskRequest + * @property {string|null} [project] TestIamPermissionsRegionDiskRequest project + * @property {string|null} [region] TestIamPermissionsRegionDiskRequest region + * @property {string|null} [resource] TestIamPermissionsRegionDiskRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionDiskRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionCompositeHealthCheckRequest. + * Constructs a new TestIamPermissionsRegionDiskRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionCompositeHealthCheckRequest. - * @implements ITestIamPermissionsRegionCompositeHealthCheckRequest + * @classdesc Represents a TestIamPermissionsRegionDiskRequest. + * @implements ITestIamPermissionsRegionDiskRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionDiskRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionCompositeHealthCheckRequest(properties) { + function TestIamPermissionsRegionDiskRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1298761,59 +1319009,59 @@ } /** - * TestIamPermissionsRegionCompositeHealthCheckRequest project. + * TestIamPermissionsRegionDiskRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @instance */ - TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.project = ""; + TestIamPermissionsRegionDiskRequest.prototype.project = ""; /** - * TestIamPermissionsRegionCompositeHealthCheckRequest region. + * TestIamPermissionsRegionDiskRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @instance */ - TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.region = ""; + TestIamPermissionsRegionDiskRequest.prototype.region = ""; /** - * TestIamPermissionsRegionCompositeHealthCheckRequest resource. + * TestIamPermissionsRegionDiskRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @instance */ - TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.resource = ""; + TestIamPermissionsRegionDiskRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionCompositeHealthCheckRequest testPermissionsRequestResource. + * TestIamPermissionsRegionDiskRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @instance */ - TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionDiskRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionCompositeHealthCheckRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionDiskRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionDiskRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest instance */ - TestIamPermissionsRegionCompositeHealthCheckRequest.create = function create(properties) { - return new TestIamPermissionsRegionCompositeHealthCheckRequest(properties); + TestIamPermissionsRegionDiskRequest.create = function create(properties) { + return new TestIamPermissionsRegionDiskRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest} message TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionCompositeHealthCheckRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionDiskRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1298828,33 +1319076,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest} message TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionCompositeHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionDiskRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionCompositeHealthCheckRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionDiskRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1298885,30 +1319133,30 @@ }; /** - * Decodes a TestIamPermissionsRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionDiskRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionCompositeHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionDiskRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionCompositeHealthCheckRequest message. + * Verifies a TestIamPermissionsRegionDiskRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionCompositeHealthCheckRequest.verify = function verify(message) { + TestIamPermissionsRegionDiskRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1298929,17 +1319177,17 @@ }; /** - * Creates a TestIamPermissionsRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionDiskRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest */ - TestIamPermissionsRegionCompositeHealthCheckRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest) + TestIamPermissionsRegionDiskRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1298948,22 +1319196,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionDiskRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest} message TestIamPermissionsRegionCompositeHealthCheckRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionCompositeHealthCheckRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionDiskRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1298985,55 +1319233,55 @@ }; /** - * Converts this TestIamPermissionsRegionCompositeHealthCheckRequest to JSON. + * Converts this TestIamPermissionsRegionDiskRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionDiskRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionCompositeHealthCheckRequest + * Gets the default type url for TestIamPermissionsRegionDiskRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionCompositeHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest"; }; - return TestIamPermissionsRegionCompositeHealthCheckRequest; + return TestIamPermissionsRegionDiskRequest; })(); - v1beta.TestIamPermissionsRegionDiskRequest = (function() { + v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest = (function() { /** - * Properties of a TestIamPermissionsRegionDiskRequest. + * Properties of a TestIamPermissionsRegionHealthAggregationPolicyRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionDiskRequest - * @property {string|null} [project] TestIamPermissionsRegionDiskRequest project - * @property {string|null} [region] TestIamPermissionsRegionDiskRequest region - * @property {string|null} [resource] TestIamPermissionsRegionDiskRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionDiskRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionHealthAggregationPolicyRequest + * @property {string|null} [project] TestIamPermissionsRegionHealthAggregationPolicyRequest project + * @property {string|null} [region] TestIamPermissionsRegionHealthAggregationPolicyRequest region + * @property {string|null} [resource] TestIamPermissionsRegionHealthAggregationPolicyRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthAggregationPolicyRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionDiskRequest. + * Constructs a new TestIamPermissionsRegionHealthAggregationPolicyRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionDiskRequest. - * @implements ITestIamPermissionsRegionDiskRequest + * @classdesc Represents a TestIamPermissionsRegionHealthAggregationPolicyRequest. + * @implements ITestIamPermissionsRegionHealthAggregationPolicyRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionDiskRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionDiskRequest(properties) { + function TestIamPermissionsRegionHealthAggregationPolicyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1299041,59 +1319289,59 @@ } /** - * TestIamPermissionsRegionDiskRequest project. + * TestIamPermissionsRegionHealthAggregationPolicyRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance */ - TestIamPermissionsRegionDiskRequest.prototype.project = ""; + TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.project = ""; /** - * TestIamPermissionsRegionDiskRequest region. + * TestIamPermissionsRegionHealthAggregationPolicyRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance */ - TestIamPermissionsRegionDiskRequest.prototype.region = ""; + TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.region = ""; /** - * TestIamPermissionsRegionDiskRequest resource. + * TestIamPermissionsRegionHealthAggregationPolicyRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance */ - TestIamPermissionsRegionDiskRequest.prototype.resource = ""; + TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionDiskRequest testPermissionsRequestResource. + * TestIamPermissionsRegionHealthAggregationPolicyRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance */ - TestIamPermissionsRegionDiskRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionDiskRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionHealthAggregationPolicyRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionDiskRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest instance */ - TestIamPermissionsRegionDiskRequest.create = function create(properties) { - return new TestIamPermissionsRegionDiskRequest(properties); + TestIamPermissionsRegionHealthAggregationPolicyRequest.create = function create(properties) { + return new TestIamPermissionsRegionHealthAggregationPolicyRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest} message TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionDiskRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1299108,33 +1319356,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest} message TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionDiskRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionHealthAggregationPolicyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionDiskRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1299165,30 +1319413,30 @@ }; /** - * Decodes a TestIamPermissionsRegionDiskRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionDiskRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionDiskRequest message. + * Verifies a TestIamPermissionsRegionHealthAggregationPolicyRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionDiskRequest.verify = function verify(message) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1299209,17 +1319457,17 @@ }; /** - * Creates a TestIamPermissionsRegionDiskRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest */ - TestIamPermissionsRegionDiskRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest) + TestIamPermissionsRegionHealthAggregationPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1299228,22 +1319476,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionDiskRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest} message TestIamPermissionsRegionHealthAggregationPolicyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionDiskRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1299265,55 +1319513,55 @@ }; /** - * Converts this TestIamPermissionsRegionDiskRequest to JSON. + * Converts this TestIamPermissionsRegionHealthAggregationPolicyRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionDiskRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionDiskRequest + * Gets the default type url for TestIamPermissionsRegionHealthAggregationPolicyRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest"; }; - return TestIamPermissionsRegionDiskRequest; + return TestIamPermissionsRegionHealthAggregationPolicyRequest; })(); - v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest = (function() { + v1beta.TestIamPermissionsRegionHealthCheckRequest = (function() { /** - * Properties of a TestIamPermissionsRegionHealthAggregationPolicyRequest. + * Properties of a TestIamPermissionsRegionHealthCheckRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionHealthAggregationPolicyRequest - * @property {string|null} [project] TestIamPermissionsRegionHealthAggregationPolicyRequest project - * @property {string|null} [region] TestIamPermissionsRegionHealthAggregationPolicyRequest region - * @property {string|null} [resource] TestIamPermissionsRegionHealthAggregationPolicyRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthAggregationPolicyRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionHealthCheckRequest + * @property {string|null} [project] TestIamPermissionsRegionHealthCheckRequest project + * @property {string|null} [region] TestIamPermissionsRegionHealthCheckRequest region + * @property {string|null} [resource] TestIamPermissionsRegionHealthCheckRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthCheckRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionHealthAggregationPolicyRequest. + * Constructs a new TestIamPermissionsRegionHealthCheckRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionHealthAggregationPolicyRequest. - * @implements ITestIamPermissionsRegionHealthAggregationPolicyRequest + * @classdesc Represents a TestIamPermissionsRegionHealthCheckRequest. + * @implements ITestIamPermissionsRegionHealthCheckRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionHealthAggregationPolicyRequest(properties) { + function TestIamPermissionsRegionHealthCheckRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1299321,59 +1319569,59 @@ } /** - * TestIamPermissionsRegionHealthAggregationPolicyRequest project. + * TestIamPermissionsRegionHealthCheckRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @instance */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.project = ""; + TestIamPermissionsRegionHealthCheckRequest.prototype.project = ""; /** - * TestIamPermissionsRegionHealthAggregationPolicyRequest region. + * TestIamPermissionsRegionHealthCheckRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @instance */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.region = ""; + TestIamPermissionsRegionHealthCheckRequest.prototype.region = ""; /** - * TestIamPermissionsRegionHealthAggregationPolicyRequest resource. + * TestIamPermissionsRegionHealthCheckRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @instance */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.resource = ""; + TestIamPermissionsRegionHealthCheckRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionHealthAggregationPolicyRequest testPermissionsRequestResource. + * TestIamPermissionsRegionHealthCheckRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @instance */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionHealthCheckRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionHealthAggregationPolicyRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionHealthCheckRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest instance */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.create = function create(properties) { - return new TestIamPermissionsRegionHealthAggregationPolicyRequest(properties); + TestIamPermissionsRegionHealthCheckRequest.create = function create(properties) { + return new TestIamPermissionsRegionHealthCheckRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest} message TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionHealthCheckRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1299388,33 +1319636,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest} message TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionHealthAggregationPolicyRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionHealthCheckRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionHealthCheckRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1299445,30 +1319693,30 @@ }; /** - * Decodes a TestIamPermissionsRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionHealthCheckRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionHealthAggregationPolicyRequest message. + * Verifies a TestIamPermissionsRegionHealthCheckRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.verify = function verify(message) { + TestIamPermissionsRegionHealthCheckRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1299489,17 +1319737,17 @@ }; /** - * Creates a TestIamPermissionsRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionHealthCheckRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest) + TestIamPermissionsRegionHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1299508,22 +1319756,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionHealthCheckRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest} message TestIamPermissionsRegionHealthAggregationPolicyRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionHealthCheckRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1299545,55 +1319793,55 @@ }; /** - * Converts this TestIamPermissionsRegionHealthAggregationPolicyRequest to JSON. + * Converts this TestIamPermissionsRegionHealthCheckRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionHealthCheckRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionHealthAggregationPolicyRequest + * Gets the default type url for TestIamPermissionsRegionHealthCheckRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest"; }; - return TestIamPermissionsRegionHealthAggregationPolicyRequest; + return TestIamPermissionsRegionHealthCheckRequest; })(); - v1beta.TestIamPermissionsRegionHealthCheckRequest = (function() { + v1beta.TestIamPermissionsRegionHealthCheckServiceRequest = (function() { /** - * Properties of a TestIamPermissionsRegionHealthCheckRequest. + * Properties of a TestIamPermissionsRegionHealthCheckServiceRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionHealthCheckRequest - * @property {string|null} [project] TestIamPermissionsRegionHealthCheckRequest project - * @property {string|null} [region] TestIamPermissionsRegionHealthCheckRequest region - * @property {string|null} [resource] TestIamPermissionsRegionHealthCheckRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthCheckRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionHealthCheckServiceRequest + * @property {string|null} [project] TestIamPermissionsRegionHealthCheckServiceRequest project + * @property {string|null} [region] TestIamPermissionsRegionHealthCheckServiceRequest region + * @property {string|null} [resource] TestIamPermissionsRegionHealthCheckServiceRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthCheckServiceRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionHealthCheckRequest. + * Constructs a new TestIamPermissionsRegionHealthCheckServiceRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionHealthCheckRequest. - * @implements ITestIamPermissionsRegionHealthCheckRequest + * @classdesc Represents a TestIamPermissionsRegionHealthCheckServiceRequest. + * @implements ITestIamPermissionsRegionHealthCheckServiceRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckServiceRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionHealthCheckRequest(properties) { + function TestIamPermissionsRegionHealthCheckServiceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1299601,59 +1319849,59 @@ } /** - * TestIamPermissionsRegionHealthCheckRequest project. + * TestIamPermissionsRegionHealthCheckServiceRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @instance */ - TestIamPermissionsRegionHealthCheckRequest.prototype.project = ""; + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.project = ""; /** - * TestIamPermissionsRegionHealthCheckRequest region. + * TestIamPermissionsRegionHealthCheckServiceRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @instance */ - TestIamPermissionsRegionHealthCheckRequest.prototype.region = ""; + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.region = ""; /** - * TestIamPermissionsRegionHealthCheckRequest resource. + * TestIamPermissionsRegionHealthCheckServiceRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @instance */ - TestIamPermissionsRegionHealthCheckRequest.prototype.resource = ""; + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionHealthCheckRequest testPermissionsRequestResource. + * TestIamPermissionsRegionHealthCheckServiceRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @instance */ - TestIamPermissionsRegionHealthCheckRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionHealthCheckRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionHealthCheckServiceRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckServiceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest instance */ - TestIamPermissionsRegionHealthCheckRequest.create = function create(properties) { - return new TestIamPermissionsRegionHealthCheckRequest(properties); + TestIamPermissionsRegionHealthCheckServiceRequest.create = function create(properties) { + return new TestIamPermissionsRegionHealthCheckServiceRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthCheckServiceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthCheckRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionHealthCheckServiceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1299668,33 +1319916,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthCheckServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionHealthCheckServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionHealthCheckRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionHealthCheckServiceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionHealthCheckRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionHealthCheckServiceRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1299725,30 +1319973,30 @@ }; /** - * Decodes a TestIamPermissionsRegionHealthCheckRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionHealthCheckServiceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionHealthCheckServiceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionHealthCheckRequest message. + * Verifies a TestIamPermissionsRegionHealthCheckServiceRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionHealthCheckRequest.verify = function verify(message) { + TestIamPermissionsRegionHealthCheckServiceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1299769,17 +1320017,17 @@ }; /** - * Creates a TestIamPermissionsRegionHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionHealthCheckServiceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest */ - TestIamPermissionsRegionHealthCheckRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest) + TestIamPermissionsRegionHealthCheckServiceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1299788,22 +1320036,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionHealthCheckRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionHealthCheckServiceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionHealthCheckRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionHealthCheckServiceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1299825,55 +1320073,55 @@ }; /** - * Converts this TestIamPermissionsRegionHealthCheckRequest to JSON. + * Converts this TestIamPermissionsRegionHealthCheckServiceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionHealthCheckRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionHealthCheckRequest + * Gets the default type url for TestIamPermissionsRegionHealthCheckServiceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionHealthCheckServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest"; }; - return TestIamPermissionsRegionHealthCheckRequest; + return TestIamPermissionsRegionHealthCheckServiceRequest; })(); - v1beta.TestIamPermissionsRegionHealthCheckServiceRequest = (function() { + v1beta.TestIamPermissionsRegionHealthSourceRequest = (function() { /** - * Properties of a TestIamPermissionsRegionHealthCheckServiceRequest. + * Properties of a TestIamPermissionsRegionHealthSourceRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionHealthCheckServiceRequest - * @property {string|null} [project] TestIamPermissionsRegionHealthCheckServiceRequest project - * @property {string|null} [region] TestIamPermissionsRegionHealthCheckServiceRequest region - * @property {string|null} [resource] TestIamPermissionsRegionHealthCheckServiceRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthCheckServiceRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionHealthSourceRequest + * @property {string|null} [project] TestIamPermissionsRegionHealthSourceRequest project + * @property {string|null} [region] TestIamPermissionsRegionHealthSourceRequest region + * @property {string|null} [resource] TestIamPermissionsRegionHealthSourceRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthSourceRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionHealthCheckServiceRequest. + * Constructs a new TestIamPermissionsRegionHealthSourceRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionHealthCheckServiceRequest. - * @implements ITestIamPermissionsRegionHealthCheckServiceRequest + * @classdesc Represents a TestIamPermissionsRegionHealthSourceRequest. + * @implements ITestIamPermissionsRegionHealthSourceRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckServiceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthSourceRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionHealthCheckServiceRequest(properties) { + function TestIamPermissionsRegionHealthSourceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1299881,59 +1320129,59 @@ } /** - * TestIamPermissionsRegionHealthCheckServiceRequest project. + * TestIamPermissionsRegionHealthSourceRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @instance */ - TestIamPermissionsRegionHealthCheckServiceRequest.prototype.project = ""; + TestIamPermissionsRegionHealthSourceRequest.prototype.project = ""; /** - * TestIamPermissionsRegionHealthCheckServiceRequest region. + * TestIamPermissionsRegionHealthSourceRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @instance */ - TestIamPermissionsRegionHealthCheckServiceRequest.prototype.region = ""; + TestIamPermissionsRegionHealthSourceRequest.prototype.region = ""; /** - * TestIamPermissionsRegionHealthCheckServiceRequest resource. + * TestIamPermissionsRegionHealthSourceRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @instance */ - TestIamPermissionsRegionHealthCheckServiceRequest.prototype.resource = ""; + TestIamPermissionsRegionHealthSourceRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionHealthCheckServiceRequest testPermissionsRequestResource. + * TestIamPermissionsRegionHealthSourceRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @instance */ - TestIamPermissionsRegionHealthCheckServiceRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionHealthSourceRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionHealthCheckServiceRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionHealthSourceRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckServiceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthSourceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest instance */ - TestIamPermissionsRegionHealthCheckServiceRequest.create = function create(properties) { - return new TestIamPermissionsRegionHealthCheckServiceRequest(properties); + TestIamPermissionsRegionHealthSourceRequest.create = function create(properties) { + return new TestIamPermissionsRegionHealthSourceRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionHealthCheckServiceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthCheckServiceRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionHealthSourceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1299948,33 +1320196,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionHealthCheckServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthCheckServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionHealthSourceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionHealthCheckServiceRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionHealthSourceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionHealthCheckServiceRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionHealthSourceRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1300005,30 +1320253,30 @@ }; /** - * Decodes a TestIamPermissionsRegionHealthCheckServiceRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionHealthSourceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionHealthCheckServiceRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionHealthSourceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionHealthCheckServiceRequest message. + * Verifies a TestIamPermissionsRegionHealthSourceRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionHealthCheckServiceRequest.verify = function verify(message) { + TestIamPermissionsRegionHealthSourceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1300049,17 +1320297,17 @@ }; /** - * Creates a TestIamPermissionsRegionHealthCheckServiceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionHealthSourceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest */ - TestIamPermissionsRegionHealthCheckServiceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest) + TestIamPermissionsRegionHealthSourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1300068,22 +1320316,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionHealthCheckServiceRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionHealthSourceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionHealthCheckServiceRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionHealthSourceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1300105,55 +1320353,55 @@ }; /** - * Converts this TestIamPermissionsRegionHealthCheckServiceRequest to JSON. + * Converts this TestIamPermissionsRegionHealthSourceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionHealthCheckServiceRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionHealthSourceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionHealthCheckServiceRequest + * Gets the default type url for TestIamPermissionsRegionHealthSourceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionHealthCheckServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionHealthSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest"; }; - return TestIamPermissionsRegionHealthCheckServiceRequest; + return TestIamPermissionsRegionHealthSourceRequest; })(); - v1beta.TestIamPermissionsRegionHealthSourceRequest = (function() { + v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest = (function() { /** - * Properties of a TestIamPermissionsRegionHealthSourceRequest. + * Properties of a TestIamPermissionsRegionInstanceGroupManagerRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionHealthSourceRequest - * @property {string|null} [project] TestIamPermissionsRegionHealthSourceRequest project - * @property {string|null} [region] TestIamPermissionsRegionHealthSourceRequest region - * @property {string|null} [resource] TestIamPermissionsRegionHealthSourceRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthSourceRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionInstanceGroupManagerRequest + * @property {string|null} [project] TestIamPermissionsRegionInstanceGroupManagerRequest project + * @property {string|null} [region] TestIamPermissionsRegionInstanceGroupManagerRequest region + * @property {string|null} [resource] TestIamPermissionsRegionInstanceGroupManagerRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionInstanceGroupManagerRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionHealthSourceRequest. + * Constructs a new TestIamPermissionsRegionInstanceGroupManagerRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionHealthSourceRequest. - * @implements ITestIamPermissionsRegionHealthSourceRequest + * @classdesc Represents a TestIamPermissionsRegionInstanceGroupManagerRequest. + * @implements ITestIamPermissionsRegionInstanceGroupManagerRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthSourceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupManagerRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionHealthSourceRequest(properties) { + function TestIamPermissionsRegionInstanceGroupManagerRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1300161,59 +1320409,59 @@ } /** - * TestIamPermissionsRegionHealthSourceRequest project. + * TestIamPermissionsRegionInstanceGroupManagerRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @instance */ - TestIamPermissionsRegionHealthSourceRequest.prototype.project = ""; + TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.project = ""; /** - * TestIamPermissionsRegionHealthSourceRequest region. + * TestIamPermissionsRegionInstanceGroupManagerRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @instance */ - TestIamPermissionsRegionHealthSourceRequest.prototype.region = ""; + TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.region = ""; /** - * TestIamPermissionsRegionHealthSourceRequest resource. + * TestIamPermissionsRegionInstanceGroupManagerRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @instance */ - TestIamPermissionsRegionHealthSourceRequest.prototype.resource = ""; + TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionHealthSourceRequest testPermissionsRequestResource. + * TestIamPermissionsRegionInstanceGroupManagerRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @instance */ - TestIamPermissionsRegionHealthSourceRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionHealthSourceRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionInstanceGroupManagerRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthSourceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupManagerRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} TestIamPermissionsRegionInstanceGroupManagerRequest instance */ - TestIamPermissionsRegionHealthSourceRequest.create = function create(properties) { - return new TestIamPermissionsRegionHealthSourceRequest(properties); + TestIamPermissionsRegionInstanceGroupManagerRequest.create = function create(properties) { + return new TestIamPermissionsRegionInstanceGroupManagerRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionInstanceGroupManagerRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupManagerRequest} message TestIamPermissionsRegionInstanceGroupManagerRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthSourceRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionInstanceGroupManagerRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1300228,33 +1320476,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionInstanceGroupManagerRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupManagerRequest} message TestIamPermissionsRegionInstanceGroupManagerRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthSourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionInstanceGroupManagerRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionHealthSourceRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionInstanceGroupManagerRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} TestIamPermissionsRegionInstanceGroupManagerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionHealthSourceRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionInstanceGroupManagerRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1300285,30 +1320533,30 @@ }; /** - * Decodes a TestIamPermissionsRegionHealthSourceRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionInstanceGroupManagerRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} TestIamPermissionsRegionInstanceGroupManagerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionHealthSourceRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionInstanceGroupManagerRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionHealthSourceRequest message. + * Verifies a TestIamPermissionsRegionInstanceGroupManagerRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionHealthSourceRequest.verify = function verify(message) { + TestIamPermissionsRegionInstanceGroupManagerRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1300329,17 +1320577,17 @@ }; /** - * Creates a TestIamPermissionsRegionHealthSourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionInstanceGroupManagerRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} TestIamPermissionsRegionInstanceGroupManagerRequest */ - TestIamPermissionsRegionHealthSourceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest) + TestIamPermissionsRegionInstanceGroupManagerRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1300348,22 +1320596,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionHealthSourceRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionInstanceGroupManagerRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} message TestIamPermissionsRegionInstanceGroupManagerRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionHealthSourceRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionInstanceGroupManagerRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1300385,55 +1320633,55 @@ }; /** - * Converts this TestIamPermissionsRegionHealthSourceRequest to JSON. + * Converts this TestIamPermissionsRegionInstanceGroupManagerRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionHealthSourceRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionHealthSourceRequest + * Gets the default type url for TestIamPermissionsRegionInstanceGroupManagerRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionHealthSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionInstanceGroupManagerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest"; }; - return TestIamPermissionsRegionHealthSourceRequest; + return TestIamPermissionsRegionInstanceGroupManagerRequest; })(); - v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest = (function() { + v1beta.TestIamPermissionsRegionInstanceGroupRequest = (function() { /** - * Properties of a TestIamPermissionsRegionInstanceGroupManagerRequest. + * Properties of a TestIamPermissionsRegionInstanceGroupRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionInstanceGroupManagerRequest - * @property {string|null} [project] TestIamPermissionsRegionInstanceGroupManagerRequest project - * @property {string|null} [region] TestIamPermissionsRegionInstanceGroupManagerRequest region - * @property {string|null} [resource] TestIamPermissionsRegionInstanceGroupManagerRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionInstanceGroupManagerRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionInstanceGroupRequest + * @property {string|null} [project] TestIamPermissionsRegionInstanceGroupRequest project + * @property {string|null} [region] TestIamPermissionsRegionInstanceGroupRequest region + * @property {string|null} [resource] TestIamPermissionsRegionInstanceGroupRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionInstanceGroupRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionInstanceGroupManagerRequest. + * Constructs a new TestIamPermissionsRegionInstanceGroupRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionInstanceGroupManagerRequest. - * @implements ITestIamPermissionsRegionInstanceGroupManagerRequest + * @classdesc Represents a TestIamPermissionsRegionInstanceGroupRequest. + * @implements ITestIamPermissionsRegionInstanceGroupRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupManagerRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionInstanceGroupManagerRequest(properties) { + function TestIamPermissionsRegionInstanceGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1300441,59 +1320689,59 @@ } /** - * TestIamPermissionsRegionInstanceGroupManagerRequest project. + * TestIamPermissionsRegionInstanceGroupRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @instance */ - TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.project = ""; + TestIamPermissionsRegionInstanceGroupRequest.prototype.project = ""; /** - * TestIamPermissionsRegionInstanceGroupManagerRequest region. + * TestIamPermissionsRegionInstanceGroupRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @instance */ - TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.region = ""; + TestIamPermissionsRegionInstanceGroupRequest.prototype.region = ""; /** - * TestIamPermissionsRegionInstanceGroupManagerRequest resource. + * TestIamPermissionsRegionInstanceGroupRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @instance */ - TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.resource = ""; + TestIamPermissionsRegionInstanceGroupRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionInstanceGroupManagerRequest testPermissionsRequestResource. + * TestIamPermissionsRegionInstanceGroupRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @instance */ - TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionInstanceGroupRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionInstanceGroupManagerRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionInstanceGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupManagerRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} TestIamPermissionsRegionInstanceGroupManagerRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest instance */ - TestIamPermissionsRegionInstanceGroupManagerRequest.create = function create(properties) { - return new TestIamPermissionsRegionInstanceGroupManagerRequest(properties); + TestIamPermissionsRegionInstanceGroupRequest.create = function create(properties) { + return new TestIamPermissionsRegionInstanceGroupRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionInstanceGroupManagerRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionInstanceGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupManagerRequest} message TestIamPermissionsRegionInstanceGroupManagerRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupRequest} message TestIamPermissionsRegionInstanceGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionInstanceGroupManagerRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionInstanceGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1300508,33 +1320756,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionInstanceGroupManagerRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionInstanceGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupManagerRequest} message TestIamPermissionsRegionInstanceGroupManagerRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupRequest} message TestIamPermissionsRegionInstanceGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionInstanceGroupManagerRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionInstanceGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionInstanceGroupManagerRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionInstanceGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} TestIamPermissionsRegionInstanceGroupManagerRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionInstanceGroupManagerRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionInstanceGroupRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1300565,30 +1320813,30 @@ }; /** - * Decodes a TestIamPermissionsRegionInstanceGroupManagerRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionInstanceGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} TestIamPermissionsRegionInstanceGroupManagerRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionInstanceGroupManagerRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionInstanceGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionInstanceGroupManagerRequest message. + * Verifies a TestIamPermissionsRegionInstanceGroupRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionInstanceGroupManagerRequest.verify = function verify(message) { + TestIamPermissionsRegionInstanceGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1300609,17 +1320857,17 @@ }; /** - * Creates a TestIamPermissionsRegionInstanceGroupManagerRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionInstanceGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} TestIamPermissionsRegionInstanceGroupManagerRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest */ - TestIamPermissionsRegionInstanceGroupManagerRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest) + TestIamPermissionsRegionInstanceGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1300628,22 +1320876,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionInstanceGroupManagerRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionInstanceGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} message TestIamPermissionsRegionInstanceGroupManagerRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} message TestIamPermissionsRegionInstanceGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionInstanceGroupManagerRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionInstanceGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1300665,55 +1320913,55 @@ }; /** - * Converts this TestIamPermissionsRegionInstanceGroupManagerRequest to JSON. + * Converts this TestIamPermissionsRegionInstanceGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionInstanceGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionInstanceGroupManagerRequest + * Gets the default type url for TestIamPermissionsRegionInstanceGroupRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionInstanceGroupManagerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionInstanceGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest"; }; - return TestIamPermissionsRegionInstanceGroupManagerRequest; + return TestIamPermissionsRegionInstanceGroupRequest; })(); - v1beta.TestIamPermissionsRegionInstanceGroupRequest = (function() { + v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest = (function() { /** - * Properties of a TestIamPermissionsRegionInstanceGroupRequest. + * Properties of a TestIamPermissionsRegionInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionInstanceGroupRequest - * @property {string|null} [project] TestIamPermissionsRegionInstanceGroupRequest project - * @property {string|null} [region] TestIamPermissionsRegionInstanceGroupRequest region - * @property {string|null} [resource] TestIamPermissionsRegionInstanceGroupRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionInstanceGroupRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionInstantSnapshotGroupRequest + * @property {string|null} [project] TestIamPermissionsRegionInstantSnapshotGroupRequest project + * @property {string|null} [region] TestIamPermissionsRegionInstantSnapshotGroupRequest region + * @property {string|null} [resource] TestIamPermissionsRegionInstantSnapshotGroupRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionInstantSnapshotGroupRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionInstanceGroupRequest. + * Constructs a new TestIamPermissionsRegionInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionInstanceGroupRequest. - * @implements ITestIamPermissionsRegionInstanceGroupRequest + * @classdesc Represents a TestIamPermissionsRegionInstantSnapshotGroupRequest. + * @implements ITestIamPermissionsRegionInstantSnapshotGroupRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionInstanceGroupRequest(properties) { + function TestIamPermissionsRegionInstantSnapshotGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1300721,59 +1320969,59 @@ } /** - * TestIamPermissionsRegionInstanceGroupRequest project. + * TestIamPermissionsRegionInstantSnapshotGroupRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest * @instance */ - TestIamPermissionsRegionInstanceGroupRequest.prototype.project = ""; + TestIamPermissionsRegionInstantSnapshotGroupRequest.prototype.project = ""; /** - * TestIamPermissionsRegionInstanceGroupRequest region. + * TestIamPermissionsRegionInstantSnapshotGroupRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest * @instance */ - TestIamPermissionsRegionInstanceGroupRequest.prototype.region = ""; + TestIamPermissionsRegionInstantSnapshotGroupRequest.prototype.region = ""; /** - * TestIamPermissionsRegionInstanceGroupRequest resource. + * TestIamPermissionsRegionInstantSnapshotGroupRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest * @instance */ - TestIamPermissionsRegionInstanceGroupRequest.prototype.resource = ""; + TestIamPermissionsRegionInstantSnapshotGroupRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionInstanceGroupRequest testPermissionsRequestResource. + * TestIamPermissionsRegionInstantSnapshotGroupRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest * @instance */ - TestIamPermissionsRegionInstanceGroupRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionInstantSnapshotGroupRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionInstanceGroupRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionInstantSnapshotGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest} TestIamPermissionsRegionInstantSnapshotGroupRequest instance */ - TestIamPermissionsRegionInstanceGroupRequest.create = function create(properties) { - return new TestIamPermissionsRegionInstanceGroupRequest(properties); + TestIamPermissionsRegionInstantSnapshotGroupRequest.create = function create(properties) { + return new TestIamPermissionsRegionInstantSnapshotGroupRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionInstanceGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupRequest} message TestIamPermissionsRegionInstanceGroupRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest} message TestIamPermissionsRegionInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionInstanceGroupRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionInstantSnapshotGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1300788,33 +1321036,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionInstanceGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupRequest} message TestIamPermissionsRegionInstanceGroupRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest} message TestIamPermissionsRegionInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionInstanceGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionInstanceGroupRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionInstantSnapshotGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest} TestIamPermissionsRegionInstantSnapshotGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionInstanceGroupRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionInstantSnapshotGroupRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1300845,30 +1321093,30 @@ }; /** - * Decodes a TestIamPermissionsRegionInstanceGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest} TestIamPermissionsRegionInstantSnapshotGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionInstanceGroupRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionInstanceGroupRequest message. + * Verifies a TestIamPermissionsRegionInstantSnapshotGroupRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionInstanceGroupRequest.verify = function verify(message) { + TestIamPermissionsRegionInstantSnapshotGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1300889,17 +1321137,17 @@ }; /** - * Creates a TestIamPermissionsRegionInstanceGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest} TestIamPermissionsRegionInstantSnapshotGroupRequest */ - TestIamPermissionsRegionInstanceGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest) + TestIamPermissionsRegionInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1300908,22 +1321156,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionInstanceGroupRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} message TestIamPermissionsRegionInstanceGroupRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest} message TestIamPermissionsRegionInstantSnapshotGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionInstanceGroupRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionInstantSnapshotGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1300945,32 +1321193,32 @@ }; /** - * Converts this TestIamPermissionsRegionInstanceGroupRequest to JSON. + * Converts this TestIamPermissionsRegionInstantSnapshotGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionInstanceGroupRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionInstanceGroupRequest + * Gets the default type url for TestIamPermissionsRegionInstantSnapshotGroupRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionInstanceGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest"; }; - return TestIamPermissionsRegionInstanceGroupRequest; + return TestIamPermissionsRegionInstantSnapshotGroupRequest; })(); v1beta.TestIamPermissionsRegionInstantSnapshotRequest = (function() { @@ -1306013,6 +1326261,263 @@ return TestIamPermissionsServiceAttachmentRequest; })(); + v1beta.TestIamPermissionsSnapshotGroupRequest = (function() { + + /** + * Properties of a TestIamPermissionsSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @interface ITestIamPermissionsSnapshotGroupRequest + * @property {string|null} [project] TestIamPermissionsSnapshotGroupRequest project + * @property {string|null} [resource] TestIamPermissionsSnapshotGroupRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsSnapshotGroupRequest testPermissionsRequestResource + */ + + /** + * Constructs a new TestIamPermissionsSnapshotGroupRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a TestIamPermissionsSnapshotGroupRequest. + * @implements ITestIamPermissionsSnapshotGroupRequest + * @constructor + * @param {google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest=} [properties] Properties to set + */ + function TestIamPermissionsSnapshotGroupRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TestIamPermissionsSnapshotGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest + * @instance + */ + TestIamPermissionsSnapshotGroupRequest.prototype.project = ""; + + /** + * TestIamPermissionsSnapshotGroupRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest + * @instance + */ + TestIamPermissionsSnapshotGroupRequest.prototype.resource = ""; + + /** + * TestIamPermissionsSnapshotGroupRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest + * @instance + */ + TestIamPermissionsSnapshotGroupRequest.prototype.testPermissionsRequestResource = null; + + /** + * Creates a new TestIamPermissionsSnapshotGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest} TestIamPermissionsSnapshotGroupRequest instance + */ + TestIamPermissionsSnapshotGroupRequest.create = function create(properties) { + return new TestIamPermissionsSnapshotGroupRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest} message TestIamPermissionsSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsSnapshotGroupRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.testPermissionsRequestResource != null && Object.hasOwnProperty.call(message, "testPermissionsRequestResource")) + $root.google.cloud.compute.v1beta.TestPermissionsRequest.encode(message.testPermissionsRequestResource, writer.uint32(/* id 439214758, wireType 2 =*/3513718066).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TestIamPermissionsSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest} message TestIamPermissionsSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsSnapshotGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest} TestIamPermissionsSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsSnapshotGroupRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + case 439214758: { + message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TestIamPermissionsSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest} TestIamPermissionsSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestIamPermissionsSnapshotGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) { + var error = $root.google.cloud.compute.v1beta.TestPermissionsRequest.verify(message.testPermissionsRequestResource); + if (error) + return "testPermissionsRequestResource." + error; + } + return null; + }; + + /** + * Creates a TestIamPermissionsSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest} TestIamPermissionsSnapshotGroupRequest + */ + TestIamPermissionsSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.resource != null) + message.resource = String(object.resource); + if (object.testPermissionsRequestResource != null) { + if (typeof object.testPermissionsRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest.testPermissionsRequestResource: object expected"); + message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); + } + return message; + }; + + /** + * Creates a plain object from a TestIamPermissionsSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest} message TestIamPermissionsSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestIamPermissionsSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.resource = ""; + object.project = ""; + object.testPermissionsRequestResource = null; + } + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) + object.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.toObject(message.testPermissionsRequestResource, options); + return object; + }; + + /** + * Converts this TestIamPermissionsSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + TestIamPermissionsSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TestIamPermissionsSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TestIamPermissionsSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest"; + }; + + return TestIamPermissionsSnapshotGroupRequest; + })(); + v1beta.TestIamPermissionsSnapshotRequest = (function() { /** @@ -1315777,6 +1336282,323 @@ return UpdateLicenseRequest; })(); + v1beta.UpdateNamedSetRouterRequest = (function() { + + /** + * Properties of an UpdateNamedSetRouterRequest. + * @memberof google.cloud.compute.v1beta + * @interface IUpdateNamedSetRouterRequest + * @property {google.cloud.compute.v1beta.INamedSet|null} [namedSetResource] UpdateNamedSetRouterRequest namedSetResource + * @property {string|null} [project] UpdateNamedSetRouterRequest project + * @property {string|null} [region] UpdateNamedSetRouterRequest region + * @property {string|null} [requestId] UpdateNamedSetRouterRequest requestId + * @property {string|null} [router] UpdateNamedSetRouterRequest router + */ + + /** + * Constructs a new UpdateNamedSetRouterRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an UpdateNamedSetRouterRequest. + * @implements IUpdateNamedSetRouterRequest + * @constructor + * @param {google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest=} [properties] Properties to set + */ + function UpdateNamedSetRouterRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpdateNamedSetRouterRequest namedSetResource. + * @member {google.cloud.compute.v1beta.INamedSet|null|undefined} namedSetResource + * @memberof google.cloud.compute.v1beta.UpdateNamedSetRouterRequest + * @instance + */ + UpdateNamedSetRouterRequest.prototype.namedSetResource = null; + + /** + * UpdateNamedSetRouterRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.UpdateNamedSetRouterRequest + * @instance + */ + UpdateNamedSetRouterRequest.prototype.project = ""; + + /** + * UpdateNamedSetRouterRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.UpdateNamedSetRouterRequest + * @instance + */ + UpdateNamedSetRouterRequest.prototype.region = ""; + + /** + * UpdateNamedSetRouterRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.UpdateNamedSetRouterRequest + * @instance + */ + UpdateNamedSetRouterRequest.prototype.requestId = null; + + /** + * UpdateNamedSetRouterRequest router. + * @member {string} router + * @memberof google.cloud.compute.v1beta.UpdateNamedSetRouterRequest + * @instance + */ + UpdateNamedSetRouterRequest.prototype.router = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateNamedSetRouterRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UpdateNamedSetRouterRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.UpdateNamedSetRouterRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.UpdateNamedSetRouterRequest} UpdateNamedSetRouterRequest instance + */ + UpdateNamedSetRouterRequest.create = function create(properties) { + return new UpdateNamedSetRouterRequest(properties); + }; + + /** + * Encodes the specified UpdateNamedSetRouterRequest message. Does not implicitly {@link google.cloud.compute.v1beta.UpdateNamedSetRouterRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.UpdateNamedSetRouterRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest} message UpdateNamedSetRouterRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateNamedSetRouterRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.router != null && Object.hasOwnProperty.call(message, "router")) + writer.uint32(/* id 148608841, wireType 2 =*/1188870730).string(message.router); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.namedSetResource != null && Object.hasOwnProperty.call(message, "namedSetResource")) + $root.google.cloud.compute.v1beta.NamedSet.encode(message.namedSetResource, writer.uint32(/* id 408608401, wireType 2 =*/3268867210).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateNamedSetRouterRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UpdateNamedSetRouterRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.UpdateNamedSetRouterRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest} message UpdateNamedSetRouterRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateNamedSetRouterRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateNamedSetRouterRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.UpdateNamedSetRouterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.UpdateNamedSetRouterRequest} UpdateNamedSetRouterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateNamedSetRouterRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 408608401: { + message.namedSetResource = $root.google.cloud.compute.v1beta.NamedSet.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 148608841: { + message.router = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateNamedSetRouterRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.UpdateNamedSetRouterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.UpdateNamedSetRouterRequest} UpdateNamedSetRouterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateNamedSetRouterRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateNamedSetRouterRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.UpdateNamedSetRouterRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateNamedSetRouterRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.namedSetResource != null && message.hasOwnProperty("namedSetResource")) { + var error = $root.google.cloud.compute.v1beta.NamedSet.verify(message.namedSetResource); + if (error) + return "namedSetResource." + error; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.router != null && message.hasOwnProperty("router")) + if (!$util.isString(message.router)) + return "router: string expected"; + return null; + }; + + /** + * Creates an UpdateNamedSetRouterRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.UpdateNamedSetRouterRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.UpdateNamedSetRouterRequest} UpdateNamedSetRouterRequest + */ + UpdateNamedSetRouterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest(); + if (object.namedSetResource != null) { + if (typeof object.namedSetResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.UpdateNamedSetRouterRequest.namedSetResource: object expected"); + message.namedSetResource = $root.google.cloud.compute.v1beta.NamedSet.fromObject(object.namedSetResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.router != null) + message.router = String(object.router); + return message; + }; + + /** + * Creates a plain object from an UpdateNamedSetRouterRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.UpdateNamedSetRouterRequest + * @static + * @param {google.cloud.compute.v1beta.UpdateNamedSetRouterRequest} message UpdateNamedSetRouterRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateNamedSetRouterRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.router = ""; + object.project = ""; + object.namedSetResource = null; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.router != null && message.hasOwnProperty("router")) + object.router = message.router; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.namedSetResource != null && message.hasOwnProperty("namedSetResource")) + object.namedSetResource = $root.google.cloud.compute.v1beta.NamedSet.toObject(message.namedSetResource, options); + return object; + }; + + /** + * Converts this UpdateNamedSetRouterRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.UpdateNamedSetRouterRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateNamedSetRouterRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateNamedSetRouterRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.UpdateNamedSetRouterRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateNamedSetRouterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.UpdateNamedSetRouterRequest"; + }; + + return UpdateNamedSetRouterRequest; + })(); + v1beta.UpdateNetworkInterfaceInstanceRequest = (function() { /** @@ -1320083,6 +1340905,346 @@ return UpdateReservationRequest; })(); + v1beta.UpdateReservationSlotRequest = (function() { + + /** + * Properties of an UpdateReservationSlotRequest. + * @memberof google.cloud.compute.v1beta + * @interface IUpdateReservationSlotRequest + * @property {string|null} [parentName] UpdateReservationSlotRequest parentName + * @property {string|null} [project] UpdateReservationSlotRequest project + * @property {string|null} [reservationSlot] UpdateReservationSlotRequest reservationSlot + * @property {google.cloud.compute.v1beta.IReservationSlot|null} [reservationSlotResource] UpdateReservationSlotRequest reservationSlotResource + * @property {string|null} [updateMask] UpdateReservationSlotRequest updateMask + * @property {string|null} [zone] UpdateReservationSlotRequest zone + */ + + /** + * Constructs a new UpdateReservationSlotRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an UpdateReservationSlotRequest. + * @implements IUpdateReservationSlotRequest + * @constructor + * @param {google.cloud.compute.v1beta.IUpdateReservationSlotRequest=} [properties] Properties to set + */ + function UpdateReservationSlotRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpdateReservationSlotRequest parentName. + * @member {string} parentName + * @memberof google.cloud.compute.v1beta.UpdateReservationSlotRequest + * @instance + */ + UpdateReservationSlotRequest.prototype.parentName = ""; + + /** + * UpdateReservationSlotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.UpdateReservationSlotRequest + * @instance + */ + UpdateReservationSlotRequest.prototype.project = ""; + + /** + * UpdateReservationSlotRequest reservationSlot. + * @member {string} reservationSlot + * @memberof google.cloud.compute.v1beta.UpdateReservationSlotRequest + * @instance + */ + UpdateReservationSlotRequest.prototype.reservationSlot = ""; + + /** + * UpdateReservationSlotRequest reservationSlotResource. + * @member {google.cloud.compute.v1beta.IReservationSlot|null|undefined} reservationSlotResource + * @memberof google.cloud.compute.v1beta.UpdateReservationSlotRequest + * @instance + */ + UpdateReservationSlotRequest.prototype.reservationSlotResource = null; + + /** + * UpdateReservationSlotRequest updateMask. + * @member {string|null|undefined} updateMask + * @memberof google.cloud.compute.v1beta.UpdateReservationSlotRequest + * @instance + */ + UpdateReservationSlotRequest.prototype.updateMask = null; + + /** + * UpdateReservationSlotRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.UpdateReservationSlotRequest + * @instance + */ + UpdateReservationSlotRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateReservationSlotRequest.prototype, "_updateMask", { + get: $util.oneOfGetter($oneOfFields = ["updateMask"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UpdateReservationSlotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.UpdateReservationSlotRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateReservationSlotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.UpdateReservationSlotRequest} UpdateReservationSlotRequest instance + */ + UpdateReservationSlotRequest.create = function create(properties) { + return new UpdateReservationSlotRequest(properties); + }; + + /** + * Encodes the specified UpdateReservationSlotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.UpdateReservationSlotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.UpdateReservationSlotRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateReservationSlotRequest} message UpdateReservationSlotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateReservationSlotRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.reservationSlot != null && Object.hasOwnProperty.call(message, "reservationSlot")) + writer.uint32(/* id 277470865, wireType 2 =*/2219766922).string(message.reservationSlot); + if (message.reservationSlotResource != null && Object.hasOwnProperty.call(message, "reservationSlotResource")) + $root.google.cloud.compute.v1beta.ReservationSlot.encode(message.reservationSlotResource, writer.uint32(/* id 408545788, wireType 2 =*/3268366306).fork()).ldelim(); + if (message.parentName != null && Object.hasOwnProperty.call(message, "parentName")) + writer.uint32(/* id 478151936, wireType 2 =*/3825215490).string(message.parentName); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + writer.uint32(/* id 500079778, wireType 2 =*/4000638226).string(message.updateMask); + return writer; + }; + + /** + * Encodes the specified UpdateReservationSlotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UpdateReservationSlotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.UpdateReservationSlotRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateReservationSlotRequest} message UpdateReservationSlotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateReservationSlotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateReservationSlotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.UpdateReservationSlotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.UpdateReservationSlotRequest} UpdateReservationSlotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateReservationSlotRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.UpdateReservationSlotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 478151936: { + message.parentName = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 277470865: { + message.reservationSlot = reader.string(); + break; + } + case 408545788: { + message.reservationSlotResource = $root.google.cloud.compute.v1beta.ReservationSlot.decode(reader, reader.uint32()); + break; + } + case 500079778: { + message.updateMask = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateReservationSlotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.UpdateReservationSlotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.UpdateReservationSlotRequest} UpdateReservationSlotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateReservationSlotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateReservationSlotRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.UpdateReservationSlotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateReservationSlotRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.parentName != null && message.hasOwnProperty("parentName")) + if (!$util.isString(message.parentName)) + return "parentName: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.reservationSlot != null && message.hasOwnProperty("reservationSlot")) + if (!$util.isString(message.reservationSlot)) + return "reservationSlot: string expected"; + if (message.reservationSlotResource != null && message.hasOwnProperty("reservationSlotResource")) { + var error = $root.google.cloud.compute.v1beta.ReservationSlot.verify(message.reservationSlotResource); + if (error) + return "reservationSlotResource." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + properties._updateMask = 1; + if (!$util.isString(message.updateMask)) + return "updateMask: string expected"; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates an UpdateReservationSlotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.UpdateReservationSlotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.UpdateReservationSlotRequest} UpdateReservationSlotRequest + */ + UpdateReservationSlotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.UpdateReservationSlotRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.UpdateReservationSlotRequest(); + if (object.parentName != null) + message.parentName = String(object.parentName); + if (object.project != null) + message.project = String(object.project); + if (object.reservationSlot != null) + message.reservationSlot = String(object.reservationSlot); + if (object.reservationSlotResource != null) { + if (typeof object.reservationSlotResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.UpdateReservationSlotRequest.reservationSlotResource: object expected"); + message.reservationSlotResource = $root.google.cloud.compute.v1beta.ReservationSlot.fromObject(object.reservationSlotResource); + } + if (object.updateMask != null) + message.updateMask = String(object.updateMask); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from an UpdateReservationSlotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.UpdateReservationSlotRequest + * @static + * @param {google.cloud.compute.v1beta.UpdateReservationSlotRequest} message UpdateReservationSlotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateReservationSlotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.project = ""; + object.reservationSlot = ""; + object.reservationSlotResource = null; + object.parentName = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.reservationSlot != null && message.hasOwnProperty("reservationSlot")) + object.reservationSlot = message.reservationSlot; + if (message.reservationSlotResource != null && message.hasOwnProperty("reservationSlotResource")) + object.reservationSlotResource = $root.google.cloud.compute.v1beta.ReservationSlot.toObject(message.reservationSlotResource, options); + if (message.parentName != null && message.hasOwnProperty("parentName")) + object.parentName = message.parentName; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + object.updateMask = message.updateMask; + if (options.oneofs) + object._updateMask = "updateMask"; + } + return object; + }; + + /** + * Converts this UpdateReservationSlotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.UpdateReservationSlotRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateReservationSlotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateReservationSlotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.UpdateReservationSlotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateReservationSlotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.UpdateReservationSlotRequest"; + }; + + return UpdateReservationSlotRequest; + })(); + v1beta.UpdateReservationsRegionCommitmentRequest = (function() { /** @@ -1332852,6 +1354014,7 @@ * @property {Object.|null} [labels] VpnGateway labels * @property {string|null} [name] VpnGateway name * @property {string|null} [network] VpnGateway network + * @property {google.cloud.compute.v1beta.IVpnGatewayParams|null} [params] VpnGateway params * @property {string|null} [region] VpnGateway region * @property {string|null} [selfLink] VpnGateway selfLink * @property {string|null} [stackType] VpnGateway stackType @@ -1332947,6 +1354110,14 @@ */ VpnGateway.prototype.network = null; + /** + * VpnGateway params. + * @member {google.cloud.compute.v1beta.IVpnGatewayParams|null|undefined} params + * @memberof google.cloud.compute.v1beta.VpnGateway + * @instance + */ + VpnGateway.prototype.params = null; + /** * VpnGateway region. * @member {string|null|undefined} region @@ -1333030,6 +1354201,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(VpnGateway.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(VpnGateway.prototype, "_region", { get: $util.oneOfGetter($oneOfFields = ["region"]), @@ -1333082,6 +1354259,8 @@ writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); if (message.gatewayIpVersion != null && Object.hasOwnProperty.call(message, "gatewayIpVersion")) writer.uint32(/* id 65074843, wireType 2 =*/520598746).string(message.gatewayIpVersion); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1beta.VpnGatewayParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.vpnInterfaces != null && message.vpnInterfaces.length) for (var i = 0; i < message.vpnInterfaces.length; ++i) $root.google.cloud.compute.v1beta.VpnGatewayVpnGatewayInterface.encode(message.vpnInterfaces[i], writer.uint32(/* id 91842181, wireType 2 =*/734737450).fork()).ldelim(); @@ -1333191,6 +1354370,10 @@ message.network = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1beta.VpnGatewayParams.decode(reader, reader.uint32()); + break; + } case 138946292: { message.region = reader.string(); break; @@ -1333293,6 +1354476,14 @@ if (!$util.isString(message.network)) return "network: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1beta.VpnGatewayParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.region != null && message.hasOwnProperty("region")) { properties._region = 1; if (!$util.isString(message.region)) @@ -1333362,6 +1354553,11 @@ message.name = String(object.name); if (object.network != null) message.network = String(object.network); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1beta.VpnGateway.params: object expected"); + message.params = $root.google.cloud.compute.v1beta.VpnGatewayParams.fromObject(object.params); + } if (object.region != null) message.region = String(object.region); if (object.selfLink != null) @@ -1333426,6 +1354622,11 @@ if (options.oneofs) object._gatewayIpVersion = "gatewayIpVersion"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1beta.VpnGatewayParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } if (message.vpnInterfaces && message.vpnInterfaces.length) { object.vpnInterfaces = []; for (var j = 0; j < message.vpnInterfaces.length; ++j) @@ -1334396,6 +1355597,246 @@ return VpnGatewayList; })(); + v1beta.VpnGatewayParams = (function() { + + /** + * Properties of a VpnGatewayParams. + * @memberof google.cloud.compute.v1beta + * @interface IVpnGatewayParams + * @property {Object.|null} [resourceManagerTags] VpnGatewayParams resourceManagerTags + */ + + /** + * Constructs a new VpnGatewayParams. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a VpnGatewayParams. + * @implements IVpnGatewayParams + * @constructor + * @param {google.cloud.compute.v1beta.IVpnGatewayParams=} [properties] Properties to set + */ + function VpnGatewayParams(properties) { + this.resourceManagerTags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VpnGatewayParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1beta.VpnGatewayParams + * @instance + */ + VpnGatewayParams.prototype.resourceManagerTags = $util.emptyObject; + + /** + * Creates a new VpnGatewayParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.VpnGatewayParams + * @static + * @param {google.cloud.compute.v1beta.IVpnGatewayParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.VpnGatewayParams} VpnGatewayParams instance + */ + VpnGatewayParams.create = function create(properties) { + return new VpnGatewayParams(properties); + }; + + /** + * Encodes the specified VpnGatewayParams message. Does not implicitly {@link google.cloud.compute.v1beta.VpnGatewayParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.VpnGatewayParams + * @static + * @param {google.cloud.compute.v1beta.IVpnGatewayParams} message VpnGatewayParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VpnGatewayParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + for (var keys = Object.keys(message.resourceManagerTags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 377671164, wireType 2 =*/3021369314).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceManagerTags[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified VpnGatewayParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.VpnGatewayParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.VpnGatewayParams + * @static + * @param {google.cloud.compute.v1beta.IVpnGatewayParams} message VpnGatewayParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VpnGatewayParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VpnGatewayParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.VpnGatewayParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.VpnGatewayParams} VpnGatewayParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VpnGatewayParams.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.VpnGatewayParams(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 377671164: { + if (message.resourceManagerTags === $util.emptyObject) + message.resourceManagerTags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.resourceManagerTags[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VpnGatewayParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.VpnGatewayParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.VpnGatewayParams} VpnGatewayParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VpnGatewayParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VpnGatewayParams message. + * @function verify + * @memberof google.cloud.compute.v1beta.VpnGatewayParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VpnGatewayParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + if (!$util.isObject(message.resourceManagerTags)) + return "resourceManagerTags: object expected"; + var key = Object.keys(message.resourceManagerTags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourceManagerTags[key[i]])) + return "resourceManagerTags: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a VpnGatewayParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.VpnGatewayParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.VpnGatewayParams} VpnGatewayParams + */ + VpnGatewayParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.VpnGatewayParams) + return object; + var message = new $root.google.cloud.compute.v1beta.VpnGatewayParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1beta.VpnGatewayParams.resourceManagerTags: object expected"); + message.resourceManagerTags = {}; + for (var keys = Object.keys(object.resourceManagerTags), i = 0; i < keys.length; ++i) + message.resourceManagerTags[keys[i]] = String(object.resourceManagerTags[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a VpnGatewayParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.VpnGatewayParams + * @static + * @param {google.cloud.compute.v1beta.VpnGatewayParams} message VpnGatewayParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VpnGatewayParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.resourceManagerTags = {}; + var keys2; + if (message.resourceManagerTags && (keys2 = Object.keys(message.resourceManagerTags)).length) { + object.resourceManagerTags = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourceManagerTags[keys2[j]] = message.resourceManagerTags[keys2[j]]; + } + return object; + }; + + /** + * Converts this VpnGatewayParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.VpnGatewayParams + * @instance + * @returns {Object.} JSON object + */ + VpnGatewayParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VpnGatewayParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.VpnGatewayParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VpnGatewayParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.VpnGatewayParams"; + }; + + return VpnGatewayParams; + })(); + v1beta.VpnGatewayStatus = (function() { /** @@ -1336350,6 +1357791,7 @@ * @property {Object.|null} [labels] VpnTunnel labels * @property {Array.|null} [localTrafficSelector] VpnTunnel localTrafficSelector * @property {string|null} [name] VpnTunnel name + * @property {google.cloud.compute.v1beta.IVpnTunnelParams|null} [params] VpnTunnel params * @property {string|null} [peerExternalGateway] VpnTunnel peerExternalGateway * @property {number|null} [peerExternalGatewayInterface] VpnTunnel peerExternalGatewayInterface * @property {string|null} [peerGcpGateway] VpnTunnel peerGcpGateway @@ -1336480,6 +1357922,14 @@ */ VpnTunnel.prototype.name = null; + /** + * VpnTunnel params. + * @member {google.cloud.compute.v1beta.IVpnTunnelParams|null|undefined} params + * @memberof google.cloud.compute.v1beta.VpnTunnel + * @instance + */ + VpnTunnel.prototype.params = null; + /** * VpnTunnel peerExternalGateway. * @member {string|null|undefined} peerExternalGateway @@ -1336655,6 +1358105,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(VpnTunnel.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(VpnTunnel.prototype, "_peerExternalGateway", { get: $util.oneOfGetter($oneOfFields = ["peerExternalGateway"]), @@ -1336765,6 +1358221,8 @@ writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1beta.VpnTunnelParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.vpnGatewayInterface != null && Object.hasOwnProperty.call(message, "vpnGatewayInterface")) writer.uint32(/* id 95979123, wireType 0 =*/767832984).int32(message.vpnGatewayInterface); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1336917,6 +1358375,10 @@ message.name = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1beta.VpnTunnelParams.decode(reader, reader.uint32()); + break; + } case 384956173: { message.peerExternalGateway = reader.string(); break; @@ -1337079,6 +1358541,14 @@ if (!$util.isString(message.name)) return "name: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1beta.VpnTunnelParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.peerExternalGateway != null && message.hasOwnProperty("peerExternalGateway")) { properties._peerExternalGateway = 1; if (!$util.isString(message.peerExternalGateway)) @@ -1337210,6 +1358680,11 @@ } if (object.name != null) message.name = String(object.name); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1beta.VpnTunnel.params: object expected"); + message.params = $root.google.cloud.compute.v1beta.VpnTunnelParams.fromObject(object.params); + } if (object.peerExternalGateway != null) message.peerExternalGateway = String(object.peerExternalGateway); if (object.peerExternalGatewayInterface != null) @@ -1337288,6 +1358763,11 @@ if (options.oneofs) object._creationTimestamp = "creationTimestamp"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1beta.VpnTunnelParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } if (message.vpnGatewayInterface != null && message.hasOwnProperty("vpnGatewayInterface")) { object.vpnGatewayInterface = message.vpnGatewayInterface; if (options.oneofs) @@ -1338611,6 +1360091,246 @@ return VpnTunnelList; })(); + v1beta.VpnTunnelParams = (function() { + + /** + * Properties of a VpnTunnelParams. + * @memberof google.cloud.compute.v1beta + * @interface IVpnTunnelParams + * @property {Object.|null} [resourceManagerTags] VpnTunnelParams resourceManagerTags + */ + + /** + * Constructs a new VpnTunnelParams. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a VpnTunnelParams. + * @implements IVpnTunnelParams + * @constructor + * @param {google.cloud.compute.v1beta.IVpnTunnelParams=} [properties] Properties to set + */ + function VpnTunnelParams(properties) { + this.resourceManagerTags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VpnTunnelParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1beta.VpnTunnelParams + * @instance + */ + VpnTunnelParams.prototype.resourceManagerTags = $util.emptyObject; + + /** + * Creates a new VpnTunnelParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.VpnTunnelParams + * @static + * @param {google.cloud.compute.v1beta.IVpnTunnelParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.VpnTunnelParams} VpnTunnelParams instance + */ + VpnTunnelParams.create = function create(properties) { + return new VpnTunnelParams(properties); + }; + + /** + * Encodes the specified VpnTunnelParams message. Does not implicitly {@link google.cloud.compute.v1beta.VpnTunnelParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.VpnTunnelParams + * @static + * @param {google.cloud.compute.v1beta.IVpnTunnelParams} message VpnTunnelParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VpnTunnelParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + for (var keys = Object.keys(message.resourceManagerTags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 377671164, wireType 2 =*/3021369314).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceManagerTags[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified VpnTunnelParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.VpnTunnelParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.VpnTunnelParams + * @static + * @param {google.cloud.compute.v1beta.IVpnTunnelParams} message VpnTunnelParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VpnTunnelParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VpnTunnelParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.VpnTunnelParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.VpnTunnelParams} VpnTunnelParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VpnTunnelParams.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.VpnTunnelParams(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 377671164: { + if (message.resourceManagerTags === $util.emptyObject) + message.resourceManagerTags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.resourceManagerTags[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VpnTunnelParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.VpnTunnelParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.VpnTunnelParams} VpnTunnelParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VpnTunnelParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VpnTunnelParams message. + * @function verify + * @memberof google.cloud.compute.v1beta.VpnTunnelParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VpnTunnelParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + if (!$util.isObject(message.resourceManagerTags)) + return "resourceManagerTags: object expected"; + var key = Object.keys(message.resourceManagerTags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourceManagerTags[key[i]])) + return "resourceManagerTags: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a VpnTunnelParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.VpnTunnelParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.VpnTunnelParams} VpnTunnelParams + */ + VpnTunnelParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.VpnTunnelParams) + return object; + var message = new $root.google.cloud.compute.v1beta.VpnTunnelParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1beta.VpnTunnelParams.resourceManagerTags: object expected"); + message.resourceManagerTags = {}; + for (var keys = Object.keys(object.resourceManagerTags), i = 0; i < keys.length; ++i) + message.resourceManagerTags[keys[i]] = String(object.resourceManagerTags[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a VpnTunnelParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.VpnTunnelParams + * @static + * @param {google.cloud.compute.v1beta.VpnTunnelParams} message VpnTunnelParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VpnTunnelParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.resourceManagerTags = {}; + var keys2; + if (message.resourceManagerTags && (keys2 = Object.keys(message.resourceManagerTags)).length) { + object.resourceManagerTags = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourceManagerTags[keys2[j]] = message.resourceManagerTags[keys2[j]]; + } + return object; + }; + + /** + * Converts this VpnTunnelParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.VpnTunnelParams + * @instance + * @returns {Object.} JSON object + */ + VpnTunnelParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VpnTunnelParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.VpnTunnelParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VpnTunnelParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.VpnTunnelParams"; + }; + + return VpnTunnelParams; + })(); + v1beta.VpnTunnelPhase1Algorithms = (function() { /** @@ -1345682,6 +1367402,257 @@ return WithdrawPublicDelegatedPrefixeRequest; })(); + v1beta.WorkloadIdentityConfig = (function() { + + /** + * Properties of a WorkloadIdentityConfig. + * @memberof google.cloud.compute.v1beta + * @interface IWorkloadIdentityConfig + * @property {string|null} [identity] WorkloadIdentityConfig identity + * @property {boolean|null} [identityCertificateEnabled] WorkloadIdentityConfig identityCertificateEnabled + */ + + /** + * Constructs a new WorkloadIdentityConfig. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a WorkloadIdentityConfig. + * @implements IWorkloadIdentityConfig + * @constructor + * @param {google.cloud.compute.v1beta.IWorkloadIdentityConfig=} [properties] Properties to set + */ + function WorkloadIdentityConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkloadIdentityConfig identity. + * @member {string|null|undefined} identity + * @memberof google.cloud.compute.v1beta.WorkloadIdentityConfig + * @instance + */ + WorkloadIdentityConfig.prototype.identity = null; + + /** + * WorkloadIdentityConfig identityCertificateEnabled. + * @member {boolean|null|undefined} identityCertificateEnabled + * @memberof google.cloud.compute.v1beta.WorkloadIdentityConfig + * @instance + */ + WorkloadIdentityConfig.prototype.identityCertificateEnabled = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(WorkloadIdentityConfig.prototype, "_identity", { + get: $util.oneOfGetter($oneOfFields = ["identity"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(WorkloadIdentityConfig.prototype, "_identityCertificateEnabled", { + get: $util.oneOfGetter($oneOfFields = ["identityCertificateEnabled"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new WorkloadIdentityConfig instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.WorkloadIdentityConfig + * @static + * @param {google.cloud.compute.v1beta.IWorkloadIdentityConfig=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.WorkloadIdentityConfig} WorkloadIdentityConfig instance + */ + WorkloadIdentityConfig.create = function create(properties) { + return new WorkloadIdentityConfig(properties); + }; + + /** + * Encodes the specified WorkloadIdentityConfig message. Does not implicitly {@link google.cloud.compute.v1beta.WorkloadIdentityConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.WorkloadIdentityConfig + * @static + * @param {google.cloud.compute.v1beta.IWorkloadIdentityConfig} message WorkloadIdentityConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkloadIdentityConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.identityCertificateEnabled != null && Object.hasOwnProperty.call(message, "identityCertificateEnabled")) + writer.uint32(/* id 342892440, wireType 0 =*/2743139520).bool(message.identityCertificateEnabled); + if (message.identity != null && Object.hasOwnProperty.call(message, "identity")) + writer.uint32(/* id 401109182, wireType 2 =*/3208873458).string(message.identity); + return writer; + }; + + /** + * Encodes the specified WorkloadIdentityConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.WorkloadIdentityConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.WorkloadIdentityConfig + * @static + * @param {google.cloud.compute.v1beta.IWorkloadIdentityConfig} message WorkloadIdentityConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkloadIdentityConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WorkloadIdentityConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.WorkloadIdentityConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.WorkloadIdentityConfig} WorkloadIdentityConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkloadIdentityConfig.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.WorkloadIdentityConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 401109182: { + message.identity = reader.string(); + break; + } + case 342892440: { + message.identityCertificateEnabled = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a WorkloadIdentityConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.WorkloadIdentityConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.WorkloadIdentityConfig} WorkloadIdentityConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkloadIdentityConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a WorkloadIdentityConfig message. + * @function verify + * @memberof google.cloud.compute.v1beta.WorkloadIdentityConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkloadIdentityConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.identity != null && message.hasOwnProperty("identity")) { + properties._identity = 1; + if (!$util.isString(message.identity)) + return "identity: string expected"; + } + if (message.identityCertificateEnabled != null && message.hasOwnProperty("identityCertificateEnabled")) { + properties._identityCertificateEnabled = 1; + if (typeof message.identityCertificateEnabled !== "boolean") + return "identityCertificateEnabled: boolean expected"; + } + return null; + }; + + /** + * Creates a WorkloadIdentityConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.WorkloadIdentityConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.WorkloadIdentityConfig} WorkloadIdentityConfig + */ + WorkloadIdentityConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.WorkloadIdentityConfig) + return object; + var message = new $root.google.cloud.compute.v1beta.WorkloadIdentityConfig(); + if (object.identity != null) + message.identity = String(object.identity); + if (object.identityCertificateEnabled != null) + message.identityCertificateEnabled = Boolean(object.identityCertificateEnabled); + return message; + }; + + /** + * Creates a plain object from a WorkloadIdentityConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.WorkloadIdentityConfig + * @static + * @param {google.cloud.compute.v1beta.WorkloadIdentityConfig} message WorkloadIdentityConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WorkloadIdentityConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.identityCertificateEnabled != null && message.hasOwnProperty("identityCertificateEnabled")) { + object.identityCertificateEnabled = message.identityCertificateEnabled; + if (options.oneofs) + object._identityCertificateEnabled = "identityCertificateEnabled"; + } + if (message.identity != null && message.hasOwnProperty("identity")) { + object.identity = message.identity; + if (options.oneofs) + object._identity = "identity"; + } + return object; + }; + + /** + * Converts this WorkloadIdentityConfig to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.WorkloadIdentityConfig + * @instance + * @returns {Object.} JSON object + */ + WorkloadIdentityConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for WorkloadIdentityConfig + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.WorkloadIdentityConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WorkloadIdentityConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.WorkloadIdentityConfig"; + }; + + return WorkloadIdentityConfig; + })(); + v1beta.XpnHostList = (function() { /** @@ -1355761,6 +1377732,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.InstanceGroupManagers|configureAcceleratorTopologies}. + * @memberof google.cloud.compute.v1beta.InstanceGroupManagers + * @typedef ConfigureAcceleratorTopologiesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls ConfigureAcceleratorTopologies. + * @function configureAcceleratorTopologies + * @memberof google.cloud.compute.v1beta.InstanceGroupManagers + * @instance + * @param {google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest} request ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message or plain object + * @param {google.cloud.compute.v1beta.InstanceGroupManagers.ConfigureAcceleratorTopologiesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstanceGroupManagers.prototype.configureAcceleratorTopologies = function configureAcceleratorTopologies(request, callback) { + return this.rpcCall(configureAcceleratorTopologies, $root.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "ConfigureAcceleratorTopologies" }); + + /** + * Calls ConfigureAcceleratorTopologies. + * @function configureAcceleratorTopologies + * @memberof google.cloud.compute.v1beta.InstanceGroupManagers + * @instance + * @param {google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest} request ConfigureAcceleratorTopologiesInstanceGroupManagerRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1beta.InstanceGroupManagers|createInstances}. * @memberof google.cloud.compute.v1beta.InstanceGroupManagers @@ -1359270,6 +1381274,272 @@ return Instances; })(); + v1beta.InstantSnapshotGroups = (function() { + + /** + * Constructs a new InstantSnapshotGroups service. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InstantSnapshotGroups + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function InstantSnapshotGroups(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (InstantSnapshotGroups.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = InstantSnapshotGroups; + + /** + * Creates new InstantSnapshotGroups service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {InstantSnapshotGroups} RPC service. Useful where requests and/or responses are streamed. + */ + InstantSnapshotGroups.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.InstantSnapshotGroups|delete_}. + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @typedef DeleteCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest} request DeleteInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1beta.InstantSnapshotGroups.DeleteCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshotGroups.prototype["delete"] = function delete_(request, callback) { + return this.rpcCall(delete_, $root.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest} request DeleteInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.InstantSnapshotGroups|get}. + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.InstantSnapshotGroup} [response] InstantSnapshotGroup + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest} request GetInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1beta.InstantSnapshotGroups.GetCallback} callback Node-style callback called with the error, if any, and InstantSnapshotGroup + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshotGroups.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest, $root.google.cloud.compute.v1beta.InstantSnapshotGroup, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest} request GetInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.InstantSnapshotGroups|getIamPolicy}. + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @typedef GetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Policy} [response] Policy + */ + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest} request GetIamPolicyInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1beta.InstantSnapshotGroups.GetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshotGroups.prototype.getIamPolicy = function getIamPolicy(request, callback) { + return this.rpcCall(getIamPolicy, $root.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest, $root.google.cloud.compute.v1beta.Policy, request, callback); + }, "name", { value: "GetIamPolicy" }); + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest} request GetIamPolicyInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.InstantSnapshotGroups|insert}. + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @typedef InsertCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest} request InsertInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1beta.InstantSnapshotGroups.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshotGroups.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest} request InsertInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.InstantSnapshotGroups|list}. + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.ListInstantSnapshotGroups} [response] ListInstantSnapshotGroups + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest} request ListInstantSnapshotGroupsRequest message or plain object + * @param {google.cloud.compute.v1beta.InstantSnapshotGroups.ListCallback} callback Node-style callback called with the error, if any, and ListInstantSnapshotGroups + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshotGroups.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest, $root.google.cloud.compute.v1beta.ListInstantSnapshotGroups, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest} request ListInstantSnapshotGroupsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.InstantSnapshotGroups|setIamPolicy}. + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @typedef SetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Policy} [response] Policy + */ + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest} request SetIamPolicyInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1beta.InstantSnapshotGroups.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshotGroups.prototype.setIamPolicy = function setIamPolicy(request, callback) { + return this.rpcCall(setIamPolicy, $root.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest, $root.google.cloud.compute.v1beta.Policy, request, callback); + }, "name", { value: "SetIamPolicy" }); + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest} request SetIamPolicyInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.InstantSnapshotGroups|testIamPermissions}. + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @typedef TestIamPermissionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.TestPermissionsResponse} [response] TestPermissionsResponse + */ + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest} request TestIamPermissionsInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1beta.InstantSnapshotGroups.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshotGroups.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest, $root.google.cloud.compute.v1beta.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1beta.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest} request TestIamPermissionsInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return InstantSnapshotGroups; + })(); + v1beta.InstantSnapshots = (function() { /** @@ -1372160,6 +1394430,272 @@ return RegionInstances; })(); + v1beta.RegionInstantSnapshotGroups = (function() { + + /** + * Constructs a new RegionInstantSnapshotGroups service. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a RegionInstantSnapshotGroups + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function RegionInstantSnapshotGroups(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (RegionInstantSnapshotGroups.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = RegionInstantSnapshotGroups; + + /** + * Creates new RegionInstantSnapshotGroups service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {RegionInstantSnapshotGroups} RPC service. Useful where requests and/or responses are streamed. + */ + RegionInstantSnapshotGroups.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionInstantSnapshotGroups|delete_}. + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @typedef DeleteCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest} request DeleteRegionInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionInstantSnapshotGroups.DeleteCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshotGroups.prototype["delete"] = function delete_(request, callback) { + return this.rpcCall(delete_, $root.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest} request DeleteRegionInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionInstantSnapshotGroups|get}. + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.InstantSnapshotGroup} [response] InstantSnapshotGroup + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest} request GetRegionInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionInstantSnapshotGroups.GetCallback} callback Node-style callback called with the error, if any, and InstantSnapshotGroup + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshotGroups.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest, $root.google.cloud.compute.v1beta.InstantSnapshotGroup, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest} request GetRegionInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionInstantSnapshotGroups|getIamPolicy}. + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @typedef GetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Policy} [response] Policy + */ + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest} request GetIamPolicyRegionInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionInstantSnapshotGroups.GetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshotGroups.prototype.getIamPolicy = function getIamPolicy(request, callback) { + return this.rpcCall(getIamPolicy, $root.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest, $root.google.cloud.compute.v1beta.Policy, request, callback); + }, "name", { value: "GetIamPolicy" }); + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest} request GetIamPolicyRegionInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionInstantSnapshotGroups|insert}. + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @typedef InsertCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest} request InsertRegionInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionInstantSnapshotGroups.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshotGroups.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest} request InsertRegionInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionInstantSnapshotGroups|list}. + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.ListInstantSnapshotGroups} [response] ListInstantSnapshotGroups + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest} request ListRegionInstantSnapshotGroupsRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionInstantSnapshotGroups.ListCallback} callback Node-style callback called with the error, if any, and ListInstantSnapshotGroups + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshotGroups.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest, $root.google.cloud.compute.v1beta.ListInstantSnapshotGroups, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest} request ListRegionInstantSnapshotGroupsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionInstantSnapshotGroups|setIamPolicy}. + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @typedef SetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Policy} [response] Policy + */ + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest} request SetIamPolicyRegionInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionInstantSnapshotGroups.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshotGroups.prototype.setIamPolicy = function setIamPolicy(request, callback) { + return this.rpcCall(setIamPolicy, $root.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest, $root.google.cloud.compute.v1beta.Policy, request, callback); + }, "name", { value: "SetIamPolicy" }); + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest} request SetIamPolicyRegionInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionInstantSnapshotGroups|testIamPermissions}. + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @typedef TestIamPermissionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.TestPermissionsResponse} [response] TestPermissionsResponse + */ + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest} request TestIamPermissionsRegionInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionInstantSnapshotGroups.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshotGroups.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest, $root.google.cloud.compute.v1beta.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1beta.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest} request TestIamPermissionsRegionInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return RegionInstantSnapshotGroups; + })(); + v1beta.RegionInstantSnapshots = (function() { /** @@ -1377150,6 +1399686,140 @@ return ReservationBlocks; })(); + v1beta.ReservationSlots = (function() { + + /** + * Constructs a new ReservationSlots service. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ReservationSlots + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function ReservationSlots(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (ReservationSlots.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ReservationSlots; + + /** + * Creates new ReservationSlots service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1beta.ReservationSlots + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {ReservationSlots} RPC service. Useful where requests and/or responses are streamed. + */ + ReservationSlots.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationSlots|get}. + * @memberof google.cloud.compute.v1beta.ReservationSlots + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.ReservationSlotsGetResponse} [response] ReservationSlotsGetResponse + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1beta.ReservationSlots + * @instance + * @param {google.cloud.compute.v1beta.IGetReservationSlotRequest} request GetReservationSlotRequest message or plain object + * @param {google.cloud.compute.v1beta.ReservationSlots.GetCallback} callback Node-style callback called with the error, if any, and ReservationSlotsGetResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ReservationSlots.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1beta.GetReservationSlotRequest, $root.google.cloud.compute.v1beta.ReservationSlotsGetResponse, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1beta.ReservationSlots + * @instance + * @param {google.cloud.compute.v1beta.IGetReservationSlotRequest} request GetReservationSlotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationSlots|list}. + * @memberof google.cloud.compute.v1beta.ReservationSlots + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.ReservationSlotsListResponse} [response] ReservationSlotsListResponse + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1beta.ReservationSlots + * @instance + * @param {google.cloud.compute.v1beta.IListReservationSlotsRequest} request ListReservationSlotsRequest message or plain object + * @param {google.cloud.compute.v1beta.ReservationSlots.ListCallback} callback Node-style callback called with the error, if any, and ReservationSlotsListResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ReservationSlots.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1beta.ListReservationSlotsRequest, $root.google.cloud.compute.v1beta.ReservationSlotsListResponse, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1beta.ReservationSlots + * @instance + * @param {google.cloud.compute.v1beta.IListReservationSlotsRequest} request ListReservationSlotsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationSlots|update}. + * @memberof google.cloud.compute.v1beta.ReservationSlots + * @typedef UpdateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls Update. + * @function update + * @memberof google.cloud.compute.v1beta.ReservationSlots + * @instance + * @param {google.cloud.compute.v1beta.IUpdateReservationSlotRequest} request UpdateReservationSlotRequest message or plain object + * @param {google.cloud.compute.v1beta.ReservationSlots.UpdateCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ReservationSlots.prototype.update = function update(request, callback) { + return this.rpcCall(update, $root.google.cloud.compute.v1beta.UpdateReservationSlotRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "Update" }); + + /** + * Calls Update. + * @function update + * @memberof google.cloud.compute.v1beta.ReservationSlots + * @instance + * @param {google.cloud.compute.v1beta.IUpdateReservationSlotRequest} request UpdateReservationSlotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return ReservationSlots; + })(); + v1beta.ReservationSubBlocks = (function() { /** @@ -1378578,6 +1401248,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.Routers|deleteNamedSet}. + * @memberof google.cloud.compute.v1beta.Routers + * @typedef DeleteNamedSetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls DeleteNamedSet. + * @function deleteNamedSet + * @memberof google.cloud.compute.v1beta.Routers + * @instance + * @param {google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest} request DeleteNamedSetRouterRequest message or plain object + * @param {google.cloud.compute.v1beta.Routers.DeleteNamedSetCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Routers.prototype.deleteNamedSet = function deleteNamedSet(request, callback) { + return this.rpcCall(deleteNamedSet, $root.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "DeleteNamedSet" }); + + /** + * Calls DeleteNamedSet. + * @function deleteNamedSet + * @memberof google.cloud.compute.v1beta.Routers + * @instance + * @param {google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest} request DeleteNamedSetRouterRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1beta.Routers|deleteRoutePolicy}. * @memberof google.cloud.compute.v1beta.Routers @@ -1378644,6 +1401347,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.Routers|getNamedSet}. + * @memberof google.cloud.compute.v1beta.Routers + * @typedef GetNamedSetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.RoutersGetNamedSetResponse} [response] RoutersGetNamedSetResponse + */ + + /** + * Calls GetNamedSet. + * @function getNamedSet + * @memberof google.cloud.compute.v1beta.Routers + * @instance + * @param {google.cloud.compute.v1beta.IGetNamedSetRouterRequest} request GetNamedSetRouterRequest message or plain object + * @param {google.cloud.compute.v1beta.Routers.GetNamedSetCallback} callback Node-style callback called with the error, if any, and RoutersGetNamedSetResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Routers.prototype.getNamedSet = function getNamedSet(request, callback) { + return this.rpcCall(getNamedSet, $root.google.cloud.compute.v1beta.GetNamedSetRouterRequest, $root.google.cloud.compute.v1beta.RoutersGetNamedSetResponse, request, callback); + }, "name", { value: "GetNamedSet" }); + + /** + * Calls GetNamedSet. + * @function getNamedSet + * @memberof google.cloud.compute.v1beta.Routers + * @instance + * @param {google.cloud.compute.v1beta.IGetNamedSetRouterRequest} request GetNamedSetRouterRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1beta.Routers|getNatIpInfo}. * @memberof google.cloud.compute.v1beta.Routers @@ -1378875,6 +1401611,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.Routers|listNamedSets}. + * @memberof google.cloud.compute.v1beta.Routers + * @typedef ListNamedSetsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.RoutersListNamedSets} [response] RoutersListNamedSets + */ + + /** + * Calls ListNamedSets. + * @function listNamedSets + * @memberof google.cloud.compute.v1beta.Routers + * @instance + * @param {google.cloud.compute.v1beta.IListNamedSetsRoutersRequest} request ListNamedSetsRoutersRequest message or plain object + * @param {google.cloud.compute.v1beta.Routers.ListNamedSetsCallback} callback Node-style callback called with the error, if any, and RoutersListNamedSets + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Routers.prototype.listNamedSets = function listNamedSets(request, callback) { + return this.rpcCall(listNamedSets, $root.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest, $root.google.cloud.compute.v1beta.RoutersListNamedSets, request, callback); + }, "name", { value: "ListNamedSets" }); + + /** + * Calls ListNamedSets. + * @function listNamedSets + * @memberof google.cloud.compute.v1beta.Routers + * @instance + * @param {google.cloud.compute.v1beta.IListNamedSetsRoutersRequest} request ListNamedSetsRoutersRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1beta.Routers|listRoutePolicies}. * @memberof google.cloud.compute.v1beta.Routers @@ -1378941,6 +1401710,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.Routers|patchNamedSet}. + * @memberof google.cloud.compute.v1beta.Routers + * @typedef PatchNamedSetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls PatchNamedSet. + * @function patchNamedSet + * @memberof google.cloud.compute.v1beta.Routers + * @instance + * @param {google.cloud.compute.v1beta.IPatchNamedSetRouterRequest} request PatchNamedSetRouterRequest message or plain object + * @param {google.cloud.compute.v1beta.Routers.PatchNamedSetCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Routers.prototype.patchNamedSet = function patchNamedSet(request, callback) { + return this.rpcCall(patchNamedSet, $root.google.cloud.compute.v1beta.PatchNamedSetRouterRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "PatchNamedSet" }); + + /** + * Calls PatchNamedSet. + * @function patchNamedSet + * @memberof google.cloud.compute.v1beta.Routers + * @instance + * @param {google.cloud.compute.v1beta.IPatchNamedSetRouterRequest} request PatchNamedSetRouterRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1beta.Routers|patchRoutePolicy}. * @memberof google.cloud.compute.v1beta.Routers @@ -1379073,6 +1401875,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.Routers|updateNamedSet}. + * @memberof google.cloud.compute.v1beta.Routers + * @typedef UpdateNamedSetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls UpdateNamedSet. + * @function updateNamedSet + * @memberof google.cloud.compute.v1beta.Routers + * @instance + * @param {google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest} request UpdateNamedSetRouterRequest message or plain object + * @param {google.cloud.compute.v1beta.Routers.UpdateNamedSetCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Routers.prototype.updateNamedSet = function updateNamedSet(request, callback) { + return this.rpcCall(updateNamedSet, $root.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "UpdateNamedSet" }); + + /** + * Calls UpdateNamedSet. + * @function updateNamedSet + * @memberof google.cloud.compute.v1beta.Routers + * @instance + * @param {google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest} request UpdateNamedSetRouterRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1beta.Routers|updateRoutePolicy}. * @memberof google.cloud.compute.v1beta.Routers @@ -1380105,6 +1402940,272 @@ return ServiceAttachments; })(); + v1beta.SnapshotGroups = (function() { + + /** + * Constructs a new SnapshotGroups service. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a SnapshotGroups + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function SnapshotGroups(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (SnapshotGroups.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SnapshotGroups; + + /** + * Creates new SnapshotGroups service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {SnapshotGroups} RPC service. Useful where requests and/or responses are streamed. + */ + SnapshotGroups.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.SnapshotGroups|delete_}. + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @typedef DeleteCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest} request DeleteSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1beta.SnapshotGroups.DeleteCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SnapshotGroups.prototype["delete"] = function delete_(request, callback) { + return this.rpcCall(delete_, $root.google.cloud.compute.v1beta.DeleteSnapshotGroupRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest} request DeleteSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.SnapshotGroups|get}. + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.SnapshotGroup} [response] SnapshotGroup + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IGetSnapshotGroupRequest} request GetSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1beta.SnapshotGroups.GetCallback} callback Node-style callback called with the error, if any, and SnapshotGroup + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SnapshotGroups.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1beta.GetSnapshotGroupRequest, $root.google.cloud.compute.v1beta.SnapshotGroup, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IGetSnapshotGroupRequest} request GetSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.SnapshotGroups|getIamPolicy}. + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @typedef GetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Policy} [response] Policy + */ + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest} request GetIamPolicySnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1beta.SnapshotGroups.GetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SnapshotGroups.prototype.getIamPolicy = function getIamPolicy(request, callback) { + return this.rpcCall(getIamPolicy, $root.google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest, $root.google.cloud.compute.v1beta.Policy, request, callback); + }, "name", { value: "GetIamPolicy" }); + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest} request GetIamPolicySnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.SnapshotGroups|insert}. + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @typedef InsertCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IInsertSnapshotGroupRequest} request InsertSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1beta.SnapshotGroups.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SnapshotGroups.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1beta.InsertSnapshotGroupRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IInsertSnapshotGroupRequest} request InsertSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.SnapshotGroups|list}. + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.ListSnapshotGroups} [response] ListSnapshotGroups + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IListSnapshotGroupsRequest} request ListSnapshotGroupsRequest message or plain object + * @param {google.cloud.compute.v1beta.SnapshotGroups.ListCallback} callback Node-style callback called with the error, if any, and ListSnapshotGroups + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SnapshotGroups.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1beta.ListSnapshotGroupsRequest, $root.google.cloud.compute.v1beta.ListSnapshotGroups, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.IListSnapshotGroupsRequest} request ListSnapshotGroupsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.SnapshotGroups|setIamPolicy}. + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @typedef SetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Policy} [response] Policy + */ + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest} request SetIamPolicySnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1beta.SnapshotGroups.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SnapshotGroups.prototype.setIamPolicy = function setIamPolicy(request, callback) { + return this.rpcCall(setIamPolicy, $root.google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest, $root.google.cloud.compute.v1beta.Policy, request, callback); + }, "name", { value: "SetIamPolicy" }); + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest} request SetIamPolicySnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.SnapshotGroups|testIamPermissions}. + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @typedef TestIamPermissionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.TestPermissionsResponse} [response] TestPermissionsResponse + */ + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest} request TestIamPermissionsSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1beta.SnapshotGroups.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SnapshotGroups.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest, $root.google.cloud.compute.v1beta.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1beta.SnapshotGroups + * @instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest} request TestIamPermissionsSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return SnapshotGroups; + })(); + v1beta.SnapshotSettingsService = (function() { /** diff --git a/packages/google-cloud-compute/protos/protos.json b/packages/google-cloud-compute/protos/protos.json index 46f923b7702..a26cbf6c9b8 100644 --- a/packages/google-cloud-compute/protos/protos.json +++ b/packages/google-cloud-compute/protos/protos.json @@ -128403,6 +128403,11 @@ "maxUtilization" ] }, + "_orchestrationInfo": { + "oneof": [ + "orchestrationInfo" + ] + }, "_preference": { "oneof": [ "preference" @@ -128525,6 +128530,13 @@ "proto3_optional": true } }, + "orchestrationInfo": { + "type": "BackendBackendOrchestrationInfo", + "id": 441144300, + "options": { + "proto3_optional": true + } + }, "preference": { "type": "string", "id": 150781147, @@ -128569,6 +128581,24 @@ } } }, + "BackendBackendOrchestrationInfo": { + "oneofs": { + "_resourceUri": { + "oneof": [ + "resourceUri" + ] + } + }, + "fields": { + "resourceUri": { + "type": "string", + "id": 152830395, + "options": { + "proto3_optional": true + } + } + } + }, "BackendBucket": { "oneofs": { "_bucketName": { @@ -129418,6 +129448,11 @@ "networkPassThroughLbTrafficPolicy" ] }, + "_orchestrationInfo": { + "oneof": [ + "orchestrationInfo" + ] + }, "_outlierDetection": { "oneof": [ "outlierDetection" @@ -129726,6 +129761,13 @@ "proto3_optional": true } }, + "orchestrationInfo": { + "type": "BackendServiceOrchestrationInfo", + "id": 441144300, + "options": { + "proto3_optional": true + } + }, "outlierDetection": { "type": "OutlierDetection", "id": 354625086, @@ -130930,6 +130972,24 @@ } } }, + "BackendServiceOrchestrationInfo": { + "oneofs": { + "_resourceUri": { + "oneof": [ + "resourceUri" + ] + } + }, + "fields": { + "resourceUri": { + "type": "string", + "id": 152830395, + "options": { + "proto3_optional": true + } + } + } + }, "BackendServiceParams": { "fields": { "resourceManagerTags": { @@ -131736,6 +131796,16 @@ }, "BulkInsertDiskResource": { "oneofs": { + "_instantSnapshotGroupParameters": { + "oneof": [ + "instantSnapshotGroupParameters" + ] + }, + "_snapshotGroupParameters": { + "oneof": [ + "snapshotGroupParameters" + ] + }, "_sourceConsistencyGroupPolicy": { "oneof": [ "sourceConsistencyGroupPolicy" @@ -131743,6 +131813,20 @@ } }, "fields": { + "instantSnapshotGroupParameters": { + "type": "InstantSnapshotGroupParameters", + "id": 17051623, + "options": { + "proto3_optional": true + } + }, + "snapshotGroupParameters": { + "type": "SnapshotGroupParameters", + "id": 42252485, + "options": { + "proto3_optional": true + } + }, "sourceConsistencyGroupPolicy": { "type": "string", "id": 19616093, @@ -132289,6 +132373,220 @@ } } }, + "CachePolicy": { + "oneofs": { + "_cacheKeyPolicy": { + "oneof": [ + "cacheKeyPolicy" + ] + }, + "_cacheMode": { + "oneof": [ + "cacheMode" + ] + }, + "_clientTtl": { + "oneof": [ + "clientTtl" + ] + }, + "_defaultTtl": { + "oneof": [ + "defaultTtl" + ] + }, + "_maxTtl": { + "oneof": [ + "maxTtl" + ] + }, + "_negativeCaching": { + "oneof": [ + "negativeCaching" + ] + }, + "_requestCoalescing": { + "oneof": [ + "requestCoalescing" + ] + }, + "_serveWhileStale": { + "oneof": [ + "serveWhileStale" + ] + } + }, + "fields": { + "cacheBypassRequestHeaderNames": { + "rule": "repeated", + "type": "string", + "id": 197581440 + }, + "cacheKeyPolicy": { + "type": "CachePolicyCacheKeyPolicy", + "id": 159263727, + "options": { + "proto3_optional": true + } + }, + "cacheMode": { + "type": "string", + "id": 28877888, + "options": { + "proto3_optional": true + } + }, + "clientTtl": { + "type": "Duration", + "id": 29034360, + "options": { + "proto3_optional": true + } + }, + "defaultTtl": { + "type": "Duration", + "id": 100253422, + "options": { + "proto3_optional": true + } + }, + "maxTtl": { + "type": "Duration", + "id": 307578001, + "options": { + "proto3_optional": true + } + }, + "negativeCaching": { + "type": "bool", + "id": 336110005, + "options": { + "proto3_optional": true + } + }, + "negativeCachingPolicy": { + "rule": "repeated", + "type": "CachePolicyNegativeCachingPolicy", + "id": 155359996 + }, + "requestCoalescing": { + "type": "bool", + "id": 532808276, + "options": { + "proto3_optional": true + } + }, + "serveWhileStale": { + "type": "Duration", + "id": 236682203, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "CacheMode": { + "values": { + "UNDEFINED_CACHE_MODE": 0, + "CACHE_ALL_STATIC": 355027945, + "FORCE_CACHE_ALL": 486026928, + "USE_ORIGIN_HEADERS": 55380261 + } + } + } + }, + "CachePolicyCacheKeyPolicy": { + "oneofs": { + "_includeHost": { + "oneof": [ + "includeHost" + ] + }, + "_includeProtocol": { + "oneof": [ + "includeProtocol" + ] + }, + "_includeQueryString": { + "oneof": [ + "includeQueryString" + ] + } + }, + "fields": { + "excludedQueryParameters": { + "rule": "repeated", + "type": "string", + "id": 124896150 + }, + "includeHost": { + "type": "bool", + "id": 486867679, + "options": { + "proto3_optional": true + } + }, + "includeProtocol": { + "type": "bool", + "id": 303507535, + "options": { + "proto3_optional": true + } + }, + "includeQueryString": { + "type": "bool", + "id": 474036639, + "options": { + "proto3_optional": true + } + }, + "includedCookieNames": { + "rule": "repeated", + "type": "string", + "id": 66987088 + }, + "includedHeaderNames": { + "rule": "repeated", + "type": "string", + "id": 533756345 + }, + "includedQueryParameters": { + "rule": "repeated", + "type": "string", + "id": 2319076 + } + } + }, + "CachePolicyNegativeCachingPolicy": { + "oneofs": { + "_code": { + "oneof": [ + "code" + ] + }, + "_ttl": { + "oneof": [ + "ttl" + ] + } + }, + "fields": { + "code": { + "type": "int32", + "id": 3059181, + "options": { + "proto3_optional": true + } + }, + "ttl": { + "type": "Duration", + "id": 115180, + "options": { + "proto3_optional": true + } + } + } + }, "CalendarModeAdviceRequest": { "fields": { "futureResourcesSpecs": { @@ -133078,6 +133376,7 @@ "GENERAL_PURPOSE_N2": 301912156, "GENERAL_PURPOSE_N2D": 232471400, "GENERAL_PURPOSE_N4": 301912158, + "GENERAL_PURPOSE_N4A": 232471459, "GENERAL_PURPOSE_N4D": 232471462, "GENERAL_PURPOSE_T2D": 232477166, "GRAPHICS_OPTIMIZED": 68500563, @@ -133631,6 +133930,54 @@ } } }, + "ConfigureAcceleratorTopologiesInstanceGroupManagerRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "instanceGroupManager": { + "type": "string", + "id": 249363395, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instanceGroupManagersConfigureAcceleratorTopologiesRequestResource": { + "type": "InstanceGroupManagersConfigureAcceleratorTopologiesRequest", + "id": 365743316, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, "ConnectionDraining": { "oneofs": { "_drainingTimeoutSec": { @@ -135508,6 +135855,47 @@ } } }, + "DeleteInstantSnapshotGroupRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "instantSnapshotGroup": { + "type": "string", + "id": 223180386, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, "DeleteInstantSnapshotRequest": { "oneofs": { "_requestId": { @@ -135755,6 +136143,59 @@ } } }, + "DeleteNamedSetRouterRequest": { + "oneofs": { + "_namedSet": { + "oneof": [ + "namedSet" + ] + }, + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "namedSet": { + "type": "string", + "id": 164134492, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "router": { + "type": "string", + "id": 148608841, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "DeleteNetworkAttachmentRequest": { "oneofs": { "_requestId": { @@ -136841,6 +137282,47 @@ } } }, + "DeleteRegionInstantSnapshotGroupRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "instantSnapshotGroup": { + "type": "string", + "id": 223180386, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + } + } + }, "DeleteRegionInstantSnapshotRequest": { "oneofs": { "_requestId": { @@ -137872,6 +138354,39 @@ } } }, + "DeleteSnapshotGroupRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "snapshotGroup": { + "type": "string", + "id": 84528196, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "DeleteSnapshotRequest": { "oneofs": { "_requestId": { @@ -141056,6 +141571,11 @@ "name" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_redundancyType": { "oneof": [ "redundancyType" @@ -141120,6 +141640,13 @@ "proto3_optional": true } }, + "params": { + "type": "ExternalVpnGatewayParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "redundancyType": { "type": "string", "id": 271443740, @@ -141271,6 +141798,15 @@ } } }, + "ExternalVpnGatewayParams": { + "fields": { + "resourceManagerTags": { + "keyType": "string", + "type": "string", + "id": 377671164 + } + } + }, "FileContentBuffer": { "oneofs": { "_content": { @@ -141898,7 +142434,9 @@ "PolicyType": { "values": { "UNDEFINED_POLICY_TYPE": 0, + "RDMA_FALCON_POLICY": 66315047, "RDMA_ROCE_POLICY": 148757145, + "ULL_POLICY": 100494364, "VPC_POLICY": 74319208 } } @@ -143328,6 +143866,11 @@ }, "FutureReservation": { "oneofs": { + "_advancedDeploymentControl": { + "oneof": [ + "advancedDeploymentControl" + ] + }, "_aggregateReservation": { "oneof": [ "aggregateReservation" @@ -143460,6 +144003,13 @@ } }, "fields": { + "advancedDeploymentControl": { + "type": "ReservationAdvancedDeploymentControl", + "id": 410618144, + "options": { + "proto3_optional": true + } + }, "aggregateReservation": { "type": "AllocationAggregateReservation", "id": 291567948, @@ -145980,6 +146530,45 @@ } } }, + "GetIamPolicyInstantSnapshotGroupRequest": { + "oneofs": { + "_optionsRequestedPolicyVersion": { + "oneof": [ + "optionsRequestedPolicyVersion" + ] + } + }, + "fields": { + "optionsRequestedPolicyVersion": { + "type": "int32", + "id": 499220029, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetIamPolicyInstantSnapshotRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { @@ -146413,6 +147002,45 @@ } } }, + "GetIamPolicyRegionInstantSnapshotGroupRequest": { + "oneofs": { + "_optionsRequestedPolicyVersion": { + "oneof": [ + "optionsRequestedPolicyVersion" + ] + } + }, + "fields": { + "optionsRequestedPolicyVersion": { + "type": "int32", + "id": 499220029, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetIamPolicyRegionInstantSnapshotRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { @@ -146739,6 +147367,38 @@ } } }, + "GetIamPolicySnapshotGroupRequest": { + "oneofs": { + "_optionsRequestedPolicyVersion": { + "oneof": [ + "optionsRequestedPolicyVersion" + ] + } + }, + "fields": { + "optionsRequestedPolicyVersion": { + "type": "int32", + "id": 499220029, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetIamPolicySnapshotRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { @@ -147083,6 +147743,31 @@ } } }, + "GetInstantSnapshotGroupRequest": { + "fields": { + "instantSnapshotGroup": { + "type": "string", + "id": 223180386, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetInstantSnapshotRequest": { "fields": { "instantSnapshot": { @@ -147320,6 +148005,45 @@ } } }, + "GetNamedSetRouterRequest": { + "oneofs": { + "_namedSet": { + "oneof": [ + "namedSet" + ] + } + }, + "fields": { + "namedSet": { + "type": "string", + "id": 164134492, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "router": { + "type": "string", + "id": 148608841, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetNatIpInfoRouterRequest": { "oneofs": { "_natName": { @@ -148326,6 +149050,31 @@ } } }, + "GetRegionInstantSnapshotGroupRequest": { + "fields": { + "instantSnapshotGroup": { + "type": "string", + "id": 223180386, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetRegionInstantSnapshotRequest": { "fields": { "instantSnapshot": { @@ -148851,6 +149600,38 @@ } } }, + "GetReservationSlotRequest": { + "fields": { + "parentName": { + "type": "string", + "id": 478151936, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "reservationSlot": { + "type": "string", + "id": 277470865, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetReservationSubBlockRequest": { "oneofs": { "_view": { @@ -149450,6 +150231,24 @@ } } }, + "GetSnapshotGroupRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "snapshotGroup": { + "type": "string", + "id": 84528196, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetSnapshotRequest": { "fields": { "project": { @@ -153475,6 +154274,11 @@ }, "HttpRouteAction": { "oneofs": { + "_cachePolicy": { + "oneof": [ + "cachePolicy" + ] + }, "_corsPolicy": { "oneof": [ "corsPolicy" @@ -153512,6 +154316,13 @@ } }, "fields": { + "cachePolicy": { + "type": "CachePolicy", + "id": 457366671, + "options": { + "proto3_optional": true + } + }, "corsPolicy": { "type": "CorsPolicy", "id": 398943748, @@ -155228,6 +156039,59 @@ } } }, + "InsertInstantSnapshotGroupRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + }, + "_sourceConsistencyGroup": { + "oneof": [ + "sourceConsistencyGroup" + ] + } + }, + "fields": { + "instantSnapshotGroupResource": { + "type": "InstantSnapshotGroup", + "id": 145067339, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "sourceConsistencyGroup": { + "type": "string", + "id": 531359348, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, "InsertInstantSnapshotRequest": { "oneofs": { "_requestId": { @@ -156494,18 +157358,23 @@ } } }, - "InsertRegionInstantSnapshotRequest": { + "InsertRegionInstantSnapshotGroupRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] + }, + "_sourceConsistencyGroup": { + "oneof": [ + "sourceConsistencyGroup" + ] } }, "fields": { - "instantSnapshotResource": { - "type": "InstantSnapshot", - "id": 383915339, + "instantSnapshotGroupResource": { + "type": "InstantSnapshotGroup", + "id": 145067339, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -156532,10 +157401,17 @@ "options": { "proto3_optional": true } + }, + "sourceConsistencyGroup": { + "type": "string", + "id": 531359348, + "options": { + "proto3_optional": true + } } } }, - "InsertRegionMultiMigRequest": { + "InsertRegionInstantSnapshotRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -156544,9 +157420,9 @@ } }, "fields": { - "multiMigResource": { - "type": "MultiMig", - "id": 173722824, + "instantSnapshotResource": { + "type": "InstantSnapshot", + "id": 383915339, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -156576,7 +157452,7 @@ } } }, - "InsertRegionNetworkEndpointGroupRequest": { + "InsertRegionMultiMigRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -156585,9 +157461,9 @@ } }, "fields": { - "networkEndpointGroupResource": { - "type": "NetworkEndpointGroup", - "id": 525788839, + "multiMigResource": { + "type": "MultiMig", + "id": 173722824, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -156617,7 +157493,7 @@ } } }, - "InsertRegionNetworkFirewallPolicyRequest": { + "InsertRegionNetworkEndpointGroupRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -156626,9 +157502,9 @@ } }, "fields": { - "firewallPolicyResource": { - "type": "FirewallPolicy", - "id": 495049532, + "networkEndpointGroupResource": { + "type": "NetworkEndpointGroup", + "id": 525788839, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -156658,7 +157534,7 @@ } } }, - "InsertRegionNetworkPolicyRequest": { + "InsertRegionNetworkFirewallPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -156667,9 +157543,9 @@ } }, "fields": { - "networkPolicyResource": { - "type": "NetworkPolicy", - "id": 437886058, + "firewallPolicyResource": { + "type": "FirewallPolicy", + "id": 495049532, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -156699,7 +157575,7 @@ } } }, - "InsertRegionNotificationEndpointRequest": { + "InsertRegionNetworkPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -156708,9 +157584,50 @@ } }, "fields": { - "notificationEndpointResource": { - "type": "NotificationEndpoint", - "id": 338459940, + "networkPolicyResource": { + "type": "NetworkPolicy", + "id": 437886058, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + } + } + }, + "InsertRegionNotificationEndpointRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "notificationEndpointResource": { + "type": "NotificationEndpoint", + "id": 338459940, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -157355,6 +158272,39 @@ } } }, + "InsertSnapshotGroupRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "snapshotGroupResource": { + "type": "SnapshotGroup", + "id": 265205161, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "InsertSnapshotRequest": { "oneofs": { "_requestId": { @@ -158249,6 +159199,11 @@ "tags" ] }, + "_workloadIdentityConfig": { + "oneof": [ + "workloadIdentityConfig" + ] + }, "_zone": { "oneof": [ "zone" @@ -158592,6 +159547,13 @@ "proto3_optional": true } }, + "workloadIdentityConfig": { + "type": "WorkloadIdentityConfig", + "id": 338198811, + "options": { + "proto3_optional": true + } + }, "zone": { "type": "string", "id": 3744684, @@ -160542,6 +161504,11 @@ "bulkInstanceOperation" ] }, + "_currentInstanceStatuses": { + "oneof": [ + "currentInstanceStatuses" + ] + }, "_isStable": { "oneof": [ "isStable" @@ -160580,6 +161547,13 @@ "proto3_optional": true } }, + "currentInstanceStatuses": { + "type": "InstanceGroupManagerStatusInstanceStatusSummary", + "id": 269432644, + "options": { + "proto3_optional": true + } + }, "isStable": { "type": "bool", "id": 108410864, @@ -160693,6 +161667,168 @@ } } }, + "InstanceGroupManagerStatusInstanceStatusSummary": { + "oneofs": { + "_deprovisioning": { + "oneof": [ + "deprovisioning" + ] + }, + "_nonExistent": { + "oneof": [ + "nonExistent" + ] + }, + "_pending": { + "oneof": [ + "pending" + ] + }, + "_pendingStop": { + "oneof": [ + "pendingStop" + ] + }, + "_provisioning": { + "oneof": [ + "provisioning" + ] + }, + "_repairing": { + "oneof": [ + "repairing" + ] + }, + "_running": { + "oneof": [ + "running" + ] + }, + "_staging": { + "oneof": [ + "staging" + ] + }, + "_stopped": { + "oneof": [ + "stopped" + ] + }, + "_stopping": { + "oneof": [ + "stopping" + ] + }, + "_suspended": { + "oneof": [ + "suspended" + ] + }, + "_suspending": { + "oneof": [ + "suspending" + ] + }, + "_terminated": { + "oneof": [ + "terminated" + ] + } + }, + "fields": { + "deprovisioning": { + "type": "int32", + "id": 462169582, + "options": { + "proto3_optional": true + } + }, + "nonExistent": { + "type": "int32", + "id": 468485062, + "options": { + "proto3_optional": true + } + }, + "pending": { + "type": "int32", + "id": 391154071, + "options": { + "proto3_optional": true + } + }, + "pendingStop": { + "type": "int32", + "id": 163159466, + "options": { + "proto3_optional": true + } + }, + "provisioning": { + "type": "int32", + "id": 121098989, + "options": { + "proto3_optional": true + } + }, + "repairing": { + "type": "int32", + "id": 311243061, + "options": { + "proto3_optional": true + } + }, + "running": { + "type": "int32", + "id": 477042111, + "options": { + "proto3_optional": true + } + }, + "staging": { + "type": "int32", + "id": 249960507, + "options": { + "proto3_optional": true + } + }, + "stopped": { + "type": "int32", + "id": 263164365, + "options": { + "proto3_optional": true + } + }, + "stopping": { + "type": "int32", + "id": 105035892, + "options": { + "proto3_optional": true + } + }, + "suspended": { + "type": "int32", + "id": 485854683, + "options": { + "proto3_optional": true + } + }, + "suspending": { + "type": "int32", + "id": 29113894, + "options": { + "proto3_optional": true + } + }, + "terminated": { + "type": "int32", + "id": 301796899, + "options": { + "proto3_optional": true + } + } + } + }, "InstanceGroupManagerStatusStateful": { "oneofs": { "_hasStatefulConfig": { @@ -161041,6 +162177,15 @@ } } }, + "InstanceGroupManagersConfigureAcceleratorTopologiesRequest": { + "fields": { + "acceleratorTopologyActions": { + "keyType": "string", + "type": "string", + "id": 16520833 + } + } + }, "InstanceGroupManagersCreateInstancesRequest": { "fields": { "instances": { @@ -161083,11 +162228,25 @@ } }, "InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse": { + "oneofs": { + "_multiMig": { + "oneof": [ + "multiMig" + ] + } + }, "fields": { "acceleratorTopologiesInfo": { "keyType": "string", "type": "InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo", "id": 84833420 + }, + "multiMig": { + "type": "string", + "id": 403990085, + "options": { + "proto3_optional": true + } } } }, @@ -161102,6 +162261,21 @@ "oneof": [ "acceleratorTopologyHealth" ] + }, + "_acceleratorTopologyState": { + "oneof": [ + "acceleratorTopologyState" + ] + }, + "_instancesHealth": { + "oneof": [ + "instancesHealth" + ] + }, + "_parent": { + "oneof": [ + "parent" + ] } }, "fields": { @@ -161118,6 +162292,27 @@ "options": { "proto3_optional": true } + }, + "acceleratorTopologyState": { + "type": "InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState", + "id": 228860693, + "options": { + "proto3_optional": true + } + }, + "instancesHealth": { + "type": "string", + "id": 165893949, + "options": { + "proto3_optional": true + } + }, + "parent": { + "type": "string", + "id": 78317738, + "options": { + "proto3_optional": true + } } }, "nested": { @@ -161126,7 +162321,71 @@ "UNDEFINED_ACCELERATOR_TOPOLOGY_HEALTH": 0, "DEGRADED": 396890926, "HEALTHY": 439801213, - "UNHEALTHY": 462118084 + "UNHEALTHY": 462118084, + "UNKNOWN": 433141802 + } + }, + "InstancesHealth": { + "values": { + "UNDEFINED_INSTANCES_HEALTH": 0, + "ALL_HEALTHY": 519465151, + "UNHEALTHY_OR_MISSING": 59982149 + } + } + } + }, + "InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState": { + "oneofs": { + "_currentState": { + "oneof": [ + "currentState" + ] + }, + "_error": { + "oneof": [ + "error" + ] + }, + "_errorTimestamp": { + "oneof": [ + "errorTimestamp" + ] + } + }, + "fields": { + "currentState": { + "type": "string", + "id": 438511179, + "options": { + "proto3_optional": true + } + }, + "error": { + "type": "Error", + "id": 96784904, + "options": { + "proto3_optional": true + } + }, + "errorTimestamp": { + "type": "string", + "id": 219548575, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "CurrentState": { + "values": { + "UNDEFINED_CURRENT_STATE": 0, + "ACTIVATING": 378825968, + "ACTIVE": 314733318, + "ACTIVE_DEGRADED": 471128135, + "DEACTIVATING": 57182257, + "FAILED": 455706685, + "INACTIVE": 270421099, + "INCOMPLETE": 11941214 } } } @@ -161984,6 +163243,11 @@ "oneof": [ "tags" ] + }, + "_workloadIdentityConfig": { + "oneof": [ + "workloadIdentityConfig" + ] } }, "fields": { @@ -162145,6 +163409,13 @@ "options": { "proto3_optional": true } + }, + "workloadIdentityConfig": { + "type": "WorkloadIdentityConfig", + "id": 338198811, + "options": { + "proto3_optional": true + } } }, "nested": { @@ -162853,6 +164124,7 @@ "values": { "UNDEFINED_BEHAVIOR": 0, "BEHAVIOR_UNSPECIFIED": 85734570, + "CHIP_ERROR": 263151669, "PERFORMANCE": 135701520, "SILENT_DATA_CORRUPTION": 111360678, "UNRECOVERABLE_GPU_ERROR": 363710747 @@ -163101,6 +164373,11 @@ "name" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_region": { "oneof": [ "region" @@ -163141,6 +164418,16 @@ "sourceDiskId" ] }, + "_sourceInstantSnapshotGroup": { + "oneof": [ + "sourceInstantSnapshotGroup" + ] + }, + "_sourceInstantSnapshotGroupId": { + "oneof": [ + "sourceInstantSnapshotGroupId" + ] + }, "_status": { "oneof": [ "status" @@ -163214,6 +164501,13 @@ "proto3_optional": true } }, + "params": { + "type": "InstantSnapshotParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "region": { "type": "string", "id": 138946292, @@ -163270,6 +164564,20 @@ "proto3_optional": true } }, + "sourceInstantSnapshotGroup": { + "type": "string", + "id": 525991686, + "options": { + "proto3_optional": true + } + }, + "sourceInstantSnapshotGroupId": { + "type": "string", + "id": 167103732, + "options": { + "proto3_optional": true + } + }, "status": { "type": "string", "id": 181260274, @@ -163382,6 +164690,247 @@ } } }, + "InstantSnapshotGroup": { + "oneofs": { + "_creationTimestamp": { + "oneof": [ + "creationTimestamp" + ] + }, + "_description": { + "oneof": [ + "description" + ] + }, + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_name": { + "oneof": [ + "name" + ] + }, + "_region": { + "oneof": [ + "region" + ] + }, + "_resourceStatus": { + "oneof": [ + "resourceStatus" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_selfLinkWithId": { + "oneof": [ + "selfLinkWithId" + ] + }, + "_sourceConsistencyGroup": { + "oneof": [ + "sourceConsistencyGroup" + ] + }, + "_status": { + "oneof": [ + "status" + ] + }, + "_zone": { + "oneof": [ + "zone" + ] + } + }, + "fields": { + "creationTimestamp": { + "type": "string", + "id": 30525366, + "options": { + "proto3_optional": true + } + }, + "description": { + "type": "string", + "id": 422937596, + "options": { + "proto3_optional": true + } + }, + "id": { + "type": "uint64", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "name": { + "type": "string", + "id": 3373707, + "options": { + "proto3_optional": true + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "proto3_optional": true + } + }, + "resourceStatus": { + "type": "InstantSnapshotGroupResourceStatus", + "id": 249429315, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "selfLinkWithId": { + "type": "string", + "id": 44520962, + "options": { + "proto3_optional": true + } + }, + "sourceConsistencyGroup": { + "type": "string", + "id": 531359348, + "options": { + "proto3_optional": true + } + }, + "status": { + "type": "string", + "id": 181260274, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Status": { + "values": { + "UNDEFINED_STATUS": 0, + "CREATING": 455564985, + "DELETING": 528602024, + "FAILED": 455706685, + "INVALID": 530283991, + "READY": 77848963, + "UNKNOWN": 433141802 + } + } + } + }, + "InstantSnapshotGroupParameters": { + "oneofs": { + "_sourceInstantSnapshotGroup": { + "oneof": [ + "sourceInstantSnapshotGroup" + ] + } + }, + "fields": { + "sourceInstantSnapshotGroup": { + "type": "string", + "id": 525991686, + "options": { + "proto3_optional": true + } + } + } + }, + "InstantSnapshotGroupResourceStatus": { + "oneofs": { + "_consistencyMembershipResolutionTime": { + "oneof": [ + "consistencyMembershipResolutionTime" + ] + }, + "_sourceInfo": { + "oneof": [ + "sourceInfo" + ] + } + }, + "fields": { + "consistencyMembershipResolutionTime": { + "type": "string", + "id": 346675870, + "options": { + "proto3_optional": true + } + }, + "sourceInfo": { + "type": "InstantSnapshotGroupSourceInfo", + "id": 451907154, + "options": { + "proto3_optional": true + } + } + } + }, + "InstantSnapshotGroupSourceInfo": { + "oneofs": { + "_consistencyGroup": { + "oneof": [ + "consistencyGroup" + ] + }, + "_consistencyGroupId": { + "oneof": [ + "consistencyGroupId" + ] + } + }, + "fields": { + "consistencyGroup": { + "type": "string", + "id": 508183960, + "options": { + "proto3_optional": true + } + }, + "consistencyGroupId": { + "type": "string", + "id": 85599522, + "options": { + "proto3_optional": true + } + } + } + }, "InstantSnapshotList": { "oneofs": { "_id": { @@ -163453,6 +165002,15 @@ } } }, + "InstantSnapshotParams": { + "fields": { + "resourceManagerTags": { + "keyType": "string", + "type": "string", + "id": 377671164 + } + } + }, "InstantSnapshotResourceStatus": { "oneofs": { "_storageSizeBytes": { @@ -171838,87 +173396,255 @@ } } }, - "ListInstantSnapshotsRequest": { + "ListInstantSnapshotGroups": { "oneofs": { - "_filter": { + "_etag": { "oneof": [ - "filter" + "etag" ] }, - "_maxResults": { + "_id": { "oneof": [ - "maxResults" + "id" ] }, - "_orderBy": { + "_kind": { "oneof": [ - "orderBy" + "kind" ] }, - "_pageToken": { + "_nextPageToken": { "oneof": [ - "pageToken" + "nextPageToken" ] }, - "_returnPartialSuccess": { + "_selfLink": { "oneof": [ - "returnPartialSuccess" + "selfLink" + ] + }, + "_warning": { + "oneof": [ + "warning" ] } }, "fields": { - "filter": { + "etag": { "type": "string", - "id": 336120696, + "id": 3123477, "options": { "proto3_optional": true } }, - "maxResults": { - "type": "uint32", - "id": 54715419, + "id": { + "type": "string", + "id": 3355, "options": { "proto3_optional": true } }, - "orderBy": { + "items": { + "rule": "repeated", + "type": "InstantSnapshotGroup", + "id": 100526016 + }, + "kind": { "type": "string", - "id": 160562920, + "id": 3292052, "options": { "proto3_optional": true } }, - "pageToken": { + "nextPageToken": { "type": "string", - "id": 19994697, + "id": 79797525, "options": { "proto3_optional": true } }, - "project": { + "selfLink": { "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "returnPartialSuccess": { - "type": "bool", - "id": 517198390, + "id": 456214797, "options": { "proto3_optional": true } }, - "zone": { + "unreachables": { + "rule": "repeated", "type": "string", - "id": 3744684, + "id": 243372063 + }, + "warning": { + "type": "Warning", + "id": 50704284, "options": { - "(google.api.field_behavior)": "REQUIRED" + "proto3_optional": true } } } }, - "ListInterconnectAttachmentGroupsRequest": { + "ListInstantSnapshotGroupsRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ListInstantSnapshotsRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ListInterconnectAttachmentGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -172763,7 +174489,7 @@ } } }, - "ListNetworkAttachmentsRequest": { + "ListNamedSetsRoutersRequest": { "oneofs": { "_filter": { "oneof": [ @@ -172840,10 +174566,17 @@ "options": { "proto3_optional": true } + }, + "router": { + "type": "string", + "id": 148608841, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListNetworkEndpointGroupsRequest": { + "ListNetworkAttachmentsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -172907,23 +174640,23 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "returnPartialSuccess": { "type": "bool", "id": 517198390, "options": { "proto3_optional": true } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest": { + "ListNetworkEndpointGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -172966,13 +174699,6 @@ "proto3_optional": true } }, - "networkEndpointGroup": { - "type": "string", - "id": 433907078, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "orderBy": { "type": "string", "id": 160562920, @@ -173000,10 +174726,17 @@ "options": { "proto3_optional": true } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListNetworkEndpointsNetworkEndpointGroupsRequest": { + "ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -173053,13 +174786,6 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "networkEndpointGroupsListEndpointsRequestResource": { - "type": "NetworkEndpointGroupsListEndpointsRequest", - "id": 59493390, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "orderBy": { "type": "string", "id": 160562920, @@ -173087,17 +174813,10 @@ "options": { "proto3_optional": true } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "ListNetworkEndpointsRegionNetworkEndpointGroupsRequest": { + "ListNetworkEndpointsNetworkEndpointGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -173147,6 +174866,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "networkEndpointGroupsListEndpointsRequestResource": { + "type": "NetworkEndpointGroupsListEndpointsRequest", + "id": 59493390, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "orderBy": { "type": "string", "id": 160562920, @@ -173168,23 +174894,23 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "returnPartialSuccess": { "type": "bool", "id": 517198390, "options": { "proto3_optional": true } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListNetworkFirewallPoliciesRequest": { + "ListNetworkEndpointsRegionNetworkEndpointGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -173227,6 +174953,13 @@ "proto3_optional": true } }, + "networkEndpointGroup": { + "type": "string", + "id": 433907078, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "orderBy": { "type": "string", "id": 160562920, @@ -173248,6 +174981,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "returnPartialSuccess": { "type": "bool", "id": 517198390, @@ -173257,7 +174997,80 @@ } } }, - "ListNetworkProfilesRequest": { + "ListNetworkFirewallPoliciesRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + } + } + }, + "ListNetworkProfilesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -175880,87 +177693,7 @@ } } }, - "ListRegionInstantSnapshotsRequest": { - "oneofs": { - "_filter": { - "oneof": [ - "filter" - ] - }, - "_maxResults": { - "oneof": [ - "maxResults" - ] - }, - "_orderBy": { - "oneof": [ - "orderBy" - ] - }, - "_pageToken": { - "oneof": [ - "pageToken" - ] - }, - "_returnPartialSuccess": { - "oneof": [ - "returnPartialSuccess" - ] - } - }, - "fields": { - "filter": { - "type": "string", - "id": 336120696, - "options": { - "proto3_optional": true - } - }, - "maxResults": { - "type": "uint32", - "id": 54715419, - "options": { - "proto3_optional": true - } - }, - "orderBy": { - "type": "string", - "id": 160562920, - "options": { - "proto3_optional": true - } - }, - "pageToken": { - "type": "string", - "id": 19994697, - "options": { - "proto3_optional": true - } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "returnPartialSuccess": { - "type": "bool", - "id": 517198390, - "options": { - "proto3_optional": true - } - } - } - }, - "ListRegionMultiMigMembersRequest": { + "ListRegionInstantSnapshotGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -176003,13 +177736,6 @@ "proto3_optional": true } }, - "multiMig": { - "type": "string", - "id": 403990085, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "orderBy": { "type": "string", "id": 160562920, @@ -176047,7 +177773,7 @@ } } }, - "ListRegionMultiMigsRequest": { + "ListRegionInstantSnapshotsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -176127,7 +177853,7 @@ } } }, - "ListRegionNetworkEndpointGroupsRequest": { + "ListRegionMultiMigMembersRequest": { "oneofs": { "_filter": { "oneof": [ @@ -176170,86 +177896,13 @@ "proto3_optional": true } }, - "orderBy": { - "type": "string", - "id": 160562920, - "options": { - "proto3_optional": true - } - }, - "pageToken": { - "type": "string", - "id": 19994697, - "options": { - "proto3_optional": true - } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "region": { + "multiMig": { "type": "string", - "id": 138946292, + "id": 403990085, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "returnPartialSuccess": { - "type": "bool", - "id": 517198390, - "options": { - "proto3_optional": true - } - } - } - }, - "ListRegionNetworkFirewallPoliciesRequest": { - "oneofs": { - "_filter": { - "oneof": [ - "filter" - ] - }, - "_maxResults": { - "oneof": [ - "maxResults" - ] - }, - "_orderBy": { - "oneof": [ - "orderBy" - ] - }, - "_pageToken": { - "oneof": [ - "pageToken" - ] - }, - "_returnPartialSuccess": { - "oneof": [ - "returnPartialSuccess" - ] - } - }, - "fields": { - "filter": { - "type": "string", - "id": 336120696, - "options": { - "proto3_optional": true - } - }, - "maxResults": { - "type": "uint32", - "id": 54715419, - "options": { - "proto3_optional": true - } - }, "orderBy": { "type": "string", "id": 160562920, @@ -176287,7 +177940,7 @@ } } }, - "ListRegionNetworkPoliciesRequest": { + "ListRegionMultiMigsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -176367,7 +178020,7 @@ } } }, - "ListRegionNotificationEndpointsRequest": { + "ListRegionNetworkEndpointGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -176447,7 +178100,7 @@ } } }, - "ListRegionOperationsRequest": { + "ListRegionNetworkFirewallPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -176527,7 +178180,7 @@ } } }, - "ListRegionSecurityPoliciesRequest": { + "ListRegionNetworkPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -176607,7 +178260,7 @@ } } }, - "ListRegionSnapshotsRequest": { + "ListRegionNotificationEndpointsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -176687,7 +178340,7 @@ } } }, - "ListRegionSslCertificatesRequest": { + "ListRegionOperationsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -176767,7 +178420,7 @@ } } }, - "ListRegionSslPoliciesRequest": { + "ListRegionSecurityPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -176847,7 +178500,7 @@ } } }, - "ListRegionTargetHttpProxiesRequest": { + "ListRegionSnapshotsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -176927,7 +178580,7 @@ } } }, - "ListRegionTargetHttpsProxiesRequest": { + "ListRegionSslCertificatesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -177007,7 +178660,7 @@ } } }, - "ListRegionTargetTcpProxiesRequest": { + "ListRegionSslPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -177087,7 +178740,7 @@ } } }, - "ListRegionUrlMapsRequest": { + "ListRegionTargetHttpProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -177167,7 +178820,7 @@ } } }, - "ListRegionZonesRequest": { + "ListRegionTargetHttpsProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -177247,7 +178900,7 @@ } } }, - "ListRegionsRequest": { + "ListRegionTargetTcpProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -177311,6 +178964,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "returnPartialSuccess": { "type": "bool", "id": 517198390, @@ -177320,7 +178980,7 @@ } } }, - "ListReservationBlocksRequest": { + "ListRegionUrlMapsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -177384,9 +179044,9 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "reservation": { + "region": { "type": "string", - "id": 47530956, + "id": 138946292, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -177397,17 +179057,10 @@ "options": { "proto3_optional": true } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "ListReservationSubBlocksRequest": { + "ListRegionZonesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -177464,16 +179117,16 @@ "proto3_optional": true } }, - "parentName": { + "project": { "type": "string", - "id": 478151936, + "id": 227560217, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "project": { + "region": { "type": "string", - "id": 227560217, + "id": 138946292, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -177484,17 +179137,10 @@ "options": { "proto3_optional": true } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "ListReservationsRequest": { + "ListRegionsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -177564,17 +179210,10 @@ "options": { "proto3_optional": true } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "ListResourcePoliciesRequest": { + "ListReservationBlocksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -177638,9 +179277,9 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { + "reservation": { "type": "string", - "id": 138946292, + "id": 47530956, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -177651,10 +179290,17 @@ "options": { "proto3_optional": true } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListRolloutPlansRequest": { + "ListReservationSlotsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -177711,6 +179357,13 @@ "proto3_optional": true } }, + "parentName": { + "type": "string", + "id": 478151936, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "project": { "type": "string", "id": 227560217, @@ -177724,10 +179377,17 @@ "options": { "proto3_optional": true } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListRolloutsRequest": { + "ListReservationSubBlocksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -177784,6 +179444,13 @@ "proto3_optional": true } }, + "parentName": { + "type": "string", + "id": 478151936, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "project": { "type": "string", "id": 227560217, @@ -177797,10 +179464,17 @@ "options": { "proto3_optional": true } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListRoutePoliciesRoutersRequest": { + "ListReservationsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -177864,13 +179538,6 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "returnPartialSuccess": { "type": "bool", "id": 517198390, @@ -177878,16 +179545,16 @@ "proto3_optional": true } }, - "router": { + "zone": { "type": "string", - "id": 148608841, + "id": 3744684, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "ListRoutersRequest": { + "ListResourcePoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -177967,7 +179634,7 @@ } } }, - "ListRoutesRequest": { + "ListRolloutPlansRequest": { "oneofs": { "_filter": { "oneof": [ @@ -178040,7 +179707,7 @@ } } }, - "ListSecurityPoliciesRequest": { + "ListRolloutsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -178113,7 +179780,7 @@ } } }, - "ListServiceAttachmentsRequest": { + "ListRoutePoliciesRoutersRequest": { "oneofs": { "_filter": { "oneof": [ @@ -178190,10 +179857,17 @@ "options": { "proto3_optional": true } + }, + "router": { + "type": "string", + "id": 148608841, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListSnapshotsRequest": { + "ListRoutersRequest": { "oneofs": { "_filter": { "oneof": [ @@ -178257,6 +179931,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "returnPartialSuccess": { "type": "bool", "id": 517198390, @@ -178266,7 +179947,7 @@ } } }, - "ListSslCertificatesRequest": { + "ListRoutesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -178339,7 +180020,7 @@ } } }, - "ListSslPoliciesRequest": { + "ListSecurityPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -178412,7 +180093,7 @@ } } }, - "ListStoragePoolTypesRequest": { + "ListServiceAttachmentsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -178476,103 +180157,111 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "returnPartialSuccess": { "type": "bool", "id": 517198390, "options": { "proto3_optional": true } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "ListStoragePoolsRequest": { + "ListSnapshotGroups": { "oneofs": { - "_filter": { + "_etag": { "oneof": [ - "filter" + "etag" ] }, - "_maxResults": { + "_id": { "oneof": [ - "maxResults" + "id" ] }, - "_orderBy": { + "_kind": { "oneof": [ - "orderBy" + "kind" ] }, - "_pageToken": { + "_nextPageToken": { "oneof": [ - "pageToken" + "nextPageToken" ] }, - "_returnPartialSuccess": { + "_selfLink": { "oneof": [ - "returnPartialSuccess" + "selfLink" + ] + }, + "_warning": { + "oneof": [ + "warning" ] } }, "fields": { - "filter": { + "etag": { "type": "string", - "id": 336120696, + "id": 3123477, "options": { "proto3_optional": true } }, - "maxResults": { - "type": "uint32", - "id": 54715419, + "id": { + "type": "string", + "id": 3355, "options": { "proto3_optional": true } }, - "orderBy": { + "items": { + "rule": "repeated", + "type": "SnapshotGroup", + "id": 100526016 + }, + "kind": { "type": "string", - "id": 160562920, + "id": 3292052, "options": { "proto3_optional": true } }, - "pageToken": { + "nextPageToken": { "type": "string", - "id": 19994697, + "id": 79797525, "options": { "proto3_optional": true } }, - "project": { + "selfLink": { "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "returnPartialSuccess": { - "type": "bool", - "id": 517198390, + "id": 456214797, "options": { "proto3_optional": true } }, - "zone": { + "unreachables": { + "rule": "repeated", "type": "string", - "id": 3744684, + "id": 243372063 + }, + "warning": { + "type": "Warning", + "id": 50704284, "options": { - "(google.api.field_behavior)": "REQUIRED" + "proto3_optional": true } } } }, - "ListSubnetworksRequest": { + "ListSnapshotGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -178598,11 +180287,6 @@ "oneof": [ "returnPartialSuccess" ] - }, - "_views": { - "oneof": [ - "views" - ] } }, "fields": { @@ -178641,39 +180325,16 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "returnPartialSuccess": { "type": "bool", "id": 517198390, "options": { "proto3_optional": true } - }, - "views": { - "type": "string", - "id": 112204398, - "options": { - "proto3_optional": true - } - } - }, - "nested": { - "Views": { - "values": { - "UNDEFINED_VIEWS": 0, - "DEFAULT": 115302945, - "WITH_UTILIZATION": 504090633 - } } } }, - "ListTargetGrpcProxiesRequest": { + "ListSnapshotsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -178746,7 +180407,7 @@ } } }, - "ListTargetHttpProxiesRequest": { + "ListSslCertificatesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -178819,7 +180480,7 @@ } } }, - "ListTargetHttpsProxiesRequest": { + "ListSslPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -178892,7 +180553,7 @@ } } }, - "ListTargetInstancesRequest": { + "ListStoragePoolTypesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -178972,7 +180633,87 @@ } } }, - "ListTargetPoolsRequest": { + "ListStoragePoolsRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ListSubnetworksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -178998,6 +180739,11 @@ "oneof": [ "returnPartialSuccess" ] + }, + "_views": { + "oneof": [ + "views" + ] } }, "fields": { @@ -179049,10 +180795,26 @@ "options": { "proto3_optional": true } + }, + "views": { + "type": "string", + "id": 112204398, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Views": { + "values": { + "UNDEFINED_VIEWS": 0, + "DEFAULT": 115302945, + "WITH_UTILIZATION": 504090633 + } } } }, - "ListTargetSslProxiesRequest": { + "ListTargetGrpcProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -179125,7 +180887,7 @@ } } }, - "ListTargetTcpProxiesRequest": { + "ListTargetHttpProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -179198,7 +180960,7 @@ } } }, - "ListTargetVpnGatewaysRequest": { + "ListTargetHttpsProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -179262,13 +181024,6 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "returnPartialSuccess": { "type": "bool", "id": 517198390, @@ -179278,7 +181033,7 @@ } } }, - "ListUrlMapsRequest": { + "ListTargetInstancesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -179348,10 +181103,17 @@ "options": { "proto3_optional": true } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListUsableBackendBucketsRequest": { + "ListTargetPoolsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -179415,6 +181177,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "returnPartialSuccess": { "type": "bool", "id": 517198390, @@ -179424,7 +181193,7 @@ } } }, - "ListUsableBackendServicesRequest": { + "ListTargetSslProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -179497,7 +181266,7 @@ } } }, - "ListUsableRegionBackendBucketsRequest": { + "ListTargetTcpProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -179561,13 +181330,6 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "returnPartialSuccess": { "type": "bool", "id": 517198390, @@ -179577,7 +181339,7 @@ } } }, - "ListUsableRegionBackendServicesRequest": { + "ListTargetVpnGatewaysRequest": { "oneofs": { "_filter": { "oneof": [ @@ -179657,7 +181419,7 @@ } } }, - "ListUsableSubnetworksRequest": { + "ListUrlMapsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -179683,11 +181445,6 @@ "oneof": [ "returnPartialSuccess" ] - }, - "_serviceProject": { - "oneof": [ - "serviceProject" - ] } }, "fields": { @@ -179732,17 +181489,10 @@ "options": { "proto3_optional": true } - }, - "serviceProject": { - "type": "string", - "id": 530592655, - "options": { - "proto3_optional": true - } } } }, - "ListVpnGatewaysRequest": { + "ListUsableBackendBucketsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -179806,9 +181556,75 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + } + } + }, + "ListUsableBackendServicesRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { "type": "string", - "id": 138946292, + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -179822,7 +181638,7 @@ } } }, - "ListVpnTunnelsRequest": { + "ListUsableRegionBackendBucketsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -179902,7 +181718,7 @@ } } }, - "ListWireGroupsRequest": { + "ListUsableRegionBackendServicesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -179931,13 +181747,6 @@ } }, "fields": { - "crossSiteNetwork": { - "type": "string", - "id": 108192469, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "filter": { "type": "string", "id": 336120696, @@ -179973,6 +181782,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "returnPartialSuccess": { "type": "bool", "id": 517198390, @@ -179982,7 +181798,332 @@ } } }, - "ListXpnHostsProjectsRequest": { + "ListUsableSubnetworksRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + }, + "_serviceProject": { + "oneof": [ + "serviceProject" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + }, + "serviceProject": { + "type": "string", + "id": 530592655, + "options": { + "proto3_optional": true + } + } + } + }, + "ListVpnGatewaysRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + } + } + }, + "ListVpnTunnelsRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + } + } + }, + "ListWireGroupsRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "crossSiteNetwork": { + "type": "string", + "id": 108192469, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + } + } + }, + "ListXpnHostsProjectsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -180387,6 +182528,11 @@ "options": { "proto3_optional": true } + }, + "zones": { + "rule": "repeated", + "type": "LocationPolicyZoneConfiguration", + "id": 116085319 } }, "nested": { @@ -180458,6 +182604,24 @@ } } }, + "LocationPolicyZoneConfiguration": { + "oneofs": { + "_zone": { + "oneof": [ + "zone" + ] + } + }, + "fields": { + "zone": { + "type": "string", + "id": 3744684, + "options": { + "proto3_optional": true + } + } + } + }, "MachineImage": { "oneofs": { "_creationTimestamp": { @@ -180505,6 +182669,11 @@ "name" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_satisfiesPzi": { "oneof": [ "satisfiesPzi" @@ -180610,6 +182779,13 @@ "proto3_optional": true } }, + "params": { + "type": "MachineImageParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "satisfiesPzi": { "type": "bool", "id": 480964257, @@ -180759,6 +182935,15 @@ } } }, + "MachineImageParams": { + "fields": { + "resourceManagerTags": { + "keyType": "string", + "type": "string", + "id": 377671164 + } + } + }, "MachineType": { "oneofs": { "_architecture": { @@ -182405,6 +184590,74 @@ } } }, + "NamedSet": { + "oneofs": { + "_description": { + "oneof": [ + "description" + ] + }, + "_fingerprint": { + "oneof": [ + "fingerprint" + ] + }, + "_name": { + "oneof": [ + "name" + ] + }, + "_type": { + "oneof": [ + "type" + ] + } + }, + "fields": { + "description": { + "type": "string", + "id": 422937596, + "options": { + "proto3_optional": true + } + }, + "elements": { + "rule": "repeated", + "type": "Expr", + "id": 528531703 + }, + "fingerprint": { + "type": "string", + "id": 234678500, + "options": { + "proto3_optional": true + } + }, + "name": { + "type": "string", + "id": 3373707, + "options": { + "proto3_optional": true + } + }, + "type": { + "type": "string", + "id": 3575610, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Type": { + "values": { + "UNDEFINED_TYPE": 0, + "NAMED_SET_TYPE_COMMUNITY": 263444871, + "NAMED_SET_TYPE_PREFIX": 228038036 + } + } + } + }, "NatIpInfo": { "oneofs": { "_natName": { @@ -184438,6 +186691,11 @@ }, "NetworkInterface": { "oneofs": { + "_enableVpcScopedDns": { + "oneof": [ + "enableVpcScopedDns" + ] + }, "_fingerprint": { "oneof": [ "fingerprint" @@ -184535,6 +186793,13 @@ "type": "AliasIpRange", "id": 165085631 }, + "enableVpcScopedDns": { + "type": "bool", + "id": 283425868, + "options": { + "proto3_optional": true + } + }, "fingerprint": { "type": "string", "id": 234678500, @@ -186550,7 +188815,9 @@ "FirewallPolicyTypes": { "values": { "UNDEFINED_FIREWALL_POLICY_TYPES": 0, + "RDMA_FALCON_POLICY": 66315047, "RDMA_ROCE_POLICY": 148757145, + "ULL_POLICY": 100494364, "VPC_POLICY": 74319208 } }, @@ -191130,7 +193397,7 @@ } } }, - "PatchNetworkAttachmentRequest": { + "PatchNamedSetRouterRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -191139,16 +193406,9 @@ } }, "fields": { - "networkAttachment": { - "type": "string", - "id": 224644052, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "networkAttachmentResource": { - "type": "NetworkAttachment", - "id": 210974745, + "namedSetResource": { + "type": "NamedSet", + "id": 408608401, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -191175,82 +193435,17 @@ "options": { "proto3_optional": true } - } - } - }, - "PatchNetworkEdgeSecurityServiceRequest": { - "oneofs": { - "_paths": { - "oneof": [ - "paths" - ] - }, - "_requestId": { - "oneof": [ - "requestId" - ] }, - "_updateMask": { - "oneof": [ - "updateMask" - ] - } - }, - "fields": { - "networkEdgeSecurityService": { + "router": { "type": "string", - "id": 157011879, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "networkEdgeSecurityServiceResource": { - "type": "NetworkEdgeSecurityService", - "id": 477548966, + "id": 148608841, "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "paths": { - "type": "string", - "id": 106438894, - "options": { - "proto3_optional": true - } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "region" - } - }, - "requestId": { - "type": "string", - "id": 37109963, - "options": { - "proto3_optional": true - } - }, - "updateMask": { - "type": "string", - "id": 500079778, - "options": { - "proto3_optional": true - } } } }, - "PatchNetworkFirewallPolicyRequest": { + "PatchNetworkAttachmentRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -191259,16 +193454,16 @@ } }, "fields": { - "firewallPolicy": { + "networkAttachment": { "type": "string", - "id": 498173265, + "id": 224644052, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "firewallPolicyResource": { - "type": "FirewallPolicy", - "id": 495049532, + "networkAttachmentResource": { + "type": "NetworkAttachment", + "id": 210974745, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -191281,44 +193476,12 @@ "(google.cloud.operation_request_field)": "project" } }, - "requestId": { - "type": "string", - "id": 37109963, - "options": { - "proto3_optional": true - } - } - } - }, - "PatchNetworkRequest": { - "oneofs": { - "_requestId": { - "oneof": [ - "requestId" - ] - } - }, - "fields": { - "network": { - "type": "string", - "id": 232872494, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "networkResource": { - "type": "Network", - "id": 122105599, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "project": { + "region": { "type": "string", - "id": 227560217, + "id": 138946292, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" + "(google.cloud.operation_request_field)": "region" } }, "requestId": { @@ -191330,56 +193493,13 @@ } } }, - "PatchNodeGroupRequest": { + "PatchNetworkEdgeSecurityServiceRequest": { "oneofs": { - "_requestId": { + "_paths": { "oneof": [ - "requestId" + "paths" ] - } - }, - "fields": { - "nodeGroup": { - "type": "string", - "id": 469958146, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "nodeGroupResource": { - "type": "NodeGroup", - "id": 505321899, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" - } - }, - "requestId": { - "type": "string", - "id": 37109963, - "options": { - "proto3_optional": true - } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "zone" - } - } - } - }, - "PatchOrganizationSecurityPolicyRequest": { - "oneofs": { "_requestId": { "oneof": [ "requestId" @@ -191392,58 +193512,253 @@ } }, "fields": { - "requestId": { - "type": "string", - "id": 37109963, - "options": { - "proto3_optional": true - } - }, - "securityPolicy": { + "networkEdgeSecurityService": { "type": "string", - "id": 171082513, + "id": 157011879, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "securityPolicyResource": { - "type": "SecurityPolicy", - "id": 216159612, + "networkEdgeSecurityServiceResource": { + "type": "NetworkEdgeSecurityService", + "id": 477548966, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "updateMask": { + "paths": { "type": "string", - "id": 500079778, + "id": 106438894, "options": { "proto3_optional": true } - } - } - }, - "PatchPacketMirroringRequest": { - "oneofs": { - "_requestId": { - "oneof": [ - "requestId" - ] - } - }, - "fields": { - "packetMirroring": { - "type": "string", - "id": 22305996, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "packetMirroringResource": { - "type": "PacketMirroring", - "id": 493501985, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "updateMask": { + "type": "string", + "id": 500079778, + "options": { + "proto3_optional": true + } + } + } + }, + "PatchNetworkFirewallPolicyRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "firewallPolicy": { + "type": "string", + "id": 498173265, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "firewallPolicyResource": { + "type": "FirewallPolicy", + "id": 495049532, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + } + } + }, + "PatchNetworkRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "network": { + "type": "string", + "id": 232872494, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "networkResource": { + "type": "Network", + "id": 122105599, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + } + } + }, + "PatchNodeGroupRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "nodeGroup": { + "type": "string", + "id": 469958146, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "nodeGroupResource": { + "type": "NodeGroup", + "id": 505321899, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, + "PatchOrganizationSecurityPolicyRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + }, + "_updateMask": { + "oneof": [ + "updateMask" + ] + } + }, + "fields": { + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "securityPolicy": { + "type": "string", + "id": 171082513, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "securityPolicyResource": { + "type": "SecurityPolicy", + "id": 216159612, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "string", + "id": 500079778, + "options": { + "proto3_optional": true + } + } + } + }, + "PatchPacketMirroringRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "packetMirroring": { + "type": "string", + "id": 22305996, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "packetMirroringResource": { + "type": "PacketMirroring", + "id": 493501985, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "project": { "type": "string", @@ -199188,6 +201503,11 @@ "description" ] }, + "_earlyAccessMaintenance": { + "oneof": [ + "earlyAccessMaintenance" + ] + }, "_enableEmergentMaintenance": { "oneof": [ "enableEmergentMaintenance" @@ -199208,6 +201528,11 @@ "name" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_protectionTier": { "oneof": [ "protectionTier" @@ -199326,6 +201651,13 @@ "proto3_optional": true } }, + "earlyAccessMaintenance": { + "type": "string", + "id": 343918356, + "options": { + "proto3_optional": true + } + }, "enableEmergentMaintenance": { "type": "bool", "id": 353759497, @@ -199359,6 +201691,13 @@ "proto3_optional": true } }, + "params": { + "type": "ReservationParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "protectionTier": { "type": "string", "id": 503959432, @@ -199458,6 +201797,14 @@ "FLEXIBLE": 379880395 } }, + "EarlyAccessMaintenance": { + "values": { + "UNDEFINED_EARLY_ACCESS_MAINTENANCE": 0, + "NO_EARLY_ACCESS": 220751774, + "WAVE1": 82367576, + "WAVE2": 82367577 + } + }, "ProtectionTier": { "values": { "UNDEFINED_PROTECTION_TIER": 0, @@ -200103,7 +202450,337 @@ } } }, - "ReservationList": { + "ReservationList": { + "oneofs": { + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_nextPageToken": { + "oneof": [ + "nextPageToken" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "id": { + "type": "string", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "items": { + "rule": "repeated", + "type": "Reservation", + "id": 100526016 + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "nextPageToken": { + "type": "string", + "id": 79797525, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, + "ReservationParams": { + "fields": { + "resourceManagerTags": { + "keyType": "string", + "type": "string", + "id": 377671164 + } + } + }, + "ReservationSlot": { + "oneofs": { + "_creationTimestamp": { + "oneof": [ + "creationTimestamp" + ] + }, + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_name": { + "oneof": [ + "name" + ] + }, + "_physicalTopology": { + "oneof": [ + "physicalTopology" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_selfLinkWithId": { + "oneof": [ + "selfLinkWithId" + ] + }, + "_shareSettings": { + "oneof": [ + "shareSettings" + ] + }, + "_state": { + "oneof": [ + "state" + ] + }, + "_status": { + "oneof": [ + "status" + ] + }, + "_zone": { + "oneof": [ + "zone" + ] + } + }, + "fields": { + "creationTimestamp": { + "type": "string", + "id": 30525366, + "options": { + "proto3_optional": true + } + }, + "id": { + "type": "uint64", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "name": { + "type": "string", + "id": 3373707, + "options": { + "proto3_optional": true + } + }, + "physicalTopology": { + "type": "ReservationSlotPhysicalTopology", + "id": 279778519, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "selfLinkWithId": { + "type": "string", + "id": 44520962, + "options": { + "proto3_optional": true + } + }, + "shareSettings": { + "type": "ShareSettings", + "id": 266668163, + "options": { + "proto3_optional": true + } + }, + "state": { + "type": "string", + "id": 109757585, + "options": { + "proto3_optional": true + } + }, + "status": { + "type": "ReservationSlotStatus", + "id": 181260274, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "State": { + "values": { + "UNDEFINED_STATE": 0, + "ACTIVE": 314733318, + "CREATING": 455564985, + "DELETING": 528602024, + "STATE_UNSPECIFIED": 470755401, + "UNAVAILABLE": 413756464 + } + } + } + }, + "ReservationSlotPhysicalTopology": { + "oneofs": { + "_block": { + "oneof": [ + "block" + ] + }, + "_cluster": { + "oneof": [ + "cluster" + ] + }, + "_host": { + "oneof": [ + "host" + ] + }, + "_subBlock": { + "oneof": [ + "subBlock" + ] + } + }, + "fields": { + "block": { + "type": "string", + "id": 93832333, + "options": { + "proto3_optional": true + } + }, + "cluster": { + "type": "string", + "id": 335221242, + "options": { + "proto3_optional": true + } + }, + "host": { + "type": "string", + "id": 3208616, + "options": { + "proto3_optional": true + } + }, + "subBlock": { + "type": "string", + "id": 478033358, + "options": { + "proto3_optional": true + } + } + } + }, + "ReservationSlotStatus": { + "oneofs": { + "_physicalTopology": { + "oneof": [ + "physicalTopology" + ] + } + }, + "fields": { + "physicalTopology": { + "type": "ReservationSlotPhysicalTopology", + "id": 279778519, + "options": { + "proto3_optional": true + } + }, + "rdmaIpAddresses": { + "rule": "repeated", + "type": "string", + "id": 167842531 + }, + "runningInstances": { + "rule": "repeated", + "type": "string", + "id": 536292350 + } + } + }, + "ReservationSlotsGetResponse": { + "oneofs": { + "_resource": { + "oneof": [ + "resource" + ] + } + }, + "fields": { + "resource": { + "type": "ReservationSlot", + "id": 195806222, + "options": { + "proto3_optional": true + } + } + } + }, + "ReservationSlotsListResponse": { "oneofs": { "_id": { "oneof": [ @@ -200141,7 +202818,7 @@ }, "items": { "rule": "repeated", - "type": "Reservation", + "type": "ReservationSlot", "id": 100526016 }, "kind": { @@ -202374,6 +205051,11 @@ "enableOsloginMetadataValue" ] }, + "_gceContainerDeclarationMetadataValue": { + "oneof": [ + "gceContainerDeclarationMetadataValue" + ] + }, "_serialPortEnableMetadataValue": { "oneof": [ "serialPortEnableMetadataValue" @@ -202426,6 +205108,13 @@ "proto3_optional": true } }, + "gceContainerDeclarationMetadataValue": { + "type": "bool", + "id": 219617210, + "options": { + "proto3_optional": true + } + }, "serialPortEnableMetadataValue": { "type": "bool", "id": 430536330, @@ -206101,6 +208790,36 @@ } } }, + "RoutersGetNamedSetResponse": { + "oneofs": { + "_etag": { + "oneof": [ + "etag" + ] + }, + "_resource": { + "oneof": [ + "resource" + ] + } + }, + "fields": { + "etag": { + "type": "string", + "id": 3123477, + "options": { + "proto3_optional": true + } + }, + "resource": { + "type": "NamedSet", + "id": 195806222, + "options": { + "proto3_optional": true + } + } + } + }, "RoutersGetRoutePolicyResponse": { "oneofs": { "_resource": { @@ -206207,6 +208926,94 @@ } } }, + "RoutersListNamedSets": { + "oneofs": { + "_etag": { + "oneof": [ + "etag" + ] + }, + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_nextPageToken": { + "oneof": [ + "nextPageToken" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "etag": { + "type": "string", + "id": 3123477, + "options": { + "proto3_optional": true + } + }, + "id": { + "type": "string", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "nextPageToken": { + "type": "string", + "id": 79797525, + "options": { + "proto3_optional": true + } + }, + "result": { + "rule": "repeated", + "type": "NamedSet", + "id": 139315229 + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "unreachables": { + "rule": "repeated", + "type": "string", + "id": 243372063 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, "RoutersListRoutePolicies": { "oneofs": { "_etag": { @@ -206853,6 +209660,11 @@ "preemptible" ] }, + "_preemptionNoticeDuration": { + "oneof": [ + "preemptionNoticeDuration" + ] + }, "_provisioningModel": { "oneof": [ "provisioningModel" @@ -206973,6 +209785,13 @@ "proto3_optional": true } }, + "preemptionNoticeDuration": { + "type": "Duration", + "id": 486176437, + "options": { + "proto3_optional": true + } + }, "provisioningModel": { "type": "string", "id": 494423, @@ -210528,7 +213347,253 @@ } } }, - "SetIamPolicyBackendServiceRequest": { + "SetIamPolicyBackendServiceRequest": { + "fields": { + "globalSetPolicyRequestResource": { + "type": "GlobalSetPolicyRequest", + "id": 337048498, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SetIamPolicyDiskRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zoneSetPolicyRequestResource": { + "type": "ZoneSetPolicyRequest", + "id": 382082107, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SetIamPolicyFirewallPolicyRequest": { + "fields": { + "globalOrganizationSetPolicyRequestResource": { + "type": "GlobalOrganizationSetPolicyRequest", + "id": 177408606, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SetIamPolicyImageRequest": { + "fields": { + "globalSetPolicyRequestResource": { + "type": "GlobalSetPolicyRequest", + "id": 337048498, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SetIamPolicyInstanceRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zoneSetPolicyRequestResource": { + "type": "ZoneSetPolicyRequest", + "id": 382082107, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SetIamPolicyInstanceTemplateRequest": { + "fields": { + "globalSetPolicyRequestResource": { + "type": "GlobalSetPolicyRequest", + "id": 337048498, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SetIamPolicyInstantSnapshotGroupRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zoneSetPolicyRequestResource": { + "type": "ZoneSetPolicyRequest", + "id": 382082107, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SetIamPolicyInstantSnapshotRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zoneSetPolicyRequestResource": { + "type": "ZoneSetPolicyRequest", + "id": 382082107, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SetIamPolicyInterconnectAttachmentGroupRequest": { + "fields": { + "globalSetPolicyRequestResource": { + "type": "GlobalSetPolicyRequest", + "id": 337048498, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SetIamPolicyInterconnectGroupRequest": { "fields": { "globalSetPolicyRequestResource": { "type": "GlobalSetPolicyRequest", @@ -210553,57 +213618,7 @@ } } }, - "SetIamPolicyDiskRequest": { - "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "resource": { - "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "zoneSetPolicyRequestResource": { - "type": "ZoneSetPolicyRequest", - "id": 382082107, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "SetIamPolicyFirewallPolicyRequest": { - "fields": { - "globalOrganizationSetPolicyRequestResource": { - "type": "GlobalOrganizationSetPolicyRequest", - "id": 177408606, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "resource": { - "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "SetIamPolicyImageRequest": { + "SetIamPolicyLicenseRequest": { "fields": { "globalSetPolicyRequestResource": { "type": "GlobalSetPolicyRequest", @@ -210628,39 +213643,7 @@ } } }, - "SetIamPolicyInstanceRequest": { - "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "resource": { - "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "zoneSetPolicyRequestResource": { - "type": "ZoneSetPolicyRequest", - "id": 382082107, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "SetIamPolicyInstanceTemplateRequest": { + "SetIamPolicyMachineImageRequest": { "fields": { "globalSetPolicyRequestResource": { "type": "GlobalSetPolicyRequest", @@ -210685,7 +213668,7 @@ } } }, - "SetIamPolicyInstantSnapshotRequest": { + "SetIamPolicyNetworkAttachmentRequest": { "fields": { "project": { "type": "string", @@ -210694,41 +213677,16 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "resource": { - "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "zone": { + "region": { "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "zoneSetPolicyRequestResource": { - "type": "ZoneSetPolicyRequest", - "id": 382082107, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "SetIamPolicyInterconnectAttachmentGroupRequest": { - "fields": { - "globalSetPolicyRequestResource": { - "type": "GlobalSetPolicyRequest", - "id": 337048498, + "id": 138946292, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "project": { - "type": "string", - "id": 227560217, + "regionSetPolicyRequestResource": { + "type": "RegionSetPolicyRequest", + "id": 276489091, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -210742,7 +213700,7 @@ } } }, - "SetIamPolicyInterconnectGroupRequest": { + "SetIamPolicyNetworkFirewallPolicyRequest": { "fields": { "globalSetPolicyRequestResource": { "type": "GlobalSetPolicyRequest", @@ -210767,15 +213725,8 @@ } } }, - "SetIamPolicyLicenseRequest": { + "SetIamPolicyNodeGroupRequest": { "fields": { - "globalSetPolicyRequestResource": { - "type": "GlobalSetPolicyRequest", - "id": 337048498, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "project": { "type": "string", "id": 227560217, @@ -210789,35 +213740,24 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } - } - } - }, - "SetIamPolicyMachineImageRequest": { - "fields": { - "globalSetPolicyRequestResource": { - "type": "GlobalSetPolicyRequest", - "id": 337048498, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } }, - "project": { + "zone": { "type": "string", - "id": 227560217, + "id": 3744684, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "resource": { - "type": "string", - "id": 195806222, + "zoneSetPolicyRequestResource": { + "type": "ZoneSetPolicyRequest", + "id": 382082107, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "SetIamPolicyNetworkAttachmentRequest": { + "SetIamPolicyNodeTemplateRequest": { "fields": { "project": { "type": "string", @@ -210849,15 +213789,8 @@ } } }, - "SetIamPolicyNetworkFirewallPolicyRequest": { + "SetIamPolicyRegionBackendBucketRequest": { "fields": { - "globalSetPolicyRequestResource": { - "type": "GlobalSetPolicyRequest", - "id": 337048498, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "project": { "type": "string", "id": 227560217, @@ -210865,20 +213798,16 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "resource": { + "region": { "type": "string", - "id": 195806222, + "id": 138946292, "options": { "(google.api.field_behavior)": "REQUIRED" } - } - } - }, - "SetIamPolicyNodeGroupRequest": { - "fields": { - "project": { - "type": "string", - "id": 227560217, + }, + "regionSetPolicyRequestResource": { + "type": "RegionSetPolicyRequest", + "id": 276489091, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -210889,24 +213818,10 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "zoneSetPolicyRequestResource": { - "type": "ZoneSetPolicyRequest", - "id": 382082107, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "SetIamPolicyNodeTemplateRequest": { + "SetIamPolicyRegionBackendServiceRequest": { "fields": { "project": { "type": "string", @@ -210938,7 +213853,7 @@ } } }, - "SetIamPolicyRegionBackendBucketRequest": { + "SetIamPolicyRegionDiskRequest": { "fields": { "project": { "type": "string", @@ -210970,7 +213885,7 @@ } } }, - "SetIamPolicyRegionBackendServiceRequest": { + "SetIamPolicyRegionInstantSnapshotGroupRequest": { "fields": { "project": { "type": "string", @@ -211002,7 +213917,7 @@ } } }, - "SetIamPolicyRegionDiskRequest": { + "SetIamPolicyRegionInstantSnapshotRequest": { "fields": { "project": { "type": "string", @@ -211034,7 +213949,7 @@ } } }, - "SetIamPolicyRegionInstantSnapshotRequest": { + "SetIamPolicyRegionNetworkFirewallPolicyRequest": { "fields": { "project": { "type": "string", @@ -211066,7 +213981,7 @@ } } }, - "SetIamPolicyRegionNetworkFirewallPolicyRequest": { + "SetIamPolicyRegionSnapshotRequest": { "fields": { "project": { "type": "string", @@ -211098,8 +214013,15 @@ } } }, - "SetIamPolicyRegionSnapshotRequest": { + "SetIamPolicyReservationBlockRequest": { "fields": { + "parentResource": { + "type": "string", + "id": 18091011, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "project": { "type": "string", "id": 227560217, @@ -211107,38 +214029,31 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { + "resource": { "type": "string", - "id": 138946292, + "id": 195806222, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "regionSetPolicyRequestResource": { - "type": "RegionSetPolicyRequest", - "id": 276489091, + "zone": { + "type": "string", + "id": 3744684, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "resource": { - "type": "string", - "id": 195806222, + "zoneSetNestedPolicyRequestResource": { + "type": "ZoneSetNestedPolicyRequest", + "id": 266352851, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "SetIamPolicyReservationBlockRequest": { + "SetIamPolicyReservationRequest": { "fields": { - "parentResource": { - "type": "string", - "id": 18091011, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "project": { "type": "string", "id": 227560217, @@ -211160,17 +214075,24 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "zoneSetNestedPolicyRequestResource": { - "type": "ZoneSetNestedPolicyRequest", - "id": 266352851, + "zoneSetPolicyRequestResource": { + "type": "ZoneSetPolicyRequest", + "id": 382082107, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "SetIamPolicyReservationRequest": { + "SetIamPolicyReservationSubBlockRequest": { "fields": { + "parentResource": { + "type": "string", + "id": 18091011, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "project": { "type": "string", "id": 227560217, @@ -211192,24 +214114,17 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "zoneSetPolicyRequestResource": { - "type": "ZoneSetPolicyRequest", - "id": 382082107, + "zoneSetNestedPolicyRequestResource": { + "type": "ZoneSetNestedPolicyRequest", + "id": 266352851, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "SetIamPolicyReservationSubBlockRequest": { + "SetIamPolicyResourcePolicyRequest": { "fields": { - "parentResource": { - "type": "string", - "id": 18091011, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "project": { "type": "string", "id": 227560217, @@ -211217,30 +214132,30 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "resource": { + "region": { "type": "string", - "id": 195806222, + "id": 138946292, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "zone": { - "type": "string", - "id": 3744684, + "regionSetPolicyRequestResource": { + "type": "RegionSetPolicyRequest", + "id": 276489091, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "zoneSetNestedPolicyRequestResource": { - "type": "ZoneSetNestedPolicyRequest", - "id": 266352851, + "resource": { + "type": "string", + "id": 195806222, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "SetIamPolicyResourcePolicyRequest": { + "SetIamPolicyServiceAttachmentRequest": { "fields": { "project": { "type": "string", @@ -211272,25 +214187,18 @@ } } }, - "SetIamPolicyServiceAttachmentRequest": { + "SetIamPolicySnapshotGroupRequest": { "fields": { - "project": { - "type": "string", - "id": 227560217, + "globalSetPolicyRequestResource": { + "type": "GlobalSetPolicyRequest", + "id": 337048498, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "region": { + "project": { "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "regionSetPolicyRequestResource": { - "type": "RegionSetPolicyRequest", - "id": 276489091, + "id": 227560217, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -214562,6 +217470,16 @@ "snapshotEncryptionKey" ] }, + "_snapshotGroupId": { + "oneof": [ + "snapshotGroupId" + ] + }, + "_snapshotGroupName": { + "oneof": [ + "snapshotGroupName" + ] + }, "_snapshotType": { "oneof": [ "snapshotType" @@ -214796,6 +217714,20 @@ "proto3_optional": true } }, + "snapshotGroupId": { + "type": "string", + "id": 255004406, + "options": { + "proto3_optional": true + } + }, + "snapshotGroupName": { + "type": "string", + "id": 246247846, + "options": { + "proto3_optional": true + } + }, "snapshotType": { "type": "string", "id": 124349653, @@ -215021,6 +217953,253 @@ } } }, + "SnapshotGroup": { + "oneofs": { + "_creationTimestamp": { + "oneof": [ + "creationTimestamp" + ] + }, + "_description": { + "oneof": [ + "description" + ] + }, + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_name": { + "oneof": [ + "name" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_selfLinkWithId": { + "oneof": [ + "selfLinkWithId" + ] + }, + "_sourceInfo": { + "oneof": [ + "sourceInfo" + ] + }, + "_sourceInstantSnapshotGroup": { + "oneof": [ + "sourceInstantSnapshotGroup" + ] + }, + "_sourceInstantSnapshotGroupInfo": { + "oneof": [ + "sourceInstantSnapshotGroupInfo" + ] + }, + "_status": { + "oneof": [ + "status" + ] + } + }, + "fields": { + "creationTimestamp": { + "type": "string", + "id": 30525366, + "options": { + "proto3_optional": true + } + }, + "description": { + "type": "string", + "id": 422937596, + "options": { + "proto3_optional": true + } + }, + "id": { + "type": "uint64", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "name": { + "type": "string", + "id": 3373707, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "selfLinkWithId": { + "type": "string", + "id": 44520962, + "options": { + "proto3_optional": true + } + }, + "sourceInfo": { + "type": "SnapshotGroupSourceInfo", + "id": 451907154, + "options": { + "proto3_optional": true + } + }, + "sourceInstantSnapshotGroup": { + "type": "string", + "id": 525991686, + "options": { + "proto3_optional": true + } + }, + "sourceInstantSnapshotGroupInfo": { + "type": "SnapshotGroupSourceInstantSnapshotGroupInfo", + "id": 62296647, + "options": { + "proto3_optional": true + } + }, + "status": { + "type": "string", + "id": 181260274, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Status": { + "values": { + "UNDEFINED_STATUS": 0, + "CREATING": 455564985, + "DELETING": 528602024, + "FAILED": 455706685, + "INVALID": 530283991, + "READY": 77848963, + "UNKNOWN": 433141802, + "UPLOADING": 267603489 + } + } + } + }, + "SnapshotGroupParameters": { + "oneofs": { + "_sourceSnapshotGroup": { + "oneof": [ + "sourceSnapshotGroup" + ] + }, + "_type": { + "oneof": [ + "type" + ] + } + }, + "fields": { + "replicaZones": { + "rule": "repeated", + "type": "string", + "id": 48438272 + }, + "sourceSnapshotGroup": { + "type": "string", + "id": 225130728, + "options": { + "proto3_optional": true + } + }, + "type": { + "type": "string", + "id": 3575610, + "options": { + "proto3_optional": true + } + } + } + }, + "SnapshotGroupSourceInfo": { + "oneofs": { + "_consistencyGroup": { + "oneof": [ + "consistencyGroup" + ] + }, + "_consistencyGroupId": { + "oneof": [ + "consistencyGroupId" + ] + } + }, + "fields": { + "consistencyGroup": { + "type": "string", + "id": 508183960, + "options": { + "proto3_optional": true + } + }, + "consistencyGroupId": { + "type": "string", + "id": 85599522, + "options": { + "proto3_optional": true + } + } + } + }, + "SnapshotGroupSourceInstantSnapshotGroupInfo": { + "oneofs": { + "_instantSnapshotGroup": { + "oneof": [ + "instantSnapshotGroup" + ] + }, + "_instantSnapshotGroupId": { + "oneof": [ + "instantSnapshotGroupId" + ] + } + }, + "fields": { + "instantSnapshotGroup": { + "type": "string", + "id": 223180386, + "options": { + "proto3_optional": true + } + }, + "instantSnapshotGroupId": { + "type": "string", + "id": 157599768, + "options": { + "proto3_optional": true + } + } + } + }, "SnapshotList": { "oneofs": { "_id": { @@ -221985,6 +225164,11 @@ "network" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_region": { "oneof": [ "region" @@ -222061,6 +225245,13 @@ "proto3_optional": true } }, + "params": { + "type": "TargetVpnGatewayParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "region": { "type": "string", "id": 138946292, @@ -222247,6 +225438,15 @@ } } }, + "TargetVpnGatewayParams": { + "fields": { + "resourceManagerTags": { + "keyType": "string", + "type": "string", + "id": 377671164 + } + } + }, "TargetVpnGatewaysScopedList": { "oneofs": { "_warning": { @@ -222523,207 +225723,271 @@ } } }, - "TestIamPermissionsExternalVpnGatewayRequest": { - "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "resource": { - "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "testPermissionsRequestResource": { - "type": "TestPermissionsRequest", - "id": 439214758, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "TestIamPermissionsFirewallPolicyRequest": { - "fields": { - "resource": { - "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "testPermissionsRequestResource": { - "type": "TestPermissionsRequest", - "id": 439214758, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "TestIamPermissionsFirewallRequest": { - "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "resource": { - "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "testPermissionsRequestResource": { - "type": "TestPermissionsRequest", - "id": 439214758, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "TestIamPermissionsForwardingRuleRequest": { - "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "resource": { - "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "testPermissionsRequestResource": { - "type": "TestPermissionsRequest", - "id": 439214758, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "TestIamPermissionsGlobalAddressRequest": { - "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "resource": { - "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "testPermissionsRequestResource": { - "type": "TestPermissionsRequest", - "id": 439214758, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "TestIamPermissionsGlobalForwardingRuleRequest": { - "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "resource": { - "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "testPermissionsRequestResource": { - "type": "TestPermissionsRequest", - "id": 439214758, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "TestIamPermissionsHealthCheckRequest": { - "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "resource": { - "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "testPermissionsRequestResource": { - "type": "TestPermissionsRequest", - "id": 439214758, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "TestIamPermissionsImageRequest": { - "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "resource": { - "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "testPermissionsRequestResource": { - "type": "TestPermissionsRequest", - "id": 439214758, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "TestIamPermissionsInstanceGroupManagerRequest": { + "TestIamPermissionsExternalVpnGatewayRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsFirewallPolicyRequest": { + "fields": { + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsFirewallRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsForwardingRuleRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsGlobalAddressRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsGlobalForwardingRuleRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsHealthCheckRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsImageRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsInstanceGroupManagerRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsInstanceGroupRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsInstanceRequest": { "fields": { "project": { "type": "string", @@ -222755,7 +226019,7 @@ } } }, - "TestIamPermissionsInstanceGroupRequest": { + "TestIamPermissionsInstanceTemplateRequest": { "fields": { "project": { "type": "string", @@ -222777,17 +226041,10 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "TestIamPermissionsInstanceRequest": { + "TestIamPermissionsInstantSnapshotGroupRequest": { "fields": { "project": { "type": "string", @@ -222819,31 +226076,6 @@ } } }, - "TestIamPermissionsInstanceTemplateRequest": { - "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "resource": { - "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "testPermissionsRequestResource": { - "type": "TestPermissionsRequest", - "id": 439214758, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, "TestIamPermissionsInstantSnapshotRequest": { "fields": { "project": { @@ -223556,7 +226788,39 @@ } } }, - "TestIamPermissionsRegionHealthSourceRequest": { + "TestIamPermissionsRegionHealthSourceRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsRegionInstanceGroupManagerRequest": { "fields": { "project": { "type": "string", @@ -223588,7 +226852,7 @@ } } }, - "TestIamPermissionsRegionInstanceGroupManagerRequest": { + "TestIamPermissionsRegionInstanceGroupRequest": { "fields": { "project": { "type": "string", @@ -223620,7 +226884,7 @@ } } }, - "TestIamPermissionsRegionInstanceGroupRequest": { + "TestIamPermissionsRegionInstantSnapshotGroupRequest": { "fields": { "project": { "type": "string", @@ -224228,6 +227492,31 @@ } } }, + "TestIamPermissionsSnapshotGroupRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "TestIamPermissionsSnapshotRequest": { "fields": { "project": { @@ -225533,6 +228822,54 @@ } } }, + "UpdateNamedSetRouterRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "namedSetResource": { + "type": "NamedSet", + "id": 408608401, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "router": { + "type": "string", + "id": 148608841, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "UpdateNetworkInterfaceInstanceRequest": { "oneofs": { "_requestId": { @@ -226225,6 +229562,61 @@ } } }, + "UpdateReservationSlotRequest": { + "oneofs": { + "_updateMask": { + "oneof": [ + "updateMask" + ] + } + }, + "fields": { + "parentName": { + "type": "string", + "id": 478151936, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "reservationSlot": { + "type": "string", + "id": 277470865, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "reservationSlotResource": { + "type": "ReservationSlot", + "id": 408545788, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "string", + "id": 500079778, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, "UpdateReservationsRegionCommitmentRequest": { "oneofs": { "_requestId": { @@ -228261,6 +231653,11 @@ "network" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_region": { "oneof": [ "region" @@ -228339,6 +231736,13 @@ "proto3_optional": true } }, + "params": { + "type": "VpnGatewayParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "region": { "type": "string", "id": 138946292, @@ -228531,6 +231935,15 @@ } } }, + "VpnGatewayParams": { + "fields": { + "resourceManagerTags": { + "keyType": "string", + "type": "string", + "id": 377671164 + } + } + }, "VpnGatewayStatus": { "fields": { "vpnConnections": { @@ -228821,6 +232234,11 @@ "name" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_peerExternalGateway": { "oneof": [ "peerExternalGateway" @@ -228968,6 +232386,13 @@ "proto3_optional": true } }, + "params": { + "type": "VpnTunnelParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "peerExternalGateway": { "type": "string", "id": 384956173, @@ -229155,11 +232580,112 @@ "proto3_optional": true } }, - "unreachables": { - "rule": "repeated", - "type": "string", - "id": 243372063 - }, + "unreachables": { + "rule": "repeated", + "type": "string", + "id": 243372063 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, + "VpnTunnelCipherSuite": { + "oneofs": { + "_phase1": { + "oneof": [ + "phase1" + ] + }, + "_phase2": { + "oneof": [ + "phase2" + ] + } + }, + "fields": { + "phase1": { + "type": "VpnTunnelPhase1Algorithms", + "id": 84289046, + "options": { + "proto3_optional": true + } + }, + "phase2": { + "type": "VpnTunnelPhase2Algorithms", + "id": 84289047, + "options": { + "proto3_optional": true + } + } + } + }, + "VpnTunnelList": { + "oneofs": { + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_nextPageToken": { + "oneof": [ + "nextPageToken" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "id": { + "type": "string", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "items": { + "rule": "repeated", + "type": "VpnTunnel", + "id": 100526016 + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "nextPageToken": { + "type": "string", + "id": 79797525, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, "warning": { "type": "Warning", "id": 50704284, @@ -229169,104 +232695,12 @@ } } }, - "VpnTunnelCipherSuite": { - "oneofs": { - "_phase1": { - "oneof": [ - "phase1" - ] - }, - "_phase2": { - "oneof": [ - "phase2" - ] - } - }, - "fields": { - "phase1": { - "type": "VpnTunnelPhase1Algorithms", - "id": 84289046, - "options": { - "proto3_optional": true - } - }, - "phase2": { - "type": "VpnTunnelPhase2Algorithms", - "id": 84289047, - "options": { - "proto3_optional": true - } - } - } - }, - "VpnTunnelList": { - "oneofs": { - "_id": { - "oneof": [ - "id" - ] - }, - "_kind": { - "oneof": [ - "kind" - ] - }, - "_nextPageToken": { - "oneof": [ - "nextPageToken" - ] - }, - "_selfLink": { - "oneof": [ - "selfLink" - ] - }, - "_warning": { - "oneof": [ - "warning" - ] - } - }, + "VpnTunnelParams": { "fields": { - "id": { - "type": "string", - "id": 3355, - "options": { - "proto3_optional": true - } - }, - "items": { - "rule": "repeated", - "type": "VpnTunnel", - "id": 100526016 - }, - "kind": { - "type": "string", - "id": 3292052, - "options": { - "proto3_optional": true - } - }, - "nextPageToken": { - "type": "string", - "id": 79797525, - "options": { - "proto3_optional": true - } - }, - "selfLink": { + "resourceManagerTags": { + "keyType": "string", "type": "string", - "id": 456214797, - "options": { - "proto3_optional": true - } - }, - "warning": { - "type": "Warning", - "id": 50704284, - "options": { - "proto3_optional": true - } + "id": 377671164 } } }, @@ -230190,6 +233624,36 @@ } } }, + "WorkloadIdentityConfig": { + "oneofs": { + "_identity": { + "oneof": [ + "identity" + ] + }, + "_identityCertificateEnabled": { + "oneof": [ + "identityCertificateEnabled" + ] + } + }, + "fields": { + "identity": { + "type": "string", + "id": 401109182, + "options": { + "proto3_optional": true + } + }, + "identityCertificateEnabled": { + "type": "bool", + "id": 342892440, + "options": { + "proto3_optional": true + } + } + } + }, "XpnHostList": { "oneofs": { "_id": { @@ -235022,6 +238486,30 @@ } ] }, + "ConfigureAcceleratorTopologies": { + "requestType": "ConfigureAcceleratorTopologiesInstanceGroupManagerRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "instance_group_managers_configure_accelerator_topologies_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/configureAcceleratorTopologies", + "(google.api.method_signature)": "project,zone,instance_group_manager,instance_group_managers_configure_accelerator_topologies_request_resource", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "instance_group_managers_configure_accelerator_topologies_request_resource", + "post": "/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/configureAcceleratorTopologies" + } + }, + { + "(google.api.method_signature)": "project,zone,instance_group_manager,instance_group_managers_configure_accelerator_topologies_request_resource" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + }, "CreateInstances": { "requestType": "CreateInstancesInstanceGroupManagerRequest", "responseType": "Operation", @@ -237282,6 +240770,154 @@ } } }, + "InstantSnapshotGroups": { + "options": { + "(google.api.default_host)": "compute.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "Delete": { + "requestType": "DeleteInstantSnapshotGroupRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups/{instant_snapshot_group}", + "(google.api.method_signature)": "project,zone,instant_snapshot_group", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups/{instant_snapshot_group}" + } + }, + { + "(google.api.method_signature)": "project,zone,instant_snapshot_group" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + }, + "Get": { + "requestType": "GetInstantSnapshotGroupRequest", + "responseType": "InstantSnapshotGroup", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups/{instant_snapshot_group}", + "(google.api.method_signature)": "project,zone,instant_snapshot_group" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups/{instant_snapshot_group}" + } + }, + { + "(google.api.method_signature)": "project,zone,instant_snapshot_group" + } + ] + }, + "GetIamPolicy": { + "requestType": "GetIamPolicyInstantSnapshotGroupRequest", + "responseType": "Policy", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/getIamPolicy", + "(google.api.method_signature)": "project,zone,resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/getIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,zone,resource" + } + ] + }, + "Insert": { + "requestType": "InsertInstantSnapshotGroupRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "instant_snapshot_group_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups", + "(google.api.method_signature)": "project,zone,instant_snapshot_group_resource", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "instant_snapshot_group_resource", + "post": "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups" + } + }, + { + "(google.api.method_signature)": "project,zone,instant_snapshot_group_resource" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + }, + "List": { + "requestType": "ListInstantSnapshotGroupsRequest", + "responseType": "ListInstantSnapshotGroups", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups", + "(google.api.method_signature)": "project,zone" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups" + } + }, + { + "(google.api.method_signature)": "project,zone" + } + ] + }, + "SetIamPolicy": { + "requestType": "SetIamPolicyInstantSnapshotGroupRequest", + "responseType": "Policy", + "options": { + "(google.api.http).body": "zone_set_policy_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/setIamPolicy", + "(google.api.method_signature)": "project,zone,resource,zone_set_policy_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "zone_set_policy_request_resource", + "post": "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/setIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,zone,resource,zone_set_policy_request_resource" + } + ] + }, + "TestIamPermissions": { + "requestType": "TestIamPermissionsInstantSnapshotGroupRequest", + "responseType": "TestPermissionsResponse", + "options": { + "(google.api.http).body": "test_permissions_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/testIamPermissions", + "(google.api.method_signature)": "project,zone,resource,test_permissions_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "test_permissions_request_resource", + "post": "/compute/beta/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/testIamPermissions" + } + }, + { + "(google.api.method_signature)": "project,zone,resource,test_permissions_request_resource" + } + ] + } + } + }, "InstantSnapshots": { "options": { "(google.api.default_host)": "compute.googleapis.com", @@ -244864,6 +248500,154 @@ } } }, + "RegionInstantSnapshotGroups": { + "options": { + "(google.api.default_host)": "compute.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "Delete": { + "requestType": "DeleteRegionInstantSnapshotGroupRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups/{instant_snapshot_group}", + "(google.api.method_signature)": "project,region,instant_snapshot_group", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups/{instant_snapshot_group}" + } + }, + { + "(google.api.method_signature)": "project,region,instant_snapshot_group" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "Get": { + "requestType": "GetRegionInstantSnapshotGroupRequest", + "responseType": "InstantSnapshotGroup", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups/{instant_snapshot_group}", + "(google.api.method_signature)": "project,region,instant_snapshot_group" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups/{instant_snapshot_group}" + } + }, + { + "(google.api.method_signature)": "project,region,instant_snapshot_group" + } + ] + }, + "GetIamPolicy": { + "requestType": "GetIamPolicyRegionInstantSnapshotGroupRequest", + "responseType": "Policy", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/getIamPolicy", + "(google.api.method_signature)": "project,region,resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/getIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,region,resource" + } + ] + }, + "Insert": { + "requestType": "InsertRegionInstantSnapshotGroupRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "instant_snapshot_group_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups", + "(google.api.method_signature)": "project,region,instant_snapshot_group_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "instant_snapshot_group_resource", + "post": "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups" + } + }, + { + "(google.api.method_signature)": "project,region,instant_snapshot_group_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "List": { + "requestType": "ListRegionInstantSnapshotGroupsRequest", + "responseType": "ListInstantSnapshotGroups", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups", + "(google.api.method_signature)": "project,region" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups" + } + }, + { + "(google.api.method_signature)": "project,region" + } + ] + }, + "SetIamPolicy": { + "requestType": "SetIamPolicyRegionInstantSnapshotGroupRequest", + "responseType": "Policy", + "options": { + "(google.api.http).body": "region_set_policy_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/setIamPolicy", + "(google.api.method_signature)": "project,region,resource,region_set_policy_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "region_set_policy_request_resource", + "post": "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/setIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,region,resource,region_set_policy_request_resource" + } + ] + }, + "TestIamPermissions": { + "requestType": "TestIamPermissionsRegionInstantSnapshotGroupRequest", + "responseType": "TestPermissionsResponse", + "options": { + "(google.api.http).body": "test_permissions_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/testIamPermissions", + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "test_permissions_request_resource", + "post": "/compute/beta/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/testIamPermissions" + } + }, + { + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + } + ] + } + } + }, "RegionInstantSnapshots": { "options": { "(google.api.default_host)": "compute.googleapis.com", @@ -247726,6 +251510,74 @@ } } }, + "ReservationSlots": { + "options": { + "(google.api.default_host)": "compute.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "Get": { + "requestType": "GetReservationSlotRequest", + "responseType": "ReservationSlotsGetResponse", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots/{reservation_slot}", + "(google.api.method_signature)": "project,zone,parent_name,reservation_slot" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots/{reservation_slot}" + } + }, + { + "(google.api.method_signature)": "project,zone,parent_name,reservation_slot" + } + ] + }, + "List": { + "requestType": "ListReservationSlotsRequest", + "responseType": "ReservationSlotsListResponse", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots", + "(google.api.method_signature)": "project,zone,parent_name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots" + } + }, + { + "(google.api.method_signature)": "project,zone,parent_name" + } + ] + }, + "Update": { + "requestType": "UpdateReservationSlotRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "reservation_slot_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots/{reservation_slot}", + "(google.api.method_signature)": "project,zone,parent_name,reservation_slot,reservation_slot_resource", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "reservation_slot_resource", + "post": "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots/{reservation_slot}" + } + }, + { + "(google.api.method_signature)": "project,zone,parent_name,reservation_slot,reservation_slot_resource" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + } + } + }, "ReservationSubBlocks": { "options": { "(google.api.default_host)": "compute.googleapis.com", @@ -247736,13 +251588,13 @@ "requestType": "GetReservationSubBlockRequest", "responseType": "ReservationSubBlocksGetResponse", "options": { - "(google.api.http).get": "/compute/beta/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}", + "(google.api.http).get": "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}", "(google.api.method_signature)": "project,zone,parent_name,reservation_sub_block" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/compute/beta/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}" + "get": "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}" } }, { @@ -247754,13 +251606,13 @@ "requestType": "GetIamPolicyReservationSubBlockRequest", "responseType": "Policy", "options": { - "(google.api.http).get": "/compute/beta/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/getIamPolicy", + "(google.api.http).get": "/compute/beta/projects/{project}/zones/{zone}/{parent_resource=reservations/*/reservationBlocks/*}/reservationSubBlocks/{resource}/getIamPolicy", "(google.api.method_signature)": "project,zone,parent_resource,resource" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/compute/beta/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/getIamPolicy" + "get": "/compute/beta/projects/{project}/zones/{zone}/{parent_resource=reservations/*/reservationBlocks/*}/reservationSubBlocks/{resource}/getIamPolicy" } }, { @@ -247772,13 +251624,13 @@ "requestType": "ListReservationSubBlocksRequest", "responseType": "ReservationSubBlocksListResponse", "options": { - "(google.api.http).get": "/compute/beta/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks", + "(google.api.http).get": "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks", "(google.api.method_signature)": "project,zone,parent_name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/compute/beta/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks" + "get": "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks" } }, { @@ -247790,14 +251642,14 @@ "requestType": "PerformMaintenanceReservationSubBlockRequest", "responseType": "Operation", "options": { - "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}/performMaintenance", + "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}/performMaintenance", "(google.api.method_signature)": "project,zone,parent_name,reservation_sub_block", "(google.cloud.operation_service)": "ZoneOperations" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/compute/beta/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}/performMaintenance" + "post": "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}/performMaintenance" } }, { @@ -247813,7 +251665,7 @@ "responseType": "Operation", "options": { "(google.api.http).body": "reservation_sub_blocks_report_faulty_request_resource", - "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}/reportFaulty", + "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}/reportFaulty", "(google.api.method_signature)": "project,zone,parent_name,reservation_sub_block,reservation_sub_blocks_report_faulty_request_resource", "(google.cloud.operation_service)": "ZoneOperations" }, @@ -247821,7 +251673,7 @@ { "(google.api.http)": { "body": "reservation_sub_blocks_report_faulty_request_resource", - "post": "/compute/beta/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}/reportFaulty" + "post": "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}/reportFaulty" } }, { @@ -247837,14 +251689,14 @@ "responseType": "Policy", "options": { "(google.api.http).body": "zone_set_nested_policy_request_resource", - "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/setIamPolicy", + "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/{parent_resource=reservations/*/reservationBlocks/*}/reservationSubBlocks/{resource}/setIamPolicy", "(google.api.method_signature)": "project,zone,parent_resource,resource,zone_set_nested_policy_request_resource" }, "parsedOptions": [ { "(google.api.http)": { "body": "zone_set_nested_policy_request_resource", - "post": "/compute/beta/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/setIamPolicy" + "post": "/compute/beta/projects/{project}/zones/{zone}/{parent_resource=reservations/*/reservationBlocks/*}/reservationSubBlocks/{resource}/setIamPolicy" } }, { @@ -247857,14 +251709,14 @@ "responseType": "TestPermissionsResponse", "options": { "(google.api.http).body": "test_permissions_request_resource", - "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/testIamPermissions", + "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/{parent_resource=reservations/*/reservationBlocks/*}/reservationSubBlocks/{resource}/testIamPermissions", "(google.api.method_signature)": "project,zone,parent_resource,resource,test_permissions_request_resource" }, "parsedOptions": [ { "(google.api.http)": { "body": "test_permissions_request_resource", - "post": "/compute/beta/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/testIamPermissions" + "post": "/compute/beta/projects/{project}/zones/{zone}/{parent_resource=reservations/*/reservationBlocks/*}/reservationSubBlocks/{resource}/testIamPermissions" } }, { @@ -248526,6 +252378,28 @@ } ] }, + "DeleteNamedSet": { + "requestType": "DeleteNamedSetRouterRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/compute/beta/projects/{project}/regions/{region}/routers/{router}/deleteNamedSet", + "(google.api.method_signature)": "project,region,router", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/compute/beta/projects/{project}/regions/{region}/routers/{router}/deleteNamedSet" + } + }, + { + "(google.api.method_signature)": "project,region,router" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, "DeleteRoutePolicy": { "requestType": "DeleteRoutePolicyRouterRequest", "responseType": "Operation", @@ -248566,6 +252440,24 @@ } ] }, + "GetNamedSet": { + "requestType": "GetNamedSetRouterRequest", + "responseType": "RoutersGetNamedSetResponse", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/regions/{region}/routers/{router}/getNamedSet", + "(google.api.method_signature)": "project,region,router" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/regions/{region}/routers/{router}/getNamedSet" + } + }, + { + "(google.api.method_signature)": "project,region,router" + } + ] + }, "GetNatIpInfo": { "requestType": "GetNatIpInfoRouterRequest", "responseType": "NatIpInfoResponse", @@ -248698,6 +252590,24 @@ } ] }, + "ListNamedSets": { + "requestType": "ListNamedSetsRoutersRequest", + "responseType": "RoutersListNamedSets", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/regions/{region}/routers/{router}/listNamedSets", + "(google.api.method_signature)": "project,region,router" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/regions/{region}/routers/{router}/listNamedSets" + } + }, + { + "(google.api.method_signature)": "project,region,router" + } + ] + }, "ListRoutePolicies": { "requestType": "ListRoutePoliciesRoutersRequest", "responseType": "RoutersListRoutePolicies", @@ -248740,6 +252650,30 @@ } ] }, + "PatchNamedSet": { + "requestType": "PatchNamedSetRouterRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "named_set_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/regions/{region}/routers/{router}/patchNamedSet", + "(google.api.method_signature)": "project,region,router,named_set_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "named_set_resource", + "post": "/compute/beta/projects/{project}/regions/{region}/routers/{router}/patchNamedSet" + } + }, + { + "(google.api.method_signature)": "project,region,router,named_set_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, "PatchRoutePolicy": { "requestType": "PatchRoutePolicyRouterRequest", "responseType": "Operation", @@ -248828,6 +252762,30 @@ } ] }, + "UpdateNamedSet": { + "requestType": "UpdateNamedSetRouterRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "named_set_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/regions/{region}/routers/{router}/updateNamedSet", + "(google.api.method_signature)": "project,region,router,named_set_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "named_set_resource", + "post": "/compute/beta/projects/{project}/regions/{region}/routers/{router}/updateNamedSet" + } + }, + { + "(google.api.method_signature)": "project,region,router,named_set_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, "UpdateRoutePolicy": { "requestType": "UpdateRoutePolicyRouterRequest", "responseType": "Operation", @@ -249436,6 +253394,154 @@ } } }, + "SnapshotGroups": { + "options": { + "(google.api.default_host)": "compute.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "Delete": { + "requestType": "DeleteSnapshotGroupRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/compute/beta/projects/{project}/global/snapshotGroups/{snapshot_group}", + "(google.api.method_signature)": "project,snapshot_group", + "(google.cloud.operation_service)": "GlobalOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/compute/beta/projects/{project}/global/snapshotGroups/{snapshot_group}" + } + }, + { + "(google.api.method_signature)": "project,snapshot_group" + }, + { + "(google.cloud.operation_service)": "GlobalOperations" + } + ] + }, + "Get": { + "requestType": "GetSnapshotGroupRequest", + "responseType": "SnapshotGroup", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/global/snapshotGroups/{snapshot_group}", + "(google.api.method_signature)": "project,snapshot_group" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/global/snapshotGroups/{snapshot_group}" + } + }, + { + "(google.api.method_signature)": "project,snapshot_group" + } + ] + }, + "GetIamPolicy": { + "requestType": "GetIamPolicySnapshotGroupRequest", + "responseType": "Policy", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/global/snapshotGroups/{resource}/getIamPolicy", + "(google.api.method_signature)": "project,resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/global/snapshotGroups/{resource}/getIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,resource" + } + ] + }, + "Insert": { + "requestType": "InsertSnapshotGroupRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "snapshot_group_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/global/snapshotGroups", + "(google.api.method_signature)": "project,snapshot_group_resource", + "(google.cloud.operation_service)": "GlobalOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "snapshot_group_resource", + "post": "/compute/beta/projects/{project}/global/snapshotGroups" + } + }, + { + "(google.api.method_signature)": "project,snapshot_group_resource" + }, + { + "(google.cloud.operation_service)": "GlobalOperations" + } + ] + }, + "List": { + "requestType": "ListSnapshotGroupsRequest", + "responseType": "ListSnapshotGroups", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/global/snapshotGroups", + "(google.api.method_signature)": "project" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/global/snapshotGroups" + } + }, + { + "(google.api.method_signature)": "project" + } + ] + }, + "SetIamPolicy": { + "requestType": "SetIamPolicySnapshotGroupRequest", + "responseType": "Policy", + "options": { + "(google.api.http).body": "global_set_policy_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/global/snapshotGroups/{resource}/setIamPolicy", + "(google.api.method_signature)": "project,resource,global_set_policy_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "global_set_policy_request_resource", + "post": "/compute/beta/projects/{project}/global/snapshotGroups/{resource}/setIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,resource,global_set_policy_request_resource" + } + ] + }, + "TestIamPermissions": { + "requestType": "TestIamPermissionsSnapshotGroupRequest", + "responseType": "TestPermissionsResponse", + "options": { + "(google.api.http).body": "test_permissions_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/global/snapshotGroups/{resource}/testIamPermissions", + "(google.api.method_signature)": "project,resource,test_permissions_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "test_permissions_request_resource", + "post": "/compute/beta/projects/{project}/global/snapshotGroups/{resource}/testIamPermissions" + } + }, + { + "(google.api.method_signature)": "project,resource,test_permissions_request_resource" + } + ] + } + } + }, "SnapshotSettingsService": { "options": { "(google.api.default_host)": "compute.googleapis.com", diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.configure_accelerator_topologies.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.configure_accelerator_topologies.js new file mode 100644 index 00000000000..b0749903bbf --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.configure_accelerator_topologies.js @@ -0,0 +1,92 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(instanceGroupManager, instanceGroupManagersConfigureAcceleratorTopologiesRequestResource, project, zone) { + // [START compute_v1beta_generated_InstanceGroupManagers_ConfigureAcceleratorTopologies_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The name of the managed instance group. + * It should conform to RFC1035. + */ + // const instanceGroupManager = 'abc123' + /** + * The body resource for this request + */ + // const instanceGroupManagersConfigureAcceleratorTopologiesRequestResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * The name of thezone + * where the managed instance group is located. + * It should conform to RFC1035. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {InstanceGroupManagersClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new InstanceGroupManagersClient(); + + async function callConfigureAcceleratorTopologies() { + // Construct request + const request = { + instanceGroupManager, + instanceGroupManagersConfigureAcceleratorTopologiesRequestResource, + project, + zone, + }; + + // Run request + const response = await computeClient.configureAcceleratorTopologies(request); + console.log(response); + } + + callConfigureAcceleratorTopologies(); + // [END compute_v1beta_generated_InstanceGroupManagers_ConfigureAcceleratorTopologies_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.delete.js new file mode 100644 index 00000000000..05d6cf51fb5 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.delete.js @@ -0,0 +1,85 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(instantSnapshotGroup, project, zone) { + // [START compute_v1beta_generated_InstantSnapshotGroups_Delete_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the InstantSnapshot resource to delete. + */ + // const instantSnapshotGroup = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * The name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {InstantSnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new InstantSnapshotGroupsClient(); + + async function callDelete() { + // Construct request + const request = { + instantSnapshotGroup, + project, + zone, + }; + + // Run request + const response = await computeClient.delete(request); + console.log(response); + } + + callDelete(); + // [END compute_v1beta_generated_InstantSnapshotGroups_Delete_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.get.js b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.get.js new file mode 100644 index 00000000000..08cb00549ff --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.get.js @@ -0,0 +1,71 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(instantSnapshotGroup, project, zone) { + // [START compute_v1beta_generated_InstantSnapshotGroups_Get_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the InstantSnapshotGroup resource to return. + */ + // const instantSnapshotGroup = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {InstantSnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new InstantSnapshotGroupsClient(); + + async function callGet() { + // Construct request + const request = { + instantSnapshotGroup, + project, + zone, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1beta_generated_InstantSnapshotGroups_Get_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.get_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.get_iam_policy.js new file mode 100644 index 00000000000..144be3471ac --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.get_iam_policy.js @@ -0,0 +1,75 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, resource, zone) { + // [START compute_v1beta_generated_InstantSnapshotGroups_GetIamPolicy_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Requested IAM Policy version. + */ + // const optionsRequestedPolicyVersion = 1234 + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + /** + * The name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {InstantSnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new InstantSnapshotGroupsClient(); + + async function callGetIamPolicy() { + // Construct request + const request = { + project, + resource, + zone, + }; + + // Run request + const response = await computeClient.getIamPolicy(request); + console.log(response); + } + + callGetIamPolicy(); + // [END compute_v1beta_generated_InstantSnapshotGroups_GetIamPolicy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.insert.js new file mode 100644 index 00000000000..dd23fb3866f --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.insert.js @@ -0,0 +1,89 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(instantSnapshotGroupResource, project, zone) { + // [START compute_v1beta_generated_InstantSnapshotGroups_Insert_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The body resource for this request + */ + // const instantSnapshotGroupResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * begin_interface: MixerMutationRequestBuilder + */ + // const sourceConsistencyGroup = 'abc123' + /** + * Name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {InstantSnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new InstantSnapshotGroupsClient(); + + async function callInsert() { + // Construct request + const request = { + instantSnapshotGroupResource, + project, + zone, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1beta_generated_InstantSnapshotGroups_Insert_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.list.js b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.list.js new file mode 100644 index 00000000000..9d9ee0a1672 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.list.js @@ -0,0 +1,153 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, zone) { + // [START compute_v1beta_generated_InstantSnapshotGroups_List_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + // const filter = 'abc123' + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + // const pageToken = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + // const returnPartialSuccess = true + /** + * The name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {InstantSnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new InstantSnapshotGroupsClient(); + + async function callList() { + // Construct request + const request = { + project, + zone, + }; + + // Run request + const iterable = computeClient.listAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callList(); + // [END compute_v1beta_generated_InstantSnapshotGroups_List_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.set_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.set_iam_policy.js new file mode 100644 index 00000000000..de0aa287eaf --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.set_iam_policy.js @@ -0,0 +1,76 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, resource, zone, zoneSetPolicyRequestResource) { + // [START compute_v1beta_generated_InstantSnapshotGroups_SetIamPolicy_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + /** + * The name of the zone for this request. + */ + // const zone = 'abc123' + /** + * The body resource for this request + */ + // const zoneSetPolicyRequestResource = {} + + // Imports the Compute library + const {InstantSnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new InstantSnapshotGroupsClient(); + + async function callSetIamPolicy() { + // Construct request + const request = { + project, + resource, + zone, + zoneSetPolicyRequestResource, + }; + + // Run request + const response = await computeClient.setIamPolicy(request); + console.log(response); + } + + callSetIamPolicy(); + // [END compute_v1beta_generated_InstantSnapshotGroups_SetIamPolicy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.test_iam_permissions.js new file mode 100644 index 00000000000..c4749831916 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshot_groups.test_iam_permissions.js @@ -0,0 +1,76 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, resource, testPermissionsRequestResource, zone) { + // [START compute_v1beta_generated_InstantSnapshotGroups_TestIamPermissions_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + /** + * The body resource for this request + */ + // const testPermissionsRequestResource = {} + /** + * The name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {InstantSnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new InstantSnapshotGroupsClient(); + + async function callTestIamPermissions() { + // Construct request + const request = { + project, + resource, + testPermissionsRequestResource, + zone, + }; + + // Run request + const response = await computeClient.testIamPermissions(request); + console.log(response); + } + + callTestIamPermissions(); + // [END compute_v1beta_generated_InstantSnapshotGroups_TestIamPermissions_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.delete.js new file mode 100644 index 00000000000..d52706087b5 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.delete.js @@ -0,0 +1,85 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(instantSnapshotGroup, project, region) { + // [START compute_v1beta_generated_RegionInstantSnapshotGroups_Delete_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the InstantSnapshotGroup resource to delete. + */ + // const instantSnapshotGroup = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + + // Imports the Compute library + const {RegionInstantSnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotGroupsClient(); + + async function callDelete() { + // Construct request + const request = { + instantSnapshotGroup, + project, + region, + }; + + // Run request + const response = await computeClient.delete(request); + console.log(response); + } + + callDelete(); + // [END compute_v1beta_generated_RegionInstantSnapshotGroups_Delete_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.get.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.get.js new file mode 100644 index 00000000000..f50146de32d --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.get.js @@ -0,0 +1,71 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(instantSnapshotGroup, project, region) { + // [START compute_v1beta_generated_RegionInstantSnapshotGroups_Get_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the InstantSnapshotGroup resource to return. + */ + // const instantSnapshotGroup = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + + // Imports the Compute library + const {RegionInstantSnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotGroupsClient(); + + async function callGet() { + // Construct request + const request = { + instantSnapshotGroup, + project, + region, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1beta_generated_RegionInstantSnapshotGroups_Get_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.get_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.get_iam_policy.js new file mode 100644 index 00000000000..c0bd5ef8182 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.get_iam_policy.js @@ -0,0 +1,75 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, region, resource) { + // [START compute_v1beta_generated_RegionInstantSnapshotGroups_GetIamPolicy_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Requested IAM Policy version. + */ + // const optionsRequestedPolicyVersion = 1234 + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + + // Imports the Compute library + const {RegionInstantSnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotGroupsClient(); + + async function callGetIamPolicy() { + // Construct request + const request = { + project, + region, + resource, + }; + + // Run request + const response = await computeClient.getIamPolicy(request); + console.log(response); + } + + callGetIamPolicy(); + // [END compute_v1beta_generated_RegionInstantSnapshotGroups_GetIamPolicy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.insert.js new file mode 100644 index 00000000000..d82bdd41be0 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.insert.js @@ -0,0 +1,89 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(instantSnapshotGroupResource, project, region) { + // [START compute_v1beta_generated_RegionInstantSnapshotGroups_Insert_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The body resource for this request + */ + // const instantSnapshotGroupResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region for this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * begin_interface: MixerMutationRequestBuilder + */ + // const sourceConsistencyGroup = 'abc123' + + // Imports the Compute library + const {RegionInstantSnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotGroupsClient(); + + async function callInsert() { + // Construct request + const request = { + instantSnapshotGroupResource, + project, + region, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1beta_generated_RegionInstantSnapshotGroups_Insert_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.list.js new file mode 100644 index 00000000000..d1990e266f2 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.list.js @@ -0,0 +1,153 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, region) { + // [START compute_v1beta_generated_RegionInstantSnapshotGroups_List_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + // const filter = 'abc123' + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + // const pageToken = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + // const returnPartialSuccess = true + + // Imports the Compute library + const {RegionInstantSnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotGroupsClient(); + + async function callList() { + // Construct request + const request = { + project, + region, + }; + + // Run request + const iterable = computeClient.listAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callList(); + // [END compute_v1beta_generated_RegionInstantSnapshotGroups_List_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.set_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.set_iam_policy.js new file mode 100644 index 00000000000..eed00b72b9d --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.set_iam_policy.js @@ -0,0 +1,76 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, region, regionSetPolicyRequestResource, resource) { + // [START compute_v1beta_generated_RegionInstantSnapshotGroups_SetIamPolicy_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + /** + * The body resource for this request + */ + // const regionSetPolicyRequestResource = {} + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + + // Imports the Compute library + const {RegionInstantSnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotGroupsClient(); + + async function callSetIamPolicy() { + // Construct request + const request = { + project, + region, + regionSetPolicyRequestResource, + resource, + }; + + // Run request + const response = await computeClient.setIamPolicy(request); + console.log(response); + } + + callSetIamPolicy(); + // [END compute_v1beta_generated_RegionInstantSnapshotGroups_SetIamPolicy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.test_iam_permissions.js new file mode 100644 index 00000000000..a20949f6741 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshot_groups.test_iam_permissions.js @@ -0,0 +1,76 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, region, resource, testPermissionsRequestResource) { + // [START compute_v1beta_generated_RegionInstantSnapshotGroups_TestIamPermissions_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + /** + * The body resource for this request + */ + // const testPermissionsRequestResource = {} + + // Imports the Compute library + const {RegionInstantSnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotGroupsClient(); + + async function callTestIamPermissions() { + // Construct request + const request = { + project, + region, + resource, + testPermissionsRequestResource, + }; + + // Run request + const response = await computeClient.testIamPermissions(request); + console.log(response); + } + + callTestIamPermissions(); + // [END compute_v1beta_generated_RegionInstantSnapshotGroups_TestIamPermissions_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservation_slots.get.js b/packages/google-cloud-compute/samples/generated/v1beta/reservation_slots.get.js new file mode 100644 index 00000000000..462d5428014 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservation_slots.get.js @@ -0,0 +1,78 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parentName, project, reservationSlot, zone) { + // [START compute_v1beta_generated_ReservationSlots_Get_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The name of the parent reservation and parent block, formatted as + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + */ + // const parentName = 'abc123' + /** + * The project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the reservation slot, formatted as RFC1035 or a resource ID + * number. + */ + // const reservationSlot = 'abc123' + /** + * The name of the zone for this request, formatted as RFC1035. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ReservationSlotsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new ReservationSlotsClient(); + + async function callGet() { + // Construct request + const request = { + parentName, + project, + reservationSlot, + zone, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1beta_generated_ReservationSlots_Get_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservation_slots.list.js b/packages/google-cloud-compute/samples/generated/v1beta/reservation_slots.list.js new file mode 100644 index 00000000000..036d2be471b --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservation_slots.list.js @@ -0,0 +1,159 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parentName, project, zone) { + // [START compute_v1beta_generated_ReservationSlots_List_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + // const filter = 'abc123' + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + // const pageToken = 'abc123' + /** + * The name of the parent reservation and parent block, formatted as + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + */ + // const parentName = 'abc123' + /** + * The project ID for this request. + */ + // const project = 'my-project' + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + // const returnPartialSuccess = true + /** + * The name of the zone for this request, formatted as RFC1035. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ReservationSlotsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new ReservationSlotsClient(); + + async function callList() { + // Construct request + const request = { + parentName, + project, + zone, + }; + + // Run request + const iterable = computeClient.listAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callList(); + // [END compute_v1beta_generated_ReservationSlots_List_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservation_slots.update.js b/packages/google-cloud-compute/samples/generated/v1beta/reservation_slots.update.js new file mode 100644 index 00000000000..56056c2b143 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservation_slots.update.js @@ -0,0 +1,85 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parentName, project, reservationSlot, reservationSlotResource, zone) { + // [START compute_v1beta_generated_ReservationSlots_Update_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The name of the sub-block resource. + */ + // const parentName = 'abc123' + /** + * The project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the slot resource. + */ + // const reservationSlot = 'abc123' + /** + * The body resource for this request + */ + // const reservationSlotResource = {} + /** + * The fields to be updated as part of this request. + */ + // const updateMask = 'abc123' + /** + * The name of the zone for this request, formatted as RFC1035. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ReservationSlotsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new ReservationSlotsClient(); + + async function callUpdate() { + // Construct request + const request = { + parentName, + project, + reservationSlot, + reservationSlotResource, + zone, + }; + + // Run request + const response = await computeClient.update(request); + console.log(response); + } + + callUpdate(); + // [END compute_v1beta_generated_ReservationSlots_Update_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routers.delete_named_set.js b/packages/google-cloud-compute/samples/generated/v1beta/routers.delete_named_set.js new file mode 100644 index 00000000000..a6d30e11e29 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/routers.delete_named_set.js @@ -0,0 +1,89 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, region, router) { + // [START compute_v1beta_generated_Routers_DeleteNamedSet_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The Named Set name for this request. Name must conform to RFC1035 + */ + // const namedSet = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region for this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * Name of the Router resource where Named Set is defined. + */ + // const router = 'abc123' + + // Imports the Compute library + const {RoutersClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RoutersClient(); + + async function callDeleteNamedSet() { + // Construct request + const request = { + project, + region, + router, + }; + + // Run request + const response = await computeClient.deleteNamedSet(request); + console.log(response); + } + + callDeleteNamedSet(); + // [END compute_v1beta_generated_Routers_DeleteNamedSet_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routers.get_named_set.js b/packages/google-cloud-compute/samples/generated/v1beta/routers.get_named_set.js new file mode 100644 index 00000000000..8ff8e3946e5 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/routers.get_named_set.js @@ -0,0 +1,76 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, region, router) { + // [START compute_v1beta_generated_Routers_GetNamedSet_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The Named Set name for this request. Name must conform to RFC1035 + */ + // const namedSet = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region for this request. + */ + // const region = 'us-central1' + /** + * Name of the Router resource to query for the named set. The name should + * conform to RFC1035. + */ + // const router = 'abc123' + + // Imports the Compute library + const {RoutersClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RoutersClient(); + + async function callGetNamedSet() { + // Construct request + const request = { + project, + region, + router, + }; + + // Run request + const response = await computeClient.getNamedSet(request); + console.log(response); + } + + callGetNamedSet(); + // [END compute_v1beta_generated_Routers_GetNamedSet_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routers.list_named_sets.js b/packages/google-cloud-compute/samples/generated/v1beta/routers.list_named_sets.js new file mode 100644 index 00000000000..c96c3cb7ccb --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/routers.list_named_sets.js @@ -0,0 +1,159 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, region, router) { + // [START compute_v1beta_generated_Routers_ListNamedSets_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + // const filter = 'abc123' + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + // const pageToken = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region for this request. + */ + // const region = 'us-central1' + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + // const returnPartialSuccess = true + /** + * Name or id of the resource for this request. + * Name should conform to RFC1035. + */ + // const router = 'abc123' + + // Imports the Compute library + const {RoutersClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RoutersClient(); + + async function callListNamedSets() { + // Construct request + const request = { + project, + region, + router, + }; + + // Run request + const iterable = computeClient.listNamedSetsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListNamedSets(); + // [END compute_v1beta_generated_Routers_ListNamedSets_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routers.patch_named_set.js b/packages/google-cloud-compute/samples/generated/v1beta/routers.patch_named_set.js new file mode 100644 index 00000000000..990e01c8849 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/routers.patch_named_set.js @@ -0,0 +1,90 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(namedSetResource, project, region, router) { + // [START compute_v1beta_generated_Routers_PatchNamedSet_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The body resource for this request + */ + // const namedSetResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region for this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * Name of the Router resource where Named Set is defined. + */ + // const router = 'abc123' + + // Imports the Compute library + const {RoutersClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RoutersClient(); + + async function callPatchNamedSet() { + // Construct request + const request = { + namedSetResource, + project, + region, + router, + }; + + // Run request + const response = await computeClient.patchNamedSet(request); + console.log(response); + } + + callPatchNamedSet(); + // [END compute_v1beta_generated_Routers_PatchNamedSet_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routers.update_named_set.js b/packages/google-cloud-compute/samples/generated/v1beta/routers.update_named_set.js new file mode 100644 index 00000000000..0681b59c6ab --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/routers.update_named_set.js @@ -0,0 +1,90 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(namedSetResource, project, region, router) { + // [START compute_v1beta_generated_Routers_UpdateNamedSet_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The body resource for this request + */ + // const namedSetResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region for this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * Name of the Router resource where Named Set is defined. + */ + // const router = 'abc123' + + // Imports the Compute library + const {RoutersClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RoutersClient(); + + async function callUpdateNamedSet() { + // Construct request + const request = { + namedSetResource, + project, + region, + router, + }; + + // Run request + const response = await computeClient.updateNamedSet(request); + console.log(response); + } + + callUpdateNamedSet(); + // [END compute_v1beta_generated_Routers_UpdateNamedSet_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.delete.js new file mode 100644 index 00000000000..f5a80e8bfb5 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.delete.js @@ -0,0 +1,80 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, snapshotGroup) { + // [START compute_v1beta_generated_SnapshotGroups_Delete_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * Name of the SnapshotGroup resource to delete. + */ + // const snapshotGroup = 'abc123' + + // Imports the Compute library + const {SnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new SnapshotGroupsClient(); + + async function callDelete() { + // Construct request + const request = { + project, + snapshotGroup, + }; + + // Run request + const response = await computeClient.delete(request); + console.log(response); + } + + callDelete(); + // [END compute_v1beta_generated_SnapshotGroups_Delete_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.get.js b/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.get.js new file mode 100644 index 00000000000..4f4281f40fe --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.get.js @@ -0,0 +1,66 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, snapshotGroup) { + // [START compute_v1beta_generated_SnapshotGroups_Get_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the SnapshotGroup resource to return. + */ + // const snapshotGroup = 'abc123' + + // Imports the Compute library + const {SnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new SnapshotGroupsClient(); + + async function callGet() { + // Construct request + const request = { + project, + snapshotGroup, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1beta_generated_SnapshotGroups_Get_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.get_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.get_iam_policy.js new file mode 100644 index 00000000000..53264fcb922 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.get_iam_policy.js @@ -0,0 +1,70 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, resource) { + // [START compute_v1beta_generated_SnapshotGroups_GetIamPolicy_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Requested IAM Policy version. + */ + // const optionsRequestedPolicyVersion = 1234 + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + + // Imports the Compute library + const {SnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new SnapshotGroupsClient(); + + async function callGetIamPolicy() { + // Construct request + const request = { + project, + resource, + }; + + // Run request + const response = await computeClient.getIamPolicy(request); + console.log(response); + } + + callGetIamPolicy(); + // [END compute_v1beta_generated_SnapshotGroups_GetIamPolicy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.insert.js new file mode 100644 index 00000000000..2515f3c2a51 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.insert.js @@ -0,0 +1,80 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, snapshotGroupResource) { + // [START compute_v1beta_generated_SnapshotGroups_Insert_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * The body resource for this request + */ + // const snapshotGroupResource = {} + + // Imports the Compute library + const {SnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new SnapshotGroupsClient(); + + async function callInsert() { + // Construct request + const request = { + project, + snapshotGroupResource, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1beta_generated_SnapshotGroups_Insert_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.list.js b/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.list.js new file mode 100644 index 00000000000..c77df2238c4 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.list.js @@ -0,0 +1,148 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project) { + // [START compute_v1beta_generated_SnapshotGroups_List_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + // const filter = 'abc123' + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + // const pageToken = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + // const returnPartialSuccess = true + + // Imports the Compute library + const {SnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new SnapshotGroupsClient(); + + async function callList() { + // Construct request + const request = { + project, + }; + + // Run request + const iterable = computeClient.listAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callList(); + // [END compute_v1beta_generated_SnapshotGroups_List_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.set_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.set_iam_policy.js new file mode 100644 index 00000000000..9418d808d86 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.set_iam_policy.js @@ -0,0 +1,71 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(globalSetPolicyRequestResource, project, resource) { + // [START compute_v1beta_generated_SnapshotGroups_SetIamPolicy_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The body resource for this request + */ + // const globalSetPolicyRequestResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + + // Imports the Compute library + const {SnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new SnapshotGroupsClient(); + + async function callSetIamPolicy() { + // Construct request + const request = { + globalSetPolicyRequestResource, + project, + resource, + }; + + // Run request + const response = await computeClient.setIamPolicy(request); + console.log(response); + } + + callSetIamPolicy(); + // [END compute_v1beta_generated_SnapshotGroups_SetIamPolicy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.test_iam_permissions.js new file mode 100644 index 00000000000..e159cab9fd9 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/snapshot_groups.test_iam_permissions.js @@ -0,0 +1,71 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, resource, testPermissionsRequestResource) { + // [START compute_v1beta_generated_SnapshotGroups_TestIamPermissions_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + /** + * The body resource for this request + */ + // const testPermissionsRequestResource = {} + + // Imports the Compute library + const {SnapshotGroupsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new SnapshotGroupsClient(); + + async function callTestIamPermissions() { + // Construct request + const request = { + project, + resource, + testPermissionsRequestResource, + }; + + // Run request + const response = await computeClient.testIamPermissions(request); + console.log(response); + } + + callTestIamPermissions(); + // [END compute_v1beta_generated_SnapshotGroups_TestIamPermissions_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/snippet_metadata_google.cloud.compute.v1beta.json b/packages/google-cloud-compute/samples/generated/v1beta/snippet_metadata_google.cloud.compute.v1beta.json index 442b89fd996..4a9d891f2b2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/snippet_metadata_google.cloud.compute.v1beta.json +++ b/packages/google-cloud-compute/samples/generated/v1beta/snippet_metadata_google.cloud.compute.v1beta.json @@ -4007,7 +4007,7 @@ "regionTag": "compute_v1beta_generated_Disks_Update_async", "title": "AcceleratorTypes update Sample", "origin": "API_DEFINITION", - "description": " Updates the specified disk with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license.", + "description": " Updates the specified disk with the data included in the request. The update is performed only on selected fields included as part of update-mask.", "canonical": true, "file": "disks.update.js", "language": "JAVASCRIPT", @@ -7883,7 +7883,7 @@ "regionTag": "compute_v1beta_generated_GlobalNetworkEndpointGroups_Insert_async", "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Creates a network endpoint group in the specified project using the parameters that are included in the request.", + "description": " Creates a network endpoint group in the specified project using the parameters that are included in the request. Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service Connect NEGs): regional API - To manage NEGs with global scope (such as global internet NEGs):global API", "canonical": true, "file": "global_network_endpoint_groups.insert.js", "language": "JAVASCRIPT", @@ -10515,6 +10515,62 @@ } } }, + { + "regionTag": "compute_v1beta_generated_InstanceGroupManagers_ConfigureAcceleratorTopologies_async", + "title": "AcceleratorTypes configureAcceleratorTopologies Sample", + "origin": "API_DEFINITION", + "description": " Updates the accelerator topologies configuration.", + "canonical": true, + "file": "instance_group_managers.configure_accelerator_topologies.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 84, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ConfigureAcceleratorTopologies", + "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.ConfigureAcceleratorTopologies", + "async": true, + "parameters": [ + { + "name": "instance_group_manager", + "type": "TYPE_STRING" + }, + { + "name": "instance_group_managers_configure_accelerator_topologies_request_resource", + "type": ".google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "InstanceGroupManagersClient", + "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" + }, + "method": { + "shortName": "ConfigureAcceleratorTopologies", + "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.ConfigureAcceleratorTopologies", + "service": { + "shortName": "InstanceGroupManagers", + "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" + } + } + } + }, { "regionTag": "compute_v1beta_generated_InstanceGroupManagers_CreateInstances_async", "title": "AcceleratorTypes createInstances Sample", @@ -16219,6 +16275,382 @@ } } }, + { + "regionTag": "compute_v1beta_generated_InstantSnapshotGroups_Delete_async", + "title": "AcceleratorTypes delete Sample", + "origin": "API_DEFINITION", + "description": " deletes a Zonal InstantSnapshotGroup resource", + "canonical": true, + "file": "instant_snapshot_groups.delete.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.Delete", + "async": true, + "parameters": [ + { + "name": "instant_snapshot_group", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "InstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroupsClient" + }, + "method": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.Delete", + "service": { + "shortName": "InstantSnapshotGroups", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_InstantSnapshotGroups_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " returns the specified InstantSnapshotGroup resource in the specified zone.", + "canonical": true, + "file": "instant_snapshot_groups.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.Get", + "async": true, + "parameters": [ + { + "name": "instant_snapshot_group", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.InstantSnapshotGroup", + "client": { + "shortName": "InstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroupsClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.Get", + "service": { + "shortName": "InstantSnapshotGroups", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_InstantSnapshotGroups_GetIamPolicy_async", + "title": "AcceleratorTypes getIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", + "canonical": true, + "file": "instant_snapshot_groups.get_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.GetIamPolicy", + "async": true, + "parameters": [ + { + "name": "options_requested_policy_version", + "type": "TYPE_INT32" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Policy", + "client": { + "shortName": "InstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroupsClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.GetIamPolicy", + "service": { + "shortName": "InstantSnapshotGroups", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_InstantSnapshotGroups_Insert_async", + "title": "AcceleratorTypes insert Sample", + "origin": "API_DEFINITION", + "description": " inserts a Zonal InstantSnapshotGroup resource", + "canonical": true, + "file": "instant_snapshot_groups.insert.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 81, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.Insert", + "async": true, + "parameters": [ + { + "name": "instant_snapshot_group_resource", + "type": ".google.cloud.compute.v1beta.InstantSnapshotGroup" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "source_consistency_group", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "InstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroupsClient" + }, + "method": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.Insert", + "service": { + "shortName": "InstantSnapshotGroups", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_InstantSnapshotGroups_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " retrieves the list of InstantSnapshotGroup resources contained within the specified zone.", + "canonical": true, + "file": "instant_snapshot_groups.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 145, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.List", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.ListInstantSnapshotGroups", + "client": { + "shortName": "InstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroupsClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.List", + "service": { + "shortName": "InstantSnapshotGroups", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_InstantSnapshotGroups_SetIamPolicy_async", + "title": "AcceleratorTypes setIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", + "canonical": true, + "file": "instant_snapshot_groups.set_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.SetIamPolicy", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "zone_set_policy_request_resource", + "type": ".google.cloud.compute.v1beta.ZoneSetPolicyRequest" + } + ], + "resultType": ".google.cloud.compute.v1beta.Policy", + "client": { + "shortName": "InstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroupsClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.SetIamPolicy", + "service": { + "shortName": "InstantSnapshotGroups", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_InstantSnapshotGroups_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", + "origin": "API_DEFINITION", + "description": " Returns permissions that a caller has on the specified resource.", + "canonical": true, + "file": "instant_snapshot_groups.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.TestIamPermissions", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "test_permissions_request_resource", + "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", + "client": { + "shortName": "InstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroupsClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.TestIamPermissions", + "service": { + "shortName": "InstantSnapshotGroups", + "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups" + } + } + } + }, { "regionTag": "compute_v1beta_generated_InstantSnapshots_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", @@ -20883,7 +21315,7 @@ "regionTag": "compute_v1beta_generated_NetworkEndpointGroups_Insert_async", "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Creates a network endpoint group in the specified project using the parameters that are included in the request.", + "description": " Creates a network endpoint group in the specified project using the parameters that are included in the request. Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service Connect NEGs): regional API - To manage NEGs with global scope (such as global internet NEGs):global API", "canonical": true, "file": "network_endpoint_groups.insert.js", "language": "JAVASCRIPT", @@ -30567,7 +30999,7 @@ "regionTag": "compute_v1beta_generated_RegionDisks_Update_async", "title": "AcceleratorTypes update Sample", "origin": "API_DEFINITION", - "description": " Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license.", + "description": " Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask.", "canonical": true, "file": "region_disks.update.js", "language": "JAVASCRIPT", @@ -34767,6 +35199,382 @@ } } }, + { + "regionTag": "compute_v1beta_generated_RegionInstantSnapshotGroups_Delete_async", + "title": "AcceleratorTypes delete Sample", + "origin": "API_DEFINITION", + "description": " deletes a Regional InstantSnapshotGroup resource", + "canonical": true, + "file": "region_instant_snapshot_groups.delete.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.Delete", + "async": true, + "parameters": [ + { + "name": "instant_snapshot_group", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "RegionInstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroupsClient" + }, + "method": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.Delete", + "service": { + "shortName": "RegionInstantSnapshotGroups", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionInstantSnapshotGroups_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " returns the specified InstantSnapshotGroup resource in the specified region.", + "canonical": true, + "file": "region_instant_snapshot_groups.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.Get", + "async": true, + "parameters": [ + { + "name": "instant_snapshot_group", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.InstantSnapshotGroup", + "client": { + "shortName": "RegionInstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroupsClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.Get", + "service": { + "shortName": "RegionInstantSnapshotGroups", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionInstantSnapshotGroups_GetIamPolicy_async", + "title": "AcceleratorTypes getIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", + "canonical": true, + "file": "region_instant_snapshot_groups.get_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.GetIamPolicy", + "async": true, + "parameters": [ + { + "name": "options_requested_policy_version", + "type": "TYPE_INT32" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Policy", + "client": { + "shortName": "RegionInstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroupsClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.GetIamPolicy", + "service": { + "shortName": "RegionInstantSnapshotGroups", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionInstantSnapshotGroups_Insert_async", + "title": "AcceleratorTypes insert Sample", + "origin": "API_DEFINITION", + "description": " creates a Regional InstantSnapshotGroup resource", + "canonical": true, + "file": "region_instant_snapshot_groups.insert.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 81, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.Insert", + "async": true, + "parameters": [ + { + "name": "instant_snapshot_group_resource", + "type": ".google.cloud.compute.v1beta.InstantSnapshotGroup" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "source_consistency_group", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "RegionInstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroupsClient" + }, + "method": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.Insert", + "service": { + "shortName": "RegionInstantSnapshotGroups", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionInstantSnapshotGroups_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " retrieves the list of InstantSnapshotGroup resources contained within the specified region.", + "canonical": true, + "file": "region_instant_snapshot_groups.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 145, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.List", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.cloud.compute.v1beta.ListInstantSnapshotGroups", + "client": { + "shortName": "RegionInstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroupsClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.List", + "service": { + "shortName": "RegionInstantSnapshotGroups", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionInstantSnapshotGroups_SetIamPolicy_async", + "title": "AcceleratorTypes setIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", + "canonical": true, + "file": "region_instant_snapshot_groups.set_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.SetIamPolicy", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "region_set_policy_request_resource", + "type": ".google.cloud.compute.v1beta.RegionSetPolicyRequest" + }, + { + "name": "resource", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Policy", + "client": { + "shortName": "RegionInstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroupsClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.SetIamPolicy", + "service": { + "shortName": "RegionInstantSnapshotGroups", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionInstantSnapshotGroups_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", + "origin": "API_DEFINITION", + "description": " Returns permissions that a caller has on the specified resource.", + "canonical": true, + "file": "region_instant_snapshot_groups.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.TestIamPermissions", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "test_permissions_request_resource", + "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" + } + ], + "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", + "client": { + "shortName": "RegionInstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroupsClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.TestIamPermissions", + "service": { + "shortName": "RegionInstantSnapshotGroups", + "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups" + } + } + } + }, { "regionTag": "compute_v1beta_generated_RegionInstantSnapshots_Delete_async", "title": "AcceleratorTypes delete Sample", @@ -35747,7 +36555,7 @@ "regionTag": "compute_v1beta_generated_RegionNetworkEndpointGroups_Insert_async", "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Creates a network endpoint group in the specified project using the parameters that are included in the request.", + "description": " Creates a network endpoint group in the specified project using the parameters that are included in the request. Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service Connect NEGs): regional API - To manage NEGs with global scope (such as global internet NEGs):global API", "canonical": true, "file": "region_network_endpoint_groups.insert.js", "language": "JAVASCRIPT", @@ -42519,6 +43327,186 @@ } } }, + { + "regionTag": "compute_v1beta_generated_ReservationSlots_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " Retrieves information about the specified reservation slot.", + "canonical": true, + "file": "reservation_slots.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 70, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.ReservationSlots.Get", + "async": true, + "parameters": [ + { + "name": "parent_name", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "reservation_slot", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.ReservationSlotsGetResponse", + "client": { + "shortName": "ReservationSlotsClient", + "fullName": "google.cloud.compute.v1beta.ReservationSlotsClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.ReservationSlots.Get", + "service": { + "shortName": "ReservationSlots", + "fullName": "google.cloud.compute.v1beta.ReservationSlots" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_ReservationSlots_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " Retrieves a list of reservation slots under a single reservation.", + "canonical": true, + "file": "reservation_slots.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 151, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.ReservationSlots.List", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "parent_name", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.ReservationSlotsListResponse", + "client": { + "shortName": "ReservationSlotsClient", + "fullName": "google.cloud.compute.v1beta.ReservationSlotsClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.ReservationSlots.List", + "service": { + "shortName": "ReservationSlots", + "fullName": "google.cloud.compute.v1beta.ReservationSlots" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_ReservationSlots_Update_async", + "title": "AcceleratorTypes update Sample", + "origin": "API_DEFINITION", + "description": " Update a reservation slot in the specified sub-block.", + "canonical": true, + "file": "reservation_slots.update.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Update", + "fullName": "google.cloud.compute.v1beta.ReservationSlots.Update", + "async": true, + "parameters": [ + { + "name": "parent_name", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "reservation_slot", + "type": "TYPE_STRING" + }, + { + "name": "reservation_slot_resource", + "type": ".google.cloud.compute.v1beta.ReservationSlot" + }, + { + "name": "update_mask", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "ReservationSlotsClient", + "fullName": "google.cloud.compute.v1beta.ReservationSlotsClient" + }, + "method": { + "shortName": "Update", + "fullName": "google.cloud.compute.v1beta.ReservationSlots.Update", + "service": { + "shortName": "ReservationSlots", + "fullName": "google.cloud.compute.v1beta.ReservationSlots" + } + } + } + }, { "regionTag": "compute_v1beta_generated_ReservationSubBlocks_Get_async", "title": "AcceleratorTypes get Sample", @@ -43951,6 +44939,62 @@ } } }, + { + "regionTag": "compute_v1beta_generated_Routers_DeleteNamedSet_async", + "title": "AcceleratorTypes deleteNamedSet Sample", + "origin": "API_DEFINITION", + "description": " Deletes Named Set", + "canonical": true, + "file": "routers.delete_named_set.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 81, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteNamedSet", + "fullName": "google.cloud.compute.v1beta.Routers.DeleteNamedSet", + "async": true, + "parameters": [ + { + "name": "named_set", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "router", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "RoutersClient", + "fullName": "google.cloud.compute.v1beta.RoutersClient" + }, + "method": { + "shortName": "DeleteNamedSet", + "fullName": "google.cloud.compute.v1beta.Routers.DeleteNamedSet", + "service": { + "shortName": "Routers", + "fullName": "google.cloud.compute.v1beta.Routers" + } + } + } + }, { "regionTag": "compute_v1beta_generated_Routers_DeleteRoutePolicy_async", "title": "AcceleratorTypes deleteRoutePolicy Sample", @@ -44055,6 +45099,58 @@ } } }, + { + "regionTag": "compute_v1beta_generated_Routers_GetNamedSet_async", + "title": "AcceleratorTypes getNamedSet Sample", + "origin": "API_DEFINITION", + "description": " Returns specified Named Set", + "canonical": true, + "file": "routers.get_named_set.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetNamedSet", + "fullName": "google.cloud.compute.v1beta.Routers.GetNamedSet", + "async": true, + "parameters": [ + { + "name": "named_set", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "router", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.RoutersGetNamedSetResponse", + "client": { + "shortName": "RoutersClient", + "fullName": "google.cloud.compute.v1beta.RoutersClient" + }, + "method": { + "shortName": "GetNamedSet", + "fullName": "google.cloud.compute.v1beta.Routers.GetNamedSet", + "service": { + "shortName": "Routers", + "fullName": "google.cloud.compute.v1beta.Routers" + } + } + } + }, { "regionTag": "compute_v1beta_generated_Routers_GetNatIpInfo_async", "title": "AcceleratorTypes getNatIpInfo Sample", @@ -44483,6 +45579,74 @@ } } }, + { + "regionTag": "compute_v1beta_generated_Routers_ListNamedSets_async", + "title": "AcceleratorTypes listNamedSets Sample", + "origin": "API_DEFINITION", + "description": " Retrieves a list of router named set subresources available to the specified project.", + "canonical": true, + "file": "routers.list_named_sets.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 151, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListNamedSets", + "fullName": "google.cloud.compute.v1beta.Routers.ListNamedSets", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + }, + { + "name": "router", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.RoutersListNamedSets", + "client": { + "shortName": "RoutersClient", + "fullName": "google.cloud.compute.v1beta.RoutersClient" + }, + "method": { + "shortName": "ListNamedSets", + "fullName": "google.cloud.compute.v1beta.Routers.ListNamedSets", + "service": { + "shortName": "Routers", + "fullName": "google.cloud.compute.v1beta.Routers" + } + } + } + }, { "regionTag": "compute_v1beta_generated_Routers_ListRoutePolicies_async", "title": "AcceleratorTypes listRoutePolicies Sample", @@ -44607,6 +45771,62 @@ } } }, + { + "regionTag": "compute_v1beta_generated_Routers_PatchNamedSet_async", + "title": "AcceleratorTypes patchNamedSet Sample", + "origin": "API_DEFINITION", + "description": " Patches Named Set", + "canonical": true, + "file": "routers.patch_named_set.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 82, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PatchNamedSet", + "fullName": "google.cloud.compute.v1beta.Routers.PatchNamedSet", + "async": true, + "parameters": [ + { + "name": "named_set_resource", + "type": ".google.cloud.compute.v1beta.NamedSet" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "router", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "RoutersClient", + "fullName": "google.cloud.compute.v1beta.RoutersClient" + }, + "method": { + "shortName": "PatchNamedSet", + "fullName": "google.cloud.compute.v1beta.Routers.PatchNamedSet", + "service": { + "shortName": "Routers", + "fullName": "google.cloud.compute.v1beta.Routers" + } + } + } + }, { "regionTag": "compute_v1beta_generated_Routers_PatchRoutePolicy_async", "title": "AcceleratorTypes patchRoutePolicy Sample", @@ -44823,6 +46043,62 @@ } } }, + { + "regionTag": "compute_v1beta_generated_Routers_UpdateNamedSet_async", + "title": "AcceleratorTypes updateNamedSet Sample", + "origin": "API_DEFINITION", + "description": " Updates or creates new Named Set", + "canonical": true, + "file": "routers.update_named_set.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 82, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateNamedSet", + "fullName": "google.cloud.compute.v1beta.Routers.UpdateNamedSet", + "async": true, + "parameters": [ + { + "name": "named_set_resource", + "type": ".google.cloud.compute.v1beta.NamedSet" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "router", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "RoutersClient", + "fullName": "google.cloud.compute.v1beta.RoutersClient" + }, + "method": { + "shortName": "UpdateNamedSet", + "fullName": "google.cloud.compute.v1beta.Routers.UpdateNamedSet", + "service": { + "shortName": "Routers", + "fullName": "google.cloud.compute.v1beta.Routers" + } + } + } + }, { "regionTag": "compute_v1beta_generated_Routers_UpdateRoutePolicy_async", "title": "AcceleratorTypes updateRoutePolicy Sample", @@ -46319,6 +47595,350 @@ } } }, + { + "regionTag": "compute_v1beta_generated_SnapshotGroups_Delete_async", + "title": "AcceleratorTypes delete Sample", + "origin": "API_DEFINITION", + "description": " Deletes the specified SnapshotGroup resource", + "canonical": true, + "file": "snapshot_groups.delete.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 72, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups.Delete", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "snapshot_group", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "SnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.SnapshotGroupsClient" + }, + "method": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups.Delete", + "service": { + "shortName": "SnapshotGroups", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_SnapshotGroups_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " returns the specified SnapshotGroup resource.", + "canonical": true, + "file": "snapshot_groups.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups.Get", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "snapshot_group", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.SnapshotGroup", + "client": { + "shortName": "SnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.SnapshotGroupsClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups.Get", + "service": { + "shortName": "SnapshotGroups", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_SnapshotGroups_GetIamPolicy_async", + "title": "AcceleratorTypes getIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", + "canonical": true, + "file": "snapshot_groups.get_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups.GetIamPolicy", + "async": true, + "parameters": [ + { + "name": "options_requested_policy_version", + "type": "TYPE_INT32" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Policy", + "client": { + "shortName": "SnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.SnapshotGroupsClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups.GetIamPolicy", + "service": { + "shortName": "SnapshotGroups", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_SnapshotGroups_Insert_async", + "title": "AcceleratorTypes insert Sample", + "origin": "API_DEFINITION", + "description": " Creates a snapshot group in the specified project using the data included in the request.", + "canonical": true, + "file": "snapshot_groups.insert.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 72, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups.Insert", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "snapshot_group_resource", + "type": ".google.cloud.compute.v1beta.SnapshotGroup" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "SnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.SnapshotGroupsClient" + }, + "method": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups.Insert", + "service": { + "shortName": "SnapshotGroups", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_SnapshotGroups_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " retrieves the list of SnapshotGroup resources contained within the specified project.", + "canonical": true, + "file": "snapshot_groups.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 140, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups.List", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.cloud.compute.v1beta.ListSnapshotGroups", + "client": { + "shortName": "SnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.SnapshotGroupsClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups.List", + "service": { + "shortName": "SnapshotGroups", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_SnapshotGroups_SetIamPolicy_async", + "title": "AcceleratorTypes setIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", + "canonical": true, + "file": "snapshot_groups.set_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups.SetIamPolicy", + "async": true, + "parameters": [ + { + "name": "global_set_policy_request_resource", + "type": ".google.cloud.compute.v1beta.GlobalSetPolicyRequest" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Policy", + "client": { + "shortName": "SnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.SnapshotGroupsClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups.SetIamPolicy", + "service": { + "shortName": "SnapshotGroups", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_SnapshotGroups_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", + "origin": "API_DEFINITION", + "description": " Returns permissions that a caller has on the specified resource.", + "canonical": true, + "file": "snapshot_groups.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups.TestIamPermissions", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "test_permissions_request_resource", + "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" + } + ], + "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", + "client": { + "shortName": "SnapshotGroupsClient", + "fullName": "google.cloud.compute.v1beta.SnapshotGroupsClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups.TestIamPermissions", + "service": { + "shortName": "SnapshotGroups", + "fullName": "google.cloud.compute.v1beta.SnapshotGroups" + } + } + } + }, { "regionTag": "compute_v1beta_generated_Snapshots_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", diff --git a/packages/google-cloud-compute/src/v1beta/disks_client.ts b/packages/google-cloud-compute/src/v1beta/disks_client.ts index 5a360d89a1d..5b9fe262f45 100644 --- a/packages/google-cloud-compute/src/v1beta/disks_client.ts +++ b/packages/google-cloud-compute/src/v1beta/disks_client.ts @@ -2191,7 +2191,7 @@ export class DisksClient { /** * Updates the specified disk with the data included in the request. * The update is performed only on selected fields included as part - * of update-mask. Only the following fields can be modified: user_license. + * of update-mask. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1beta/gapic_metadata.json b/packages/google-cloud-compute/src/v1beta/gapic_metadata.json index 2a937e75fd9..aac7d5ab9a3 100644 --- a/packages/google-cloud-compute/src/v1beta/gapic_metadata.json +++ b/packages/google-cloud-compute/src/v1beta/gapic_metadata.json @@ -2506,6 +2506,11 @@ "applyUpdatesToInstances" ] }, + "ConfigureAcceleratorTopologies": { + "methods": [ + "configureAcceleratorTopologies" + ] + }, "CreateInstances": { "methods": [ "createInstances" @@ -2666,6 +2671,11 @@ "applyUpdatesToInstances" ] }, + "ConfigureAcceleratorTopologies": { + "methods": [ + "configureAcceleratorTopologies" + ] + }, "CreateInstances": { "methods": [ "createInstances" @@ -3663,6 +3673,94 @@ } } }, + "InstantSnapshotGroups": { + "clients": { + "grpc": { + "libraryClient": "InstantSnapshotGroupsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "InstantSnapshotGroupsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } + }, "InstantSnapshots": { "clients": { "grpc": { @@ -7975,6 +8073,94 @@ } } }, + "RegionInstantSnapshotGroups": { + "clients": { + "grpc": { + "libraryClient": "RegionInstantSnapshotGroupsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "RegionInstantSnapshotGroupsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } + }, "RegionInstantSnapshots": { "clients": { "grpc": { @@ -9771,6 +9957,54 @@ } } }, + "ReservationSlots": { + "clients": { + "grpc": { + "libraryClient": "ReservationSlotsClient", + "rpcs": { + "Get": { + "methods": [ + "get" + ] + }, + "Update": { + "methods": [ + "update" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "ReservationSlotsClient", + "rpcs": { + "Get": { + "methods": [ + "get" + ] + }, + "Update": { + "methods": [ + "update" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } + }, "ReservationSubBlocks": { "clients": { "grpc": { @@ -10097,6 +10331,11 @@ "delete" ] }, + "DeleteNamedSet": { + "methods": [ + "deleteNamedSet" + ] + }, "DeleteRoutePolicy": { "methods": [ "deleteRoutePolicy" @@ -10107,6 +10346,11 @@ "get" ] }, + "GetNamedSet": { + "methods": [ + "getNamedSet" + ] + }, "GetNatIpInfo": { "methods": [ "getNatIpInfo" @@ -10132,6 +10376,11 @@ "patch" ] }, + "PatchNamedSet": { + "methods": [ + "patchNamedSet" + ] + }, "PatchRoutePolicy": { "methods": [ "patchRoutePolicy" @@ -10152,6 +10401,11 @@ "update" ] }, + "UpdateNamedSet": { + "methods": [ + "updateNamedSet" + ] + }, "UpdateRoutePolicy": { "methods": [ "updateRoutePolicy" @@ -10185,6 +10439,13 @@ "listBgpRoutesAsync" ] }, + "ListNamedSets": { + "methods": [ + "listNamedSets", + "listNamedSetsStream", + "listNamedSetsAsync" + ] + }, "ListRoutePolicies": { "methods": [ "listRoutePolicies", @@ -10202,6 +10463,11 @@ "delete" ] }, + "DeleteNamedSet": { + "methods": [ + "deleteNamedSet" + ] + }, "DeleteRoutePolicy": { "methods": [ "deleteRoutePolicy" @@ -10212,6 +10478,11 @@ "get" ] }, + "GetNamedSet": { + "methods": [ + "getNamedSet" + ] + }, "GetNatIpInfo": { "methods": [ "getNatIpInfo" @@ -10237,6 +10508,11 @@ "patch" ] }, + "PatchNamedSet": { + "methods": [ + "patchNamedSet" + ] + }, "PatchRoutePolicy": { "methods": [ "patchRoutePolicy" @@ -10257,6 +10533,11 @@ "update" ] }, + "UpdateNamedSet": { + "methods": [ + "updateNamedSet" + ] + }, "UpdateRoutePolicy": { "methods": [ "updateRoutePolicy" @@ -10290,6 +10571,13 @@ "listBgpRoutesAsync" ] }, + "ListNamedSets": { + "methods": [ + "listNamedSets", + "listNamedSetsStream", + "listNamedSetsAsync" + ] + }, "ListRoutePolicies": { "methods": [ "listRoutePolicies", @@ -10633,6 +10921,94 @@ } } }, + "SnapshotGroups": { + "clients": { + "grpc": { + "libraryClient": "SnapshotGroupsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "SnapshotGroupsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } + }, "Snapshots": { "clients": { "grpc": { diff --git a/packages/google-cloud-compute/src/v1beta/global_network_endpoint_groups_client.ts b/packages/google-cloud-compute/src/v1beta/global_network_endpoint_groups_client.ts index 4bd7d5b7ec9..5130517e2b8 100644 --- a/packages/google-cloud-compute/src/v1beta/global_network_endpoint_groups_client.ts +++ b/packages/google-cloud-compute/src/v1beta/global_network_endpoint_groups_client.ts @@ -783,6 +783,20 @@ export class GlobalNetworkEndpointGroupsClient { * Creates a network endpoint group in the specified project using the * parameters that are included in the request. * + * Note: Use the following APIs to manage network endpoint groups: + * + * - + * To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity + * NEGs): zonal + * API + * - + * To manage NEGs with regional scope (such as regional internet NEGs, + * serverless NEGs, Private Service Connect NEGs): regional + * API + * - + * To manage NEGs with global scope (such as global internet NEGs):global + * API + * * @param {Object} request * The request object that will be sent. * @param {google.cloud.compute.v1beta.NetworkEndpointGroup} request.networkEndpointGroupResource diff --git a/packages/google-cloud-compute/src/v1beta/index.ts b/packages/google-cloud-compute/src/v1beta/index.ts index d84d804673e..6259de8b95a 100644 --- a/packages/google-cloud-compute/src/v1beta/index.ts +++ b/packages/google-cloud-compute/src/v1beta/index.ts @@ -47,6 +47,7 @@ export {InstanceGroupsClient} from './instance_groups_client'; export {InstancesClient} from './instances_client'; export {InstanceSettingsServiceClient} from './instance_settings_service_client'; export {InstanceTemplatesClient} from './instance_templates_client'; +export {InstantSnapshotGroupsClient} from './instant_snapshot_groups_client'; export {InstantSnapshotsClient} from './instant_snapshots_client'; export {InterconnectAttachmentGroupsClient} from './interconnect_attachment_groups_client'; export {InterconnectAttachmentsClient} from './interconnect_attachments_client'; @@ -90,6 +91,7 @@ export {RegionInstanceGroupManagersClient} from './region_instance_group_manager export {RegionInstanceGroupsClient} from './region_instance_groups_client'; export {RegionInstancesClient} from './region_instances_client'; export {RegionInstanceTemplatesClient} from './region_instance_templates_client'; +export {RegionInstantSnapshotGroupsClient} from './region_instant_snapshot_groups_client'; export {RegionInstantSnapshotsClient} from './region_instant_snapshots_client'; export {RegionMultiMigMembersClient} from './region_multi_mig_members_client'; export {RegionMultiMigsClient} from './region_multi_migs_client'; @@ -111,6 +113,7 @@ export {RegionUrlMapsClient} from './region_url_maps_client'; export {RegionZonesClient} from './region_zones_client'; export {ReservationBlocksClient} from './reservation_blocks_client'; export {ReservationsClient} from './reservations_client'; +export {ReservationSlotsClient} from './reservation_slots_client'; export {ReservationSubBlocksClient} from './reservation_sub_blocks_client'; export {ResourcePoliciesClient} from './resource_policies_client'; export {RolloutPlansClient} from './rollout_plans_client'; @@ -119,6 +122,7 @@ export {RoutersClient} from './routers_client'; export {RoutesClient} from './routes_client'; export {SecurityPoliciesClient} from './security_policies_client'; export {ServiceAttachmentsClient} from './service_attachments_client'; +export {SnapshotGroupsClient} from './snapshot_groups_client'; export {SnapshotsClient} from './snapshots_client'; export {SnapshotSettingsServiceClient} from './snapshot_settings_service_client'; export {SslCertificatesClient} from './ssl_certificates_client'; diff --git a/packages/google-cloud-compute/src/v1beta/instance_group_managers_client.ts b/packages/google-cloud-compute/src/v1beta/instance_group_managers_client.ts index 2672bc65a45..135231f6ad0 100644 --- a/packages/google-cloud-compute/src/v1beta/instance_group_managers_client.ts +++ b/packages/google-cloud-compute/src/v1beta/instance_group_managers_client.ts @@ -231,7 +231,7 @@ export class InstanceGroupManagersClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const instanceGroupManagersStubMethods = - ['abandonInstances', 'aggregatedList', 'applyUpdatesToInstances', 'createInstances', 'delete', 'deleteInstances', 'deletePerInstanceConfigs', 'get', 'getAvailableAcceleratorTopologies', 'insert', 'list', 'listErrors', 'listManagedInstances', 'listPerInstanceConfigs', 'patch', 'patchPerInstanceConfigs', 'recreateInstances', 'resize', 'resizeAdvanced', 'resumeInstances', 'setAutoHealingPolicies', 'setInstanceTemplate', 'setTargetPools', 'startInstances', 'stopInstances', 'suspendInstances', 'testIamPermissions', 'update', 'updatePerInstanceConfigs']; + ['abandonInstances', 'aggregatedList', 'applyUpdatesToInstances', 'configureAcceleratorTopologies', 'createInstances', 'delete', 'deleteInstances', 'deletePerInstanceConfigs', 'get', 'getAvailableAcceleratorTopologies', 'insert', 'list', 'listErrors', 'listManagedInstances', 'listPerInstanceConfigs', 'patch', 'patchPerInstanceConfigs', 'recreateInstances', 'resize', 'resizeAdvanced', 'resumeInstances', 'setAutoHealingPolicies', 'setInstanceTemplate', 'setTargetPools', 'startInstances', 'stopInstances', 'suspendInstances', 'testIamPermissions', 'update', 'updatePerInstanceConfigs']; for (const methodName of instanceGroupManagersStubMethods) { const callPromise = this.instanceGroupManagersStub.then( stub => (...args: Array<{}>) => { @@ -578,6 +578,128 @@ export class InstanceGroupManagersClient { throw error; }); } +/** + * Updates the accelerator topologies configuration. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.instanceGroupManager + * The name of the managed instance group. + * It should conform to RFC1035. + * @param {google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest} request.instanceGroupManagersConfigureAcceleratorTopologiesRequestResource + * The body resource for this request + * @param {string} request.project + * Project ID for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {string} request.zone + * The name of thezone + * where the managed instance group is located. + * It should conform to RFC1035. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/instance_group_managers.configure_accelerator_topologies.js + * region_tag:compute_v1beta_generated_InstanceGroupManagers_ConfigureAcceleratorTopologies_async + */ + configureAcceleratorTopologies( + request?: protos.google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + configureAcceleratorTopologies( + request: protos.google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest|null|undefined, + {}|null|undefined>): void; + configureAcceleratorTopologies( + request: protos.google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest|null|undefined, + {}|null|undefined>): void; + configureAcceleratorTopologies( + request?: protos.google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'instance_group_manager': request.instanceGroupManager ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('configureAcceleratorTopologies request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IConfigureAcceleratorTopologiesInstanceGroupManagerRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('configureAcceleratorTopologies response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.configureAcceleratorTopologies(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } /** * Creates instances with per-instance configurations in this managed instance * group. Instances are created using the current instance template. Thecreate instances operation is marked DONE if thecreateInstances request is successful. The underlying actions diff --git a/packages/google-cloud-compute/src/v1beta/instance_group_managers_client_config.json b/packages/google-cloud-compute/src/v1beta/instance_group_managers_client_config.json index 6ac5588038e..ba4a05c7666 100644 --- a/packages/google-cloud-compute/src/v1beta/instance_group_managers_client_config.json +++ b/packages/google-cloud-compute/src/v1beta/instance_group_managers_client_config.json @@ -32,6 +32,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "ConfigureAcceleratorTopologies": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "CreateInstances": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-compute/src/v1beta/instant_snapshot_groups_client.ts b/packages/google-cloud-compute/src/v1beta/instant_snapshot_groups_client.ts new file mode 100644 index 00000000000..aa03f049db5 --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/instant_snapshot_groups_client.ts @@ -0,0 +1,1446 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type {Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, GaxCall} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +import {loggingUtils as logging, decodeAnyProtosInArray} from 'google-gax'; + +/** + * Client JSON configuration object, loaded from + * `src/v1beta/instant_snapshot_groups_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './instant_snapshot_groups_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The InstantSnapshotGroups API. + * @class + * @memberof v1beta + */ +export class InstantSnapshotGroupsClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; + private _log = logging.log('compute'); + + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + instantSnapshotGroupsStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of InstantSnapshotGroupsClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new InstantSnapshotGroupsClient({fallback: true}, gax); + * ``` + */ + constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof InstantSnapshotGroupsClient; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined; + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com'; + this._servicePath = 'compute.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; + this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + // Implicitly enable HTTP transport for the APIs that use REST as transport (e.g. Google Cloud Compute). + if (!opts) { + opts = {fallback: true}; + } else { + opts.fallback = opts.fallback ?? true; + } + const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== this._servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = (this._gaxGrpc.auth as gax.GoogleAuth); + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = this._servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === this._servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [ + `gax/${this._gaxModule.version}`, + `gapic/${version}`, + ]; + if (typeof process === 'object' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + list: + new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'items') + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.compute.v1beta.InstantSnapshotGroups', gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')}); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.instantSnapshotGroupsStub) { + return this.instantSnapshotGroupsStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1beta.InstantSnapshotGroups. + this.instantSnapshotGroupsStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1beta.InstantSnapshotGroups') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1beta.InstantSnapshotGroups, + this._opts, this._providedCustomServicePath) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const instantSnapshotGroupsStubMethods = + ['delete', 'get', 'getIamPolicy', 'insert', 'list', 'setIamPolicy', 'testIamPermissions']; + for (const methodName of instantSnapshotGroupsStubMethods) { + const callPromise = this.instantSnapshotGroupsStub.then( + stub => (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error|null|undefined) => () => { + throw err; + }); + + const descriptor = + this.descriptors.page[methodName] || + undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.instantSnapshotGroupsStub; + } + + /** + * The DNS address for this API service. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return [ + 'https://www.googleapis.com/auth/compute', + 'https://www.googleapis.com/auth/cloud-platform' + ]; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId(callback?: Callback): + Promise|void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- +/** + * deletes a Zonal InstantSnapshotGroup resource + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.instantSnapshotGroup + * Name of the InstantSnapshot resource to delete. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {string} request.zone + * The name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/instant_snapshot_groups.delete.js + * region_tag:compute_v1beta_generated_InstantSnapshotGroups_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + delete( + request: protos.google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + delete( + request: protos.google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + delete( + request?: protos.google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'instant_snapshot_group': request.instantSnapshotGroup ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('delete request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('delete response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.delete(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * returns the specified InstantSnapshotGroup resource in the specified zone. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.instantSnapshotGroup + * Name of the InstantSnapshotGroup resource to return. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.zone + * The name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.InstantSnapshotGroup|InstantSnapshotGroup}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/instant_snapshot_groups.get.js + * region_tag:compute_v1beta_generated_InstantSnapshotGroups_Get_async + */ + get( + request?: protos.google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup, + protos.google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup, + protos.google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup, + protos.google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup, + protos.google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup, + protos.google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup, + protos.google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'instant_snapshot_group': request.instantSnapshotGroup ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('get request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup, + protos.google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('get response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.get(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup, + protos.google.cloud.compute.v1beta.IGetInstantSnapshotGroupRequest|undefined, + {}|undefined + ]) => { + this._log.info('get response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.optionsRequestedPolicyVersion + * Requested IAM Policy version. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {string} request.zone + * The name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.Policy|Policy}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/instant_snapshot_groups.get_iam_policy.js + * region_tag:compute_v1beta_generated_InstantSnapshotGroups_GetIamPolicy_async + */ + getIamPolicy( + request?: protos.google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest|undefined, {}|undefined + ]>; + getIamPolicy( + request: protos.google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request: protos.google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request?: protos.google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('getIamPolicy request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('getIamPolicy response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.getIamPolicy(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyInstantSnapshotGroupRequest|undefined, + {}|undefined + ]) => { + this._log.info('getIamPolicy response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * inserts a Zonal InstantSnapshotGroup resource + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.compute.v1beta.InstantSnapshotGroup} request.instantSnapshotGroupResource + * The body resource for this request + * @param {string} request.project + * Project ID for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {string} request.sourceConsistencyGroup + * begin_interface: MixerMutationRequestBuilder + * @param {string} request.zone + * Name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/instant_snapshot_groups.insert.js + * region_tag:compute_v1beta_generated_InstantSnapshotGroups_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + insert( + request: protos.google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + insert( + request: protos.google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + insert( + request?: protos.google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('insert request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('insert response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.insert(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Sets the access control policy on the specified resource. + * Replaces any existing policy. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {string} request.zone + * The name of the zone for this request. + * @param {google.cloud.compute.v1beta.ZoneSetPolicyRequest} request.zoneSetPolicyRequestResource + * The body resource for this request + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.Policy|Policy}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/instant_snapshot_groups.set_iam_policy.js + * region_tag:compute_v1beta_generated_InstantSnapshotGroups_SetIamPolicy_async + */ + setIamPolicy( + request?: protos.google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest|undefined, {}|undefined + ]>; + setIamPolicy( + request: protos.google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request: protos.google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request?: protos.google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('setIamPolicy request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('setIamPolicy response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.setIamPolicy(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyInstantSnapshotGroupRequest|undefined, + {}|undefined + ]) => { + this._log.info('setIamPolicy response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Returns permissions that a caller has on the specified resource. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {google.cloud.compute.v1beta.TestPermissionsRequest} request.testPermissionsRequestResource + * The body resource for this request + * @param {string} request.zone + * The name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.TestPermissionsResponse|TestPermissionsResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/instant_snapshot_groups.test_iam_permissions.js + * region_tag:compute_v1beta_generated_InstantSnapshotGroups_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest|undefined, {}|undefined + ]>; + testIamPermissions( + request: protos.google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request: protos.google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('testIamPermissions request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('testIamPermissions response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.testIamPermissions(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsInstantSnapshotGroupRequest|undefined, + {}|undefined + ]) => { + this._log.info('testIamPermissions response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } + + /** + * retrieves the list of InstantSnapshotGroup resources contained within + * the specified zone. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {string} request.zone + * The name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.compute.v1beta.InstantSnapshotGroup|InstantSnapshotGroup}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + list( + request?: protos.google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup[], + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest|null, + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroups + ]>; + list( + request: protos.google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup>): void; + list( + request: protos.google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup>): void; + list( + request?: protos.google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup>): + Promise<[ + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup[], + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest|null, + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroups + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + }); + this.initialize().catch(err => {throw err}); + const wrappedCallback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup>|undefined = callback + ? (error, values, nextPageRequest, rawResponse) => { + this._log.info('list values %j', values); + callback!(error, values, nextPageRequest, rawResponse); // We verified callback above. + } + : undefined; + this._log.info('list request %j', request); + return this.innerApiCalls + .list(request, options, wrappedCallback) + ?.then(([response, input, output]: [ + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup[], + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest|null, + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroups + ]) => { + this._log.info('list values %j', response); + return [response, input, output]; + }); + } + +/** + * Equivalent to `list`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {string} request.zone + * The name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.compute.v1beta.InstantSnapshotGroup|InstantSnapshotGroup} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listStream( + request?: protos.google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest, + options?: CallOptions): + Transform{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list stream %j', request); + return this.descriptors.page.list.createStream( + this.innerApiCalls.list as GaxCall, + request, + callSettings + ); + } + +/** + * Equivalent to `list`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {string} request.zone + * The name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.compute.v1beta.InstantSnapshotGroup|InstantSnapshotGroup}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/instant_snapshot_groups.list.js + * region_tag:compute_v1beta_generated_InstantSnapshotGroups_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1beta.IListInstantSnapshotGroupsRequest, + options?: CallOptions): + AsyncIterable{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list iterate %j', request); + return this.descriptors.page.list.asyncIterate( + this.innerApiCalls['list'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.instantSnapshotGroupsStub && !this._terminated) { + return this.instantSnapshotGroupsStub.then(stub => { + this._log.info('ending gRPC channel'); + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} \ No newline at end of file diff --git a/packages/google-cloud-compute/src/v1beta/instant_snapshot_groups_client_config.json b/packages/google-cloud-compute/src/v1beta/instant_snapshot_groups_client_config.json new file mode 100644 index 00000000000..ee5731b4fc6 --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/instant_snapshot_groups_client_config.json @@ -0,0 +1,54 @@ +{ + "interfaces": { + "google.cloud.compute.v1beta.InstantSnapshotGroups": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "Delete": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Get": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetIamPolicy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Insert": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "List": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetIamPolicy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "TestIamPermissions": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1beta/instant_snapshot_groups_proto_list.json b/packages/google-cloud-compute/src/v1beta/instant_snapshot_groups_proto_list.json new file mode 100644 index 00000000000..ecbfc90443e --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/instant_snapshot_groups_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1beta/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1beta/network_endpoint_groups_client.ts b/packages/google-cloud-compute/src/v1beta/network_endpoint_groups_client.ts index 00560512983..8bbf2aa3de5 100644 --- a/packages/google-cloud-compute/src/v1beta/network_endpoint_groups_client.ts +++ b/packages/google-cloud-compute/src/v1beta/network_endpoint_groups_client.ts @@ -804,6 +804,20 @@ export class NetworkEndpointGroupsClient { * Creates a network endpoint group in the specified project using the * parameters that are included in the request. * + * Note: Use the following APIs to manage network endpoint groups: + * + * - + * To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity + * NEGs): zonal + * API + * - + * To manage NEGs with regional scope (such as regional internet NEGs, + * serverless NEGs, Private Service Connect NEGs): regional + * API + * - + * To manage NEGs with global scope (such as global internet NEGs):global + * API + * * @param {Object} request * The request object that will be sent. * @param {google.cloud.compute.v1beta.NetworkEndpointGroup} request.networkEndpointGroupResource diff --git a/packages/google-cloud-compute/src/v1beta/region_disks_client.ts b/packages/google-cloud-compute/src/v1beta/region_disks_client.ts index 25c5c35d569..c7d221907d4 100644 --- a/packages/google-cloud-compute/src/v1beta/region_disks_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_disks_client.ts @@ -2060,8 +2060,7 @@ export class RegionDisksClient { } /** * Update the specified disk with the data included in the request. Update is - * performed only on selected fields included as part of update-mask. Only the - * following fields can be modified: user_license. + * performed only on selected fields included as part of update-mask. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1beta/region_instant_snapshot_groups_client.ts b/packages/google-cloud-compute/src/v1beta/region_instant_snapshot_groups_client.ts new file mode 100644 index 00000000000..bf85d9ea71d --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/region_instant_snapshot_groups_client.ts @@ -0,0 +1,1447 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type {Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, GaxCall} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +import {loggingUtils as logging, decodeAnyProtosInArray} from 'google-gax'; + +/** + * Client JSON configuration object, loaded from + * `src/v1beta/region_instant_snapshot_groups_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './region_instant_snapshot_groups_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The RegionInstantSnapshotGroups API. + * @class + * @memberof v1beta + */ +export class RegionInstantSnapshotGroupsClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; + private _log = logging.log('compute'); + + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + regionInstantSnapshotGroupsStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of RegionInstantSnapshotGroupsClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new RegionInstantSnapshotGroupsClient({fallback: true}, gax); + * ``` + */ + constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof RegionInstantSnapshotGroupsClient; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined; + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com'; + this._servicePath = 'compute.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; + this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + // Implicitly enable HTTP transport for the APIs that use REST as transport (e.g. Google Cloud Compute). + if (!opts) { + opts = {fallback: true}; + } else { + opts.fallback = opts.fallback ?? true; + } + const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== this._servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = (this._gaxGrpc.auth as gax.GoogleAuth); + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = this._servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === this._servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [ + `gax/${this._gaxModule.version}`, + `gapic/${version}`, + ]; + if (typeof process === 'object' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + list: + new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'items') + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.compute.v1beta.RegionInstantSnapshotGroups', gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')}); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.regionInstantSnapshotGroupsStub) { + return this.regionInstantSnapshotGroupsStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1beta.RegionInstantSnapshotGroups. + this.regionInstantSnapshotGroupsStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1beta.RegionInstantSnapshotGroups') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1beta.RegionInstantSnapshotGroups, + this._opts, this._providedCustomServicePath) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const regionInstantSnapshotGroupsStubMethods = + ['delete', 'get', 'getIamPolicy', 'insert', 'list', 'setIamPolicy', 'testIamPermissions']; + for (const methodName of regionInstantSnapshotGroupsStubMethods) { + const callPromise = this.regionInstantSnapshotGroupsStub.then( + stub => (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error|null|undefined) => () => { + throw err; + }); + + const descriptor = + this.descriptors.page[methodName] || + undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.regionInstantSnapshotGroupsStub; + } + + /** + * The DNS address for this API service. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return [ + 'https://www.googleapis.com/auth/compute', + 'https://www.googleapis.com/auth/cloud-platform' + ]; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId(callback?: Callback): + Promise|void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- +/** + * deletes a Regional InstantSnapshotGroup resource + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.instantSnapshotGroup + * Name of the InstantSnapshotGroup resource to delete. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/region_instant_snapshot_groups.delete.js + * region_tag:compute_v1beta_generated_RegionInstantSnapshotGroups_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + delete( + request: protos.google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + delete( + request: protos.google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + delete( + request?: protos.google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'instant_snapshot_group': request.instantSnapshotGroup ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('delete request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('delete response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.delete(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * returns the specified InstantSnapshotGroup resource in the specified + * region. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.instantSnapshotGroup + * Name of the InstantSnapshotGroup resource to return. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.InstantSnapshotGroup|InstantSnapshotGroup}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/region_instant_snapshot_groups.get.js + * region_tag:compute_v1beta_generated_RegionInstantSnapshotGroups_Get_async + */ + get( + request?: protos.google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup, + protos.google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup, + protos.google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup, + protos.google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup, + protos.google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup, + protos.google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup, + protos.google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'instant_snapshot_group': request.instantSnapshotGroup ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('get request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup, + protos.google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('get response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.get(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup, + protos.google.cloud.compute.v1beta.IGetRegionInstantSnapshotGroupRequest|undefined, + {}|undefined + ]) => { + this._log.info('get response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.optionsRequestedPolicyVersion + * Requested IAM Policy version. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.Policy|Policy}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/region_instant_snapshot_groups.get_iam_policy.js + * region_tag:compute_v1beta_generated_RegionInstantSnapshotGroups_GetIamPolicy_async + */ + getIamPolicy( + request?: protos.google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest|undefined, {}|undefined + ]>; + getIamPolicy( + request: protos.google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request: protos.google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request?: protos.google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('getIamPolicy request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('getIamPolicy response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.getIamPolicy(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotGroupRequest|undefined, + {}|undefined + ]) => { + this._log.info('getIamPolicy response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * creates a Regional InstantSnapshotGroup resource + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.compute.v1beta.InstantSnapshotGroup} request.instantSnapshotGroupResource + * The body resource for this request + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {string} request.sourceConsistencyGroup + * begin_interface: MixerMutationRequestBuilder + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/region_instant_snapshot_groups.insert.js + * region_tag:compute_v1beta_generated_RegionInstantSnapshotGroups_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + insert( + request: protos.google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + insert( + request: protos.google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + insert( + request?: protos.google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('insert request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('insert response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.insert(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Sets the access control policy on the specified resource. + * Replaces any existing policy. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {google.cloud.compute.v1beta.RegionSetPolicyRequest} request.regionSetPolicyRequestResource + * The body resource for this request + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.Policy|Policy}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/region_instant_snapshot_groups.set_iam_policy.js + * region_tag:compute_v1beta_generated_RegionInstantSnapshotGroups_SetIamPolicy_async + */ + setIamPolicy( + request?: protos.google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest|undefined, {}|undefined + ]>; + setIamPolicy( + request: protos.google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request: protos.google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request?: protos.google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('setIamPolicy request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('setIamPolicy response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.setIamPolicy(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotGroupRequest|undefined, + {}|undefined + ]) => { + this._log.info('setIamPolicy response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Returns permissions that a caller has on the specified resource. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {google.cloud.compute.v1beta.TestPermissionsRequest} request.testPermissionsRequestResource + * The body resource for this request + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.TestPermissionsResponse|TestPermissionsResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/region_instant_snapshot_groups.test_iam_permissions.js + * region_tag:compute_v1beta_generated_RegionInstantSnapshotGroups_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest|undefined, {}|undefined + ]>; + testIamPermissions( + request: protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request: protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('testIamPermissions request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('testIamPermissions response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.testIamPermissions(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotGroupRequest|undefined, + {}|undefined + ]) => { + this._log.info('testIamPermissions response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } + + /** + * retrieves the list of InstantSnapshotGroup resources contained within + * the specified region. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.compute.v1beta.InstantSnapshotGroup|InstantSnapshotGroup}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + list( + request?: protos.google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup[], + protos.google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest|null, + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroups + ]>; + list( + request: protos.google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup>): void; + list( + request: protos.google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup>): void; + list( + request?: protos.google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup>): + Promise<[ + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup[], + protos.google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest|null, + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroups + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + this.initialize().catch(err => {throw err}); + const wrappedCallback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup>|undefined = callback + ? (error, values, nextPageRequest, rawResponse) => { + this._log.info('list values %j', values); + callback!(error, values, nextPageRequest, rawResponse); // We verified callback above. + } + : undefined; + this._log.info('list request %j', request); + return this.innerApiCalls + .list(request, options, wrappedCallback) + ?.then(([response, input, output]: [ + protos.google.cloud.compute.v1beta.IInstantSnapshotGroup[], + protos.google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest|null, + protos.google.cloud.compute.v1beta.IListInstantSnapshotGroups + ]) => { + this._log.info('list values %j', response); + return [response, input, output]; + }); + } + +/** + * Equivalent to `list`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.compute.v1beta.InstantSnapshotGroup|InstantSnapshotGroup} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listStream( + request?: protos.google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest, + options?: CallOptions): + Transform{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list stream %j', request); + return this.descriptors.page.list.createStream( + this.innerApiCalls.list as GaxCall, + request, + callSettings + ); + } + +/** + * Equivalent to `list`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.compute.v1beta.InstantSnapshotGroup|InstantSnapshotGroup}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/region_instant_snapshot_groups.list.js + * region_tag:compute_v1beta_generated_RegionInstantSnapshotGroups_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1beta.IListRegionInstantSnapshotGroupsRequest, + options?: CallOptions): + AsyncIterable{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list iterate %j', request); + return this.descriptors.page.list.asyncIterate( + this.innerApiCalls['list'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.regionInstantSnapshotGroupsStub && !this._terminated) { + return this.regionInstantSnapshotGroupsStub.then(stub => { + this._log.info('ending gRPC channel'); + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} \ No newline at end of file diff --git a/packages/google-cloud-compute/src/v1beta/region_instant_snapshot_groups_client_config.json b/packages/google-cloud-compute/src/v1beta/region_instant_snapshot_groups_client_config.json new file mode 100644 index 00000000000..4cb576c1146 --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/region_instant_snapshot_groups_client_config.json @@ -0,0 +1,54 @@ +{ + "interfaces": { + "google.cloud.compute.v1beta.RegionInstantSnapshotGroups": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "Delete": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Get": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetIamPolicy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Insert": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "List": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetIamPolicy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "TestIamPermissions": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1beta/region_instant_snapshot_groups_proto_list.json b/packages/google-cloud-compute/src/v1beta/region_instant_snapshot_groups_proto_list.json new file mode 100644 index 00000000000..ecbfc90443e --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/region_instant_snapshot_groups_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1beta/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1beta/region_network_endpoint_groups_client.ts b/packages/google-cloud-compute/src/v1beta/region_network_endpoint_groups_client.ts index c3ce5629d5f..e240f3349c9 100644 --- a/packages/google-cloud-compute/src/v1beta/region_network_endpoint_groups_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_network_endpoint_groups_client.ts @@ -802,6 +802,20 @@ export class RegionNetworkEndpointGroupsClient { * Creates a network endpoint group in the specified project using the * parameters that are included in the request. * + * Note: Use the following APIs to manage network endpoint groups: + * + * - + * To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity + * NEGs): zonal + * API + * - + * To manage NEGs with regional scope (such as regional internet NEGs, + * serverless NEGs, Private Service Connect NEGs): regional + * API + * - + * To manage NEGs with global scope (such as global internet NEGs):global + * API + * * @param {Object} request * The request object that will be sent. * @param {google.cloud.compute.v1beta.NetworkEndpointGroup} request.networkEndpointGroupResource diff --git a/packages/google-cloud-compute/src/v1beta/reservation_slots_client.ts b/packages/google-cloud-compute/src/v1beta/reservation_slots_client.ts new file mode 100644 index 00000000000..5b9d0c212b0 --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/reservation_slots_client.ts @@ -0,0 +1,1028 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type {Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, GaxCall} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +import {loggingUtils as logging, decodeAnyProtosInArray} from 'google-gax'; + +/** + * Client JSON configuration object, loaded from + * `src/v1beta/reservation_slots_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './reservation_slots_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The ReservationSlots API. + * @class + * @memberof v1beta + */ +export class ReservationSlotsClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; + private _log = logging.log('compute'); + + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + reservationSlotsStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of ReservationSlotsClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new ReservationSlotsClient({fallback: true}, gax); + * ``` + */ + constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof ReservationSlotsClient; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined; + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com'; + this._servicePath = 'compute.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; + this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + // Implicitly enable HTTP transport for the APIs that use REST as transport (e.g. Google Cloud Compute). + if (!opts) { + opts = {fallback: true}; + } else { + opts.fallback = opts.fallback ?? true; + } + const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== this._servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = (this._gaxGrpc.auth as gax.GoogleAuth); + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = this._servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === this._servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [ + `gax/${this._gaxModule.version}`, + `gapic/${version}`, + ]; + if (typeof process === 'object' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + list: + new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'items') + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.compute.v1beta.ReservationSlots', gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')}); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.reservationSlotsStub) { + return this.reservationSlotsStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1beta.ReservationSlots. + this.reservationSlotsStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1beta.ReservationSlots') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1beta.ReservationSlots, + this._opts, this._providedCustomServicePath) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const reservationSlotsStubMethods = + ['get', 'list', 'update']; + for (const methodName of reservationSlotsStubMethods) { + const callPromise = this.reservationSlotsStub.then( + stub => (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error|null|undefined) => () => { + throw err; + }); + + const descriptor = + this.descriptors.page[methodName] || + undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.reservationSlotsStub; + } + + /** + * The DNS address for this API service. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return [ + 'https://www.googleapis.com/auth/compute', + 'https://www.googleapis.com/auth/cloud-platform' + ]; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId(callback?: Callback): + Promise|void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- +/** + * Retrieves information about the specified reservation slot. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parentName + * The name of the parent reservation and parent block, formatted as + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + * @param {string} request.project + * The project ID for this request. + * @param {string} request.reservationSlot + * The name of the reservation slot, formatted as RFC1035 or a resource ID + * number. + * @param {string} request.zone + * The name of the zone for this request, formatted as RFC1035. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.ReservationSlotsGetResponse|ReservationSlotsGetResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/reservation_slots.get.js + * region_tag:compute_v1beta_generated_ReservationSlots_Get_async + */ + get( + request?: protos.google.cloud.compute.v1beta.IGetReservationSlotRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IReservationSlotsGetResponse, + protos.google.cloud.compute.v1beta.IGetReservationSlotRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1beta.IGetReservationSlotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IReservationSlotsGetResponse, + protos.google.cloud.compute.v1beta.IGetReservationSlotRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1beta.IGetReservationSlotRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IReservationSlotsGetResponse, + protos.google.cloud.compute.v1beta.IGetReservationSlotRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1beta.IGetReservationSlotRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IReservationSlotsGetResponse, + protos.google.cloud.compute.v1beta.IGetReservationSlotRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IReservationSlotsGetResponse, + protos.google.cloud.compute.v1beta.IGetReservationSlotRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IReservationSlotsGetResponse, + protos.google.cloud.compute.v1beta.IGetReservationSlotRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'parent_name': request.parentName ?? '', + 'reservation_slot': request.reservationSlot ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('get request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IReservationSlotsGetResponse, + protos.google.cloud.compute.v1beta.IGetReservationSlotRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('get response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.get(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IReservationSlotsGetResponse, + protos.google.cloud.compute.v1beta.IGetReservationSlotRequest|undefined, + {}|undefined + ]) => { + this._log.info('get response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Update a reservation slot in the specified sub-block. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parentName + * The name of the sub-block resource. + * @param {string} request.project + * The project ID for this request. + * @param {string} request.reservationSlot + * The name of the slot resource. + * @param {google.cloud.compute.v1beta.ReservationSlot} request.reservationSlotResource + * The body resource for this request + * @param {string} request.updateMask + * The fields to be updated as part of this request. + * @param {string} request.zone + * The name of the zone for this request, formatted as RFC1035. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/reservation_slots.update.js + * region_tag:compute_v1beta_generated_ReservationSlots_Update_async + */ + update( + request?: protos.google.cloud.compute.v1beta.IUpdateReservationSlotRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + update( + request: protos.google.cloud.compute.v1beta.IUpdateReservationSlotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateReservationSlotRequest|null|undefined, + {}|null|undefined>): void; + update( + request: protos.google.cloud.compute.v1beta.IUpdateReservationSlotRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateReservationSlotRequest|null|undefined, + {}|null|undefined>): void; + update( + request?: protos.google.cloud.compute.v1beta.IUpdateReservationSlotRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateReservationSlotRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateReservationSlotRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'parent_name': request.parentName ?? '', + 'reservation_slot': request.reservationSlot ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('update request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateReservationSlotRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('update response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.update(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } + + /** + * Retrieves a list of reservation slots under a single reservation. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.parentName + * The name of the parent reservation and parent block, formatted as + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + * @param {string} request.project + * The project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {string} request.zone + * The name of the zone for this request, formatted as RFC1035. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.compute.v1beta.ReservationSlot|ReservationSlot}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + list( + request?: protos.google.cloud.compute.v1beta.IListReservationSlotsRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IReservationSlot[], + protos.google.cloud.compute.v1beta.IListReservationSlotsRequest|null, + protos.google.cloud.compute.v1beta.IReservationSlotsListResponse + ]>; + list( + request: protos.google.cloud.compute.v1beta.IListReservationSlotsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListReservationSlotsRequest, + protos.google.cloud.compute.v1beta.IReservationSlotsListResponse|null|undefined, + protos.google.cloud.compute.v1beta.IReservationSlot>): void; + list( + request: protos.google.cloud.compute.v1beta.IListReservationSlotsRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListReservationSlotsRequest, + protos.google.cloud.compute.v1beta.IReservationSlotsListResponse|null|undefined, + protos.google.cloud.compute.v1beta.IReservationSlot>): void; + list( + request?: protos.google.cloud.compute.v1beta.IListReservationSlotsRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1beta.IListReservationSlotsRequest, + protos.google.cloud.compute.v1beta.IReservationSlotsListResponse|null|undefined, + protos.google.cloud.compute.v1beta.IReservationSlot>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1beta.IListReservationSlotsRequest, + protos.google.cloud.compute.v1beta.IReservationSlotsListResponse|null|undefined, + protos.google.cloud.compute.v1beta.IReservationSlot>): + Promise<[ + protos.google.cloud.compute.v1beta.IReservationSlot[], + protos.google.cloud.compute.v1beta.IListReservationSlotsRequest|null, + protos.google.cloud.compute.v1beta.IReservationSlotsListResponse + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'parent_name': request.parentName ?? '', + }); + this.initialize().catch(err => {throw err}); + const wrappedCallback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListReservationSlotsRequest, + protos.google.cloud.compute.v1beta.IReservationSlotsListResponse|null|undefined, + protos.google.cloud.compute.v1beta.IReservationSlot>|undefined = callback + ? (error, values, nextPageRequest, rawResponse) => { + this._log.info('list values %j', values); + callback!(error, values, nextPageRequest, rawResponse); // We verified callback above. + } + : undefined; + this._log.info('list request %j', request); + return this.innerApiCalls + .list(request, options, wrappedCallback) + ?.then(([response, input, output]: [ + protos.google.cloud.compute.v1beta.IReservationSlot[], + protos.google.cloud.compute.v1beta.IListReservationSlotsRequest|null, + protos.google.cloud.compute.v1beta.IReservationSlotsListResponse + ]) => { + this._log.info('list values %j', response); + return [response, input, output]; + }); + } + +/** + * Equivalent to `list`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.parentName + * The name of the parent reservation and parent block, formatted as + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + * @param {string} request.project + * The project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {string} request.zone + * The name of the zone for this request, formatted as RFC1035. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.compute.v1beta.ReservationSlot|ReservationSlot} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listStream( + request?: protos.google.cloud.compute.v1beta.IListReservationSlotsRequest, + options?: CallOptions): + Transform{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'parent_name': request.parentName ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list stream %j', request); + return this.descriptors.page.list.createStream( + this.innerApiCalls.list as GaxCall, + request, + callSettings + ); + } + +/** + * Equivalent to `list`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.parentName + * The name of the parent reservation and parent block, formatted as + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + * @param {string} request.project + * The project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {string} request.zone + * The name of the zone for this request, formatted as RFC1035. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.compute.v1beta.ReservationSlot|ReservationSlot}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/reservation_slots.list.js + * region_tag:compute_v1beta_generated_ReservationSlots_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1beta.IListReservationSlotsRequest, + options?: CallOptions): + AsyncIterable{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'parent_name': request.parentName ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list iterate %j', request); + return this.descriptors.page.list.asyncIterate( + this.innerApiCalls['list'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.reservationSlotsStub && !this._terminated) { + return this.reservationSlotsStub.then(stub => { + this._log.info('ending gRPC channel'); + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} \ No newline at end of file diff --git a/packages/google-cloud-compute/src/v1beta/reservation_slots_client_config.json b/packages/google-cloud-compute/src/v1beta/reservation_slots_client_config.json new file mode 100644 index 00000000000..a7abd5c1bc4 --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/reservation_slots_client_config.json @@ -0,0 +1,38 @@ +{ + "interfaces": { + "google.cloud.compute.v1beta.ReservationSlots": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "Get": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "List": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Update": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1beta/reservation_slots_proto_list.json b/packages/google-cloud-compute/src/v1beta/reservation_slots_proto_list.json new file mode 100644 index 00000000000..ecbfc90443e --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/reservation_slots_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1beta/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1beta/routers_client.ts b/packages/google-cloud-compute/src/v1beta/routers_client.ts index 5f46ab04a9b..886638d2a2e 100644 --- a/packages/google-cloud-compute/src/v1beta/routers_client.ts +++ b/packages/google-cloud-compute/src/v1beta/routers_client.ts @@ -184,6 +184,8 @@ export class RoutersClient { new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'items'), listBgpRoutes: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'result'), + listNamedSets: + new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'result'), listRoutePolicies: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'result') }; @@ -231,7 +233,7 @@ export class RoutersClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const routersStubMethods = - ['aggregatedList', 'delete', 'deleteRoutePolicy', 'get', 'getNatIpInfo', 'getNatMappingInfo', 'getRoutePolicy', 'getRouterStatus', 'insert', 'list', 'listBgpRoutes', 'listRoutePolicies', 'patch', 'patchRoutePolicy', 'preview', 'testIamPermissions', 'update', 'updateRoutePolicy']; + ['aggregatedList', 'delete', 'deleteNamedSet', 'deleteRoutePolicy', 'get', 'getNamedSet', 'getNatIpInfo', 'getNatMappingInfo', 'getRoutePolicy', 'getRouterStatus', 'insert', 'list', 'listBgpRoutes', 'listNamedSets', 'listRoutePolicies', 'patch', 'patchNamedSet', 'patchRoutePolicy', 'preview', 'testIamPermissions', 'update', 'updateNamedSet', 'updateRoutePolicy']; for (const methodName of routersStubMethods) { const callPromise = this.routersStub.then( stub => (...args: Array<{}>) => { @@ -453,6 +455,126 @@ export class RoutersClient { throw error; }); } +/** + * Deletes Named Set + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.namedSet + * The Named Set name for this request. Name must conform to RFC1035 + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {string} request.router + * Name of the Router resource where Named Set is defined. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/routers.delete_named_set.js + * region_tag:compute_v1beta_generated_Routers_DeleteNamedSet_async + */ + deleteNamedSet( + request?: protos.google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + deleteNamedSet( + request: protos.google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest|null|undefined, + {}|null|undefined>): void; + deleteNamedSet( + request: protos.google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest|null|undefined, + {}|null|undefined>): void; + deleteNamedSet( + request?: protos.google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'router': request.router ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('deleteNamedSet request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteNamedSetRouterRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('deleteNamedSet response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.deleteNamedSet(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } /** * Deletes Route Policy * @@ -673,6 +795,109 @@ export class RoutersClient { throw error; }); } +/** + * Returns specified Named Set + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.namedSet + * The Named Set name for this request. Name must conform to RFC1035 + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region for this request. + * @param {string} request.router + * Name of the Router resource to query for the named set. The name should + * conform to RFC1035. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.RoutersGetNamedSetResponse|RoutersGetNamedSetResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/routers.get_named_set.js + * region_tag:compute_v1beta_generated_Routers_GetNamedSet_async + */ + getNamedSet( + request?: protos.google.cloud.compute.v1beta.IGetNamedSetRouterRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IRoutersGetNamedSetResponse, + protos.google.cloud.compute.v1beta.IGetNamedSetRouterRequest|undefined, {}|undefined + ]>; + getNamedSet( + request: protos.google.cloud.compute.v1beta.IGetNamedSetRouterRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IRoutersGetNamedSetResponse, + protos.google.cloud.compute.v1beta.IGetNamedSetRouterRequest|null|undefined, + {}|null|undefined>): void; + getNamedSet( + request: protos.google.cloud.compute.v1beta.IGetNamedSetRouterRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IRoutersGetNamedSetResponse, + protos.google.cloud.compute.v1beta.IGetNamedSetRouterRequest|null|undefined, + {}|null|undefined>): void; + getNamedSet( + request?: protos.google.cloud.compute.v1beta.IGetNamedSetRouterRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IRoutersGetNamedSetResponse, + protos.google.cloud.compute.v1beta.IGetNamedSetRouterRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IRoutersGetNamedSetResponse, + protos.google.cloud.compute.v1beta.IGetNamedSetRouterRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IRoutersGetNamedSetResponse, + protos.google.cloud.compute.v1beta.IGetNamedSetRouterRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'router': request.router ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('getNamedSet request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IRoutersGetNamedSetResponse, + protos.google.cloud.compute.v1beta.IGetNamedSetRouterRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('getNamedSet response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.getNamedSet(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IRoutersGetNamedSetResponse, + protos.google.cloud.compute.v1beta.IGetNamedSetRouterRequest|undefined, + {}|undefined + ]) => { + this._log.info('getNamedSet response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } /** * Retrieves runtime NAT IP information. * @@ -1223,10 +1448,12 @@ export class RoutersClient { }); } /** - * Patches Route Policy + * Patches Named Set * * @param {Object} request * The request object that will be sent. + * @param {google.cloud.compute.v1beta.NamedSet} request.namedSetResource + * The body resource for this request * @param {string} request.project * Project ID for this request. * @param {string} request.region @@ -1245,10 +1472,8 @@ export class RoutersClient { * The request ID must be * a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). - * @param {google.cloud.compute.v1beta.RoutePolicy} request.routePolicyResource - * The body resource for this request * @param {string} request.router - * Name of the Router resource where Route Policy is defined. + * Name of the Router resource where Named Set is defined. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1260,38 +1485,38 @@ export class RoutersClient { * stable it is still a work-in-progress and under active development, * and might get backwards-incompatible changes at any time. * `.promise()` is not supported yet. - * @example include:samples/generated/v1beta/routers.patch_route_policy.js - * region_tag:compute_v1beta_generated_Routers_PatchRoutePolicy_async + * @example include:samples/generated/v1beta/routers.patch_named_set.js + * region_tag:compute_v1beta_generated_Routers_PatchNamedSet_async */ - patchRoutePolicy( - request?: protos.google.cloud.compute.v1beta.IPatchRoutePolicyRouterRequest, + patchNamedSet( + request?: protos.google.cloud.compute.v1beta.IPatchNamedSetRouterRequest, options?: CallOptions): Promise<[ LROperation, protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined ]>; - patchRoutePolicy( - request: protos.google.cloud.compute.v1beta.IPatchRoutePolicyRouterRequest, + patchNamedSet( + request: protos.google.cloud.compute.v1beta.IPatchNamedSetRouterRequest, options: CallOptions, callback: Callback< protos.google.cloud.compute.v1beta.IOperation, - protos.google.cloud.compute.v1beta.IPatchRoutePolicyRouterRequest|null|undefined, + protos.google.cloud.compute.v1beta.IPatchNamedSetRouterRequest|null|undefined, {}|null|undefined>): void; - patchRoutePolicy( - request: protos.google.cloud.compute.v1beta.IPatchRoutePolicyRouterRequest, + patchNamedSet( + request: protos.google.cloud.compute.v1beta.IPatchNamedSetRouterRequest, callback: Callback< protos.google.cloud.compute.v1beta.IOperation, - protos.google.cloud.compute.v1beta.IPatchRoutePolicyRouterRequest|null|undefined, + protos.google.cloud.compute.v1beta.IPatchNamedSetRouterRequest|null|undefined, {}|null|undefined>): void; - patchRoutePolicy( - request?: protos.google.cloud.compute.v1beta.IPatchRoutePolicyRouterRequest, + patchNamedSet( + request?: protos.google.cloud.compute.v1beta.IPatchNamedSetRouterRequest, optionsOrCallback?: CallOptions|Callback< protos.google.cloud.compute.v1beta.IOperation, - protos.google.cloud.compute.v1beta.IPatchRoutePolicyRouterRequest|null|undefined, + protos.google.cloud.compute.v1beta.IPatchNamedSetRouterRequest|null|undefined, {}|null|undefined>, callback?: Callback< protos.google.cloud.compute.v1beta.IOperation, - protos.google.cloud.compute.v1beta.IPatchRoutePolicyRouterRequest|null|undefined, + protos.google.cloud.compute.v1beta.IPatchNamedSetRouterRequest|null|undefined, {}|null|undefined>): Promise<[ LROperation, @@ -1317,17 +1542,17 @@ export class RoutersClient { 'router': request.router ?? '', }); this.initialize().catch(err => {throw err}); - this._log.info('patchRoutePolicy request %j', request); + this._log.info('patchNamedSet request %j', request); const wrappedCallback: Callback< protos.google.cloud.compute.v1beta.IOperation, - protos.google.cloud.compute.v1beta.IPatchRoutePolicyRouterRequest|null|undefined, + protos.google.cloud.compute.v1beta.IPatchNamedSetRouterRequest|null|undefined, {}|null|undefined>|undefined = callback ? (error, response, nextRequest, rawResponse) => { - this._log.info('patchRoutePolicy response %j', rawResponse); + this._log.info('patchNamedSet response %j', rawResponse); callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. } : undefined; - return this.innerApiCalls.patchRoutePolicy(request, options, wrappedCallback) + return this.innerApiCalls.patchNamedSet(request, options, wrappedCallback) ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { return [ { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, @@ -1343,8 +1568,7 @@ export class RoutersClient { }); } /** - * Preview fields auto-generated during router create andupdate operations. - * Calling this method does NOT create or update the router. + * Patches Route Policy * * @param {Object} request * The request object that will be sent. @@ -1352,44 +1576,165 @@ export class RoutersClient { * Project ID for this request. * @param {string} request.region * Name of the region for this request. - * @param {string} request.router - * Name of the Router resource to query. - * @param {google.cloud.compute.v1beta.Router} request.routerResource + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {google.cloud.compute.v1beta.RoutePolicy} request.routePolicyResource * The body resource for this request + * @param {string} request.router + * Name of the Router resource where Route Policy is defined. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.RoutersPreviewResponse|RoutersPreviewResponse}. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. - * @example include:samples/generated/v1beta/routers.preview.js - * region_tag:compute_v1beta_generated_Routers_Preview_async + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/routers.patch_route_policy.js + * region_tag:compute_v1beta_generated_Routers_PatchRoutePolicy_async */ - preview( - request?: protos.google.cloud.compute.v1beta.IPreviewRouterRequest, + patchRoutePolicy( + request?: protos.google.cloud.compute.v1beta.IPatchRoutePolicyRouterRequest, options?: CallOptions): Promise<[ - protos.google.cloud.compute.v1beta.IRoutersPreviewResponse, - protos.google.cloud.compute.v1beta.IPreviewRouterRequest|undefined, {}|undefined + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined ]>; - preview( - request: protos.google.cloud.compute.v1beta.IPreviewRouterRequest, + patchRoutePolicy( + request: protos.google.cloud.compute.v1beta.IPatchRoutePolicyRouterRequest, options: CallOptions, callback: Callback< - protos.google.cloud.compute.v1beta.IRoutersPreviewResponse, - protos.google.cloud.compute.v1beta.IPreviewRouterRequest|null|undefined, + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRoutePolicyRouterRequest|null|undefined, {}|null|undefined>): void; - preview( - request: protos.google.cloud.compute.v1beta.IPreviewRouterRequest, + patchRoutePolicy( + request: protos.google.cloud.compute.v1beta.IPatchRoutePolicyRouterRequest, callback: Callback< - protos.google.cloud.compute.v1beta.IRoutersPreviewResponse, - protos.google.cloud.compute.v1beta.IPreviewRouterRequest|null|undefined, + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRoutePolicyRouterRequest|null|undefined, {}|null|undefined>): void; - preview( - request?: protos.google.cloud.compute.v1beta.IPreviewRouterRequest, + patchRoutePolicy( + request?: protos.google.cloud.compute.v1beta.IPatchRoutePolicyRouterRequest, optionsOrCallback?: CallOptions|Callback< - protos.google.cloud.compute.v1beta.IRoutersPreviewResponse, - protos.google.cloud.compute.v1beta.IPreviewRouterRequest|null|undefined, + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRoutePolicyRouterRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRoutePolicyRouterRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'router': request.router ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('patchRoutePolicy request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRoutePolicyRouterRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('patchRoutePolicy response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.patchRoutePolicy(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Preview fields auto-generated during router create andupdate operations. + * Calling this method does NOT create or update the router. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region for this request. + * @param {string} request.router + * Name of the Router resource to query. + * @param {google.cloud.compute.v1beta.Router} request.routerResource + * The body resource for this request + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.RoutersPreviewResponse|RoutersPreviewResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/routers.preview.js + * region_tag:compute_v1beta_generated_Routers_Preview_async + */ + preview( + request?: protos.google.cloud.compute.v1beta.IPreviewRouterRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IRoutersPreviewResponse, + protos.google.cloud.compute.v1beta.IPreviewRouterRequest|undefined, {}|undefined + ]>; + preview( + request: protos.google.cloud.compute.v1beta.IPreviewRouterRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IRoutersPreviewResponse, + protos.google.cloud.compute.v1beta.IPreviewRouterRequest|null|undefined, + {}|null|undefined>): void; + preview( + request: protos.google.cloud.compute.v1beta.IPreviewRouterRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IRoutersPreviewResponse, + protos.google.cloud.compute.v1beta.IPreviewRouterRequest|null|undefined, + {}|null|undefined>): void; + preview( + request?: protos.google.cloud.compute.v1beta.IPreviewRouterRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IRoutersPreviewResponse, + protos.google.cloud.compute.v1beta.IPreviewRouterRequest|null|undefined, {}|null|undefined>, callback?: Callback< protos.google.cloud.compute.v1beta.IRoutersPreviewResponse, @@ -1670,6 +2015,126 @@ export class RoutersClient { throw error; }); } +/** + * Updates or creates new Named Set + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.compute.v1beta.NamedSet} request.namedSetResource + * The body resource for this request + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {string} request.router + * Name of the Router resource where Named Set is defined. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/routers.update_named_set.js + * region_tag:compute_v1beta_generated_Routers_UpdateNamedSet_async + */ + updateNamedSet( + request?: protos.google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + updateNamedSet( + request: protos.google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest|null|undefined, + {}|null|undefined>): void; + updateNamedSet( + request: protos.google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest|null|undefined, + {}|null|undefined>): void; + updateNamedSet( + request?: protos.google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'router': request.router ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('updateNamedSet request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateNamedSetRouterRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('updateNamedSet response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.updateNamedSet(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } /** * Updates or creates new Route Policy * @@ -3375,6 +3840,471 @@ export class RoutersClient { ) as AsyncIterable; } /** + * Retrieves a list of router named set subresources available to the + * specified project. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {string} request.router + * Name or id of the resource for this request. + * Name should conform to RFC1035. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.compute.v1beta.NamedSet|NamedSet}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listNamedSetsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listNamedSets( + request?: protos.google.cloud.compute.v1beta.IListNamedSetsRoutersRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.INamedSet[], + protos.google.cloud.compute.v1beta.IListNamedSetsRoutersRequest|null, + protos.google.cloud.compute.v1beta.IRoutersListNamedSets + ]>; + listNamedSets( + request: protos.google.cloud.compute.v1beta.IListNamedSetsRoutersRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListNamedSetsRoutersRequest, + protos.google.cloud.compute.v1beta.IRoutersListNamedSets|null|undefined, + protos.google.cloud.compute.v1beta.INamedSet>): void; + listNamedSets( + request: protos.google.cloud.compute.v1beta.IListNamedSetsRoutersRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListNamedSetsRoutersRequest, + protos.google.cloud.compute.v1beta.IRoutersListNamedSets|null|undefined, + protos.google.cloud.compute.v1beta.INamedSet>): void; + listNamedSets( + request?: protos.google.cloud.compute.v1beta.IListNamedSetsRoutersRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1beta.IListNamedSetsRoutersRequest, + protos.google.cloud.compute.v1beta.IRoutersListNamedSets|null|undefined, + protos.google.cloud.compute.v1beta.INamedSet>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1beta.IListNamedSetsRoutersRequest, + protos.google.cloud.compute.v1beta.IRoutersListNamedSets|null|undefined, + protos.google.cloud.compute.v1beta.INamedSet>): + Promise<[ + protos.google.cloud.compute.v1beta.INamedSet[], + protos.google.cloud.compute.v1beta.IListNamedSetsRoutersRequest|null, + protos.google.cloud.compute.v1beta.IRoutersListNamedSets + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'router': request.router ?? '', + }); + this.initialize().catch(err => {throw err}); + const wrappedCallback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListNamedSetsRoutersRequest, + protos.google.cloud.compute.v1beta.IRoutersListNamedSets|null|undefined, + protos.google.cloud.compute.v1beta.INamedSet>|undefined = callback + ? (error, values, nextPageRequest, rawResponse) => { + this._log.info('listNamedSets values %j', values); + callback!(error, values, nextPageRequest, rawResponse); // We verified callback above. + } + : undefined; + this._log.info('listNamedSets request %j', request); + return this.innerApiCalls + .listNamedSets(request, options, wrappedCallback) + ?.then(([response, input, output]: [ + protos.google.cloud.compute.v1beta.INamedSet[], + protos.google.cloud.compute.v1beta.IListNamedSetsRoutersRequest|null, + protos.google.cloud.compute.v1beta.IRoutersListNamedSets + ]) => { + this._log.info('listNamedSets values %j', response); + return [response, input, output]; + }); + } + +/** + * Equivalent to `listNamedSets`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {string} request.router + * Name or id of the resource for this request. + * Name should conform to RFC1035. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.compute.v1beta.NamedSet|NamedSet} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listNamedSetsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listNamedSetsStream( + request?: protos.google.cloud.compute.v1beta.IListNamedSetsRoutersRequest, + options?: CallOptions): + Transform{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'router': request.router ?? '', + }); + const defaultCallSettings = this._defaults['listNamedSets']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('listNamedSets stream %j', request); + return this.descriptors.page.listNamedSets.createStream( + this.innerApiCalls.listNamedSets as GaxCall, + request, + callSettings + ); + } + +/** + * Equivalent to `listNamedSets`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {string} request.router + * Name or id of the resource for this request. + * Name should conform to RFC1035. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.compute.v1beta.NamedSet|NamedSet}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/routers.list_named_sets.js + * region_tag:compute_v1beta_generated_Routers_ListNamedSets_async + */ + listNamedSetsAsync( + request?: protos.google.cloud.compute.v1beta.IListNamedSetsRoutersRequest, + options?: CallOptions): + AsyncIterable{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'router': request.router ?? '', + }); + const defaultCallSettings = this._defaults['listNamedSets']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('listNamedSets iterate %j', request); + return this.descriptors.page.listNamedSets.asyncIterate( + this.innerApiCalls['listNamedSets'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** * Retrieves a list of router route policy subresources available to the * specified project. * diff --git a/packages/google-cloud-compute/src/v1beta/routers_client_config.json b/packages/google-cloud-compute/src/v1beta/routers_client_config.json index 3ac157122a2..b36b83ccdef 100644 --- a/packages/google-cloud-compute/src/v1beta/routers_client_config.json +++ b/packages/google-cloud-compute/src/v1beta/routers_client_config.json @@ -28,6 +28,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "DeleteNamedSet": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "DeleteRoutePolicy": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" @@ -36,6 +40,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "GetNamedSet": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "GetNatIpInfo": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" @@ -64,6 +72,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "ListNamedSets": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "ListRoutePolicies": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" @@ -72,6 +84,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "PatchNamedSet": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "PatchRoutePolicy": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" @@ -88,6 +104,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "UpdateNamedSet": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "UpdateRoutePolicy": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-compute/src/v1beta/snapshot_groups_client.ts b/packages/google-cloud-compute/src/v1beta/snapshot_groups_client.ts new file mode 100644 index 00000000000..49e556b13b7 --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/snapshot_groups_client.ts @@ -0,0 +1,1418 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type {Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, GaxCall} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +import {loggingUtils as logging, decodeAnyProtosInArray} from 'google-gax'; + +/** + * Client JSON configuration object, loaded from + * `src/v1beta/snapshot_groups_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './snapshot_groups_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The SnapshotGroups API. + * @class + * @memberof v1beta + */ +export class SnapshotGroupsClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; + private _log = logging.log('compute'); + + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + snapshotGroupsStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of SnapshotGroupsClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new SnapshotGroupsClient({fallback: true}, gax); + * ``` + */ + constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof SnapshotGroupsClient; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined; + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com'; + this._servicePath = 'compute.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; + this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + // Implicitly enable HTTP transport for the APIs that use REST as transport (e.g. Google Cloud Compute). + if (!opts) { + opts = {fallback: true}; + } else { + opts.fallback = opts.fallback ?? true; + } + const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== this._servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = (this._gaxGrpc.auth as gax.GoogleAuth); + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = this._servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === this._servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [ + `gax/${this._gaxModule.version}`, + `gapic/${version}`, + ]; + if (typeof process === 'object' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + list: + new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'items') + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.compute.v1beta.SnapshotGroups', gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')}); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.snapshotGroupsStub) { + return this.snapshotGroupsStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1beta.SnapshotGroups. + this.snapshotGroupsStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1beta.SnapshotGroups') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1beta.SnapshotGroups, + this._opts, this._providedCustomServicePath) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const snapshotGroupsStubMethods = + ['delete', 'get', 'getIamPolicy', 'insert', 'list', 'setIamPolicy', 'testIamPermissions']; + for (const methodName of snapshotGroupsStubMethods) { + const callPromise = this.snapshotGroupsStub.then( + stub => (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error|null|undefined) => () => { + throw err; + }); + + const descriptor = + this.descriptors.page[methodName] || + undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.snapshotGroupsStub; + } + + /** + * The DNS address for this API service. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return [ + 'https://www.googleapis.com/auth/compute', + 'https://www.googleapis.com/auth/cloud-platform' + ]; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId(callback?: Callback): + Promise|void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- +/** + * Deletes the specified SnapshotGroup resource + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {string} request.snapshotGroup + * Name of the SnapshotGroup resource to delete. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/snapshot_groups.delete.js + * region_tag:compute_v1beta_generated_SnapshotGroups_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + delete( + request: protos.google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + delete( + request: protos.google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + delete( + request?: protos.google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'snapshot_group': request.snapshotGroup ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('delete request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteSnapshotGroupRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('delete response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.delete(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * returns the specified SnapshotGroup resource. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.snapshotGroup + * Name of the SnapshotGroup resource to return. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.SnapshotGroup|SnapshotGroup}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/snapshot_groups.get.js + * region_tag:compute_v1beta_generated_SnapshotGroups_Get_async + */ + get( + request?: protos.google.cloud.compute.v1beta.IGetSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.ISnapshotGroup, + protos.google.cloud.compute.v1beta.IGetSnapshotGroupRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1beta.IGetSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.ISnapshotGroup, + protos.google.cloud.compute.v1beta.IGetSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1beta.IGetSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.ISnapshotGroup, + protos.google.cloud.compute.v1beta.IGetSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1beta.IGetSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.ISnapshotGroup, + protos.google.cloud.compute.v1beta.IGetSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.ISnapshotGroup, + protos.google.cloud.compute.v1beta.IGetSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.ISnapshotGroup, + protos.google.cloud.compute.v1beta.IGetSnapshotGroupRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'snapshot_group': request.snapshotGroup ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('get request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.ISnapshotGroup, + protos.google.cloud.compute.v1beta.IGetSnapshotGroupRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('get response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.get(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.ISnapshotGroup, + protos.google.cloud.compute.v1beta.IGetSnapshotGroupRequest|undefined, + {}|undefined + ]) => { + this._log.info('get response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.optionsRequestedPolicyVersion + * Requested IAM Policy version. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.Policy|Policy}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/snapshot_groups.get_iam_policy.js + * region_tag:compute_v1beta_generated_SnapshotGroups_GetIamPolicy_async + */ + getIamPolicy( + request?: protos.google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest|undefined, {}|undefined + ]>; + getIamPolicy( + request: protos.google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request: protos.google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request?: protos.google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('getIamPolicy request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('getIamPolicy response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.getIamPolicy(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicySnapshotGroupRequest|undefined, + {}|undefined + ]) => { + this._log.info('getIamPolicy response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Creates a snapshot group in the specified project using the data included + * in the request. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {google.cloud.compute.v1beta.SnapshotGroup} request.snapshotGroupResource + * The body resource for this request + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/snapshot_groups.insert.js + * region_tag:compute_v1beta_generated_SnapshotGroups_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1beta.IInsertSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + insert( + request: protos.google.cloud.compute.v1beta.IInsertSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + insert( + request: protos.google.cloud.compute.v1beta.IInsertSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + insert( + request?: protos.google.cloud.compute.v1beta.IInsertSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('insert request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertSnapshotGroupRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('insert response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.insert(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Sets the access control policy on the specified resource. + * Replaces any existing policy. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.compute.v1beta.GlobalSetPolicyRequest} request.globalSetPolicyRequestResource + * The body resource for this request + * @param {string} request.project + * Project ID for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.Policy|Policy}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/snapshot_groups.set_iam_policy.js + * region_tag:compute_v1beta_generated_SnapshotGroups_SetIamPolicy_async + */ + setIamPolicy( + request?: protos.google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest|undefined, {}|undefined + ]>; + setIamPolicy( + request: protos.google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request: protos.google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request?: protos.google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('setIamPolicy request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('setIamPolicy response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.setIamPolicy(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicySnapshotGroupRequest|undefined, + {}|undefined + ]) => { + this._log.info('setIamPolicy response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Returns permissions that a caller has on the specified resource. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {google.cloud.compute.v1beta.TestPermissionsRequest} request.testPermissionsRequestResource + * The body resource for this request + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.TestPermissionsResponse|TestPermissionsResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/snapshot_groups.test_iam_permissions.js + * region_tag:compute_v1beta_generated_SnapshotGroups_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest|undefined, {}|undefined + ]>; + testIamPermissions( + request: protos.google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request: protos.google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('testIamPermissions request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('testIamPermissions response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.testIamPermissions(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsSnapshotGroupRequest|undefined, + {}|undefined + ]) => { + this._log.info('testIamPermissions response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } + + /** + * retrieves the list of SnapshotGroup resources contained within + * the specified project. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.compute.v1beta.SnapshotGroup|SnapshotGroup}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + list( + request?: protos.google.cloud.compute.v1beta.IListSnapshotGroupsRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.ISnapshotGroup[], + protos.google.cloud.compute.v1beta.IListSnapshotGroupsRequest|null, + protos.google.cloud.compute.v1beta.IListSnapshotGroups + ]>; + list( + request: protos.google.cloud.compute.v1beta.IListSnapshotGroupsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListSnapshotGroupsRequest, + protos.google.cloud.compute.v1beta.IListSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1beta.ISnapshotGroup>): void; + list( + request: protos.google.cloud.compute.v1beta.IListSnapshotGroupsRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListSnapshotGroupsRequest, + protos.google.cloud.compute.v1beta.IListSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1beta.ISnapshotGroup>): void; + list( + request?: protos.google.cloud.compute.v1beta.IListSnapshotGroupsRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1beta.IListSnapshotGroupsRequest, + protos.google.cloud.compute.v1beta.IListSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1beta.ISnapshotGroup>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1beta.IListSnapshotGroupsRequest, + protos.google.cloud.compute.v1beta.IListSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1beta.ISnapshotGroup>): + Promise<[ + protos.google.cloud.compute.v1beta.ISnapshotGroup[], + protos.google.cloud.compute.v1beta.IListSnapshotGroupsRequest|null, + protos.google.cloud.compute.v1beta.IListSnapshotGroups + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + }); + this.initialize().catch(err => {throw err}); + const wrappedCallback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListSnapshotGroupsRequest, + protos.google.cloud.compute.v1beta.IListSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1beta.ISnapshotGroup>|undefined = callback + ? (error, values, nextPageRequest, rawResponse) => { + this._log.info('list values %j', values); + callback!(error, values, nextPageRequest, rawResponse); // We verified callback above. + } + : undefined; + this._log.info('list request %j', request); + return this.innerApiCalls + .list(request, options, wrappedCallback) + ?.then(([response, input, output]: [ + protos.google.cloud.compute.v1beta.ISnapshotGroup[], + protos.google.cloud.compute.v1beta.IListSnapshotGroupsRequest|null, + protos.google.cloud.compute.v1beta.IListSnapshotGroups + ]) => { + this._log.info('list values %j', response); + return [response, input, output]; + }); + } + +/** + * Equivalent to `list`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.compute.v1beta.SnapshotGroup|SnapshotGroup} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listStream( + request?: protos.google.cloud.compute.v1beta.IListSnapshotGroupsRequest, + options?: CallOptions): + Transform{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list stream %j', request); + return this.descriptors.page.list.createStream( + this.innerApiCalls.list as GaxCall, + request, + callSettings + ); + } + +/** + * Equivalent to `list`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.compute.v1beta.SnapshotGroup|SnapshotGroup}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/snapshot_groups.list.js + * region_tag:compute_v1beta_generated_SnapshotGroups_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1beta.IListSnapshotGroupsRequest, + options?: CallOptions): + AsyncIterable{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list iterate %j', request); + return this.descriptors.page.list.asyncIterate( + this.innerApiCalls['list'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.snapshotGroupsStub && !this._terminated) { + return this.snapshotGroupsStub.then(stub => { + this._log.info('ending gRPC channel'); + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} \ No newline at end of file diff --git a/packages/google-cloud-compute/src/v1beta/snapshot_groups_client_config.json b/packages/google-cloud-compute/src/v1beta/snapshot_groups_client_config.json new file mode 100644 index 00000000000..ee300b17d88 --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/snapshot_groups_client_config.json @@ -0,0 +1,54 @@ +{ + "interfaces": { + "google.cloud.compute.v1beta.SnapshotGroups": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "Delete": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Get": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetIamPolicy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Insert": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "List": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetIamPolicy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "TestIamPermissions": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1beta/snapshot_groups_proto_list.json b/packages/google-cloud-compute/src/v1beta/snapshot_groups_proto_list.json new file mode 100644 index 00000000000..ecbfc90443e --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/snapshot_groups_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1beta/compute.proto" +] diff --git a/packages/google-cloud-compute/test/gapic_instance_group_managers_v1beta.ts b/packages/google-cloud-compute/test/gapic_instance_group_managers_v1beta.ts index 695a6456e17..4c8ca7ebe59 100644 --- a/packages/google-cloud-compute/test/gapic_instance_group_managers_v1beta.ts +++ b/packages/google-cloud-compute/test/gapic_instance_group_managers_v1beta.ts @@ -534,6 +534,138 @@ describe('v1beta.InstanceGroupManagersClient', () => { }); }); + describe('configureAcceleratorTopologies', () => { + it('invokes configureAcceleratorTopologies without error', async () => { + const client = new instancegroupmanagersModule.v1beta.InstanceGroupManagersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.configureAcceleratorTopologies = stubSimpleCall(expectedResponse); + const [response] = await client.configureAcceleratorTopologies(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.configureAcceleratorTopologies as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.configureAcceleratorTopologies as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes configureAcceleratorTopologies without error using callback', async () => { + const client = new instancegroupmanagersModule.v1beta.InstanceGroupManagersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.configureAcceleratorTopologies = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.configureAcceleratorTopologies( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.configureAcceleratorTopologies as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.configureAcceleratorTopologies as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes configureAcceleratorTopologies with error', async () => { + const client = new instancegroupmanagersModule.v1beta.InstanceGroupManagersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.configureAcceleratorTopologies = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.configureAcceleratorTopologies(request), expectedError); + const actualRequest = (client.innerApiCalls.configureAcceleratorTopologies as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.configureAcceleratorTopologies as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes configureAcceleratorTopologies with closed client', async () => { + const client = new instancegroupmanagersModule.v1beta.InstanceGroupManagersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ConfigureAcceleratorTopologiesInstanceGroupManagerRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.configureAcceleratorTopologies(request), expectedError); + }); + }); + describe('createInstances', () => { it('invokes createInstances without error', async () => { const client = new instancegroupmanagersModule.v1beta.InstanceGroupManagersClient({ diff --git a/packages/google-cloud-compute/test/gapic_instant_snapshot_groups_v1beta.ts b/packages/google-cloud-compute/test/gapic_instant_snapshot_groups_v1beta.ts new file mode 100644 index 00000000000..62ce7231a2c --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_instant_snapshot_groups_v1beta.ts @@ -0,0 +1,1318 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it, beforeEach, afterEach} from 'mocha'; +import * as instantsnapshotgroupsModule from '../src'; + +import {PassThrough} from 'stream'; + +import {GoogleAuth, protobuf} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON(require('../protos/protos.json')).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = (instance.constructor as typeof protobuf.Message) + .toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject(filledObject) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error ? sinon.stub().rejects(error) : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback(response?: ResponseType, error?: Error) { + return error ? sinon.stub().callsArgWith(2, error) : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall(responses?: ResponseType[], error?: Error) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error ? sinon.stub().callsArgWith(2, error) : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { mockStream.write({}); }); + } + setImmediate(() => { mockStream.end(); }); + } else { + setImmediate(() => { mockStream.write({}); }); + setImmediate(() => { mockStream.end(); }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall(responses?: ResponseType[], error?: Error) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + } + }; + } + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1beta.InstantSnapshotGroupsClient', () => { + let googleAuth: GoogleAuth; + beforeEach(() => { + googleAuth = { + getClient: sinon.stub().resolves({ + getRequestHeaders: sinon.stub().resolves({Authorization: 'Bearer SOME_TOKEN'}), + }) + } as unknown as GoogleAuth; + }); + afterEach(() => { + sinon.restore(); + }); + describe('Common methods', () => { + it('has apiEndpoint', () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({universeDomain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({universe_domain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + if (typeof process === 'object' && 'env' in process) { + describe('GOOGLE_CLOUD_UNIVERSE_DOMAIN environment variable', () => { + it('sets apiEndpoint from environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient(); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + + it('value configured in code has priority over environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({universeDomain: 'configured.example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.configured.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.instantSnapshotGroupsStub, undefined); + await client.initialize(); + assert(client.instantSnapshotGroupsStub); + }); + + it('has close method for the initialized client', done => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize().catch(err => {throw err}); + assert(client.instantSnapshotGroupsStub); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has close method for the non-initialized client', done => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.instantSnapshotGroupsStub, undefined); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error|null, projectId?: string|null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('delete', () => { + it('invokes delete without error', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.delete = stubSimpleCall(expectedResponse); + const [response] = await client.delete(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete without error using callback', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.delete = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.delete( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with error', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.delete = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.delete(request), expectedError); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with closed client', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.delete(request), expectedError); + }); + }); + + describe('get', () => { + it('invokes get without error', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InstantSnapshotGroup() + ); + client.innerApiCalls.get = stubSimpleCall(expectedResponse); + const [response] = await client.get(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get without error using callback', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InstantSnapshotGroup() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IInstantSnapshotGroup|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with error', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.get = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.get(request), expectedError); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with closed client', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.get(request), expectedError); + }); + }); + + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.getIamPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.getIamPolicy(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy without error using callback', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.getIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IPolicy|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy with error', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getIamPolicy(request), expectedError); + const actualRequest = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy with closed client', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.getIamPolicy(request), expectedError); + }); + }); + + describe('insert', () => { + it('invokes insert without error', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.insert = stubSimpleCall(expectedResponse); + const [response] = await client.insert(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert without error using callback', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.insert = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.insert( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with error', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.insert = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.insert(request), expectedError); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with closed client', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.insert(request), expectedError); + }); + }); + + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.setIamPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.setIamPolicy(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy without error using callback', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.setIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IPolicy|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy with error', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.setIamPolicy(request), expectedError); + const actualRequest = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy with closed client', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.setIamPolicy(request), expectedError); + }); + }); + + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCall(expectedResponse); + const [response] = await client.testIamPermissions(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions without error using callback', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.ITestPermissionsResponse|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with error', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.testIamPermissions = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.testIamPermissions(request), expectedError); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with closed client', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.testIamPermissions(request), expectedError); + }); + }); + + describe('list', () => { + it('invokes list without error', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + ]; + client.innerApiCalls.list = stubSimpleCall(expectedResponse); + const [response] = await client.list(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list without error using callback', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IInstantSnapshotGroup[]|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list with error', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.list = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.list(request), expectedError); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listStream without error', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + ]; + client.descriptors.page.list.createStream = stubPageStreamingCall(expectedResponse); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.InstantSnapshotGroup[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.InstantSnapshotGroup) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listStream with error', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.createStream = stubPageStreamingCall(undefined, expectedError); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.InstantSnapshotGroup[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.InstantSnapshotGroup) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list without error', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + ]; + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1beta.IInstantSnapshotGroup[] = []; + const iterable = client.listAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list with error', async () => { + const client = new instantsnapshotgroupsModule.v1beta.InstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListInstantSnapshotGroupsRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.compute.v1beta.IInstantSnapshotGroup[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); +}); diff --git a/packages/google-cloud-compute/test/gapic_region_instant_snapshot_groups_v1beta.ts b/packages/google-cloud-compute/test/gapic_region_instant_snapshot_groups_v1beta.ts new file mode 100644 index 00000000000..e1ff2091c33 --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_region_instant_snapshot_groups_v1beta.ts @@ -0,0 +1,1318 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it, beforeEach, afterEach} from 'mocha'; +import * as regioninstantsnapshotgroupsModule from '../src'; + +import {PassThrough} from 'stream'; + +import {GoogleAuth, protobuf} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON(require('../protos/protos.json')).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = (instance.constructor as typeof protobuf.Message) + .toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject(filledObject) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error ? sinon.stub().rejects(error) : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback(response?: ResponseType, error?: Error) { + return error ? sinon.stub().callsArgWith(2, error) : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall(responses?: ResponseType[], error?: Error) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error ? sinon.stub().callsArgWith(2, error) : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { mockStream.write({}); }); + } + setImmediate(() => { mockStream.end(); }); + } else { + setImmediate(() => { mockStream.write({}); }); + setImmediate(() => { mockStream.end(); }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall(responses?: ResponseType[], error?: Error) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + } + }; + } + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1beta.RegionInstantSnapshotGroupsClient', () => { + let googleAuth: GoogleAuth; + beforeEach(() => { + googleAuth = { + getClient: sinon.stub().resolves({ + getRequestHeaders: sinon.stub().resolves({Authorization: 'Bearer SOME_TOKEN'}), + }) + } as unknown as GoogleAuth; + }); + afterEach(() => { + sinon.restore(); + }); + describe('Common methods', () => { + it('has apiEndpoint', () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({universeDomain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({universe_domain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + if (typeof process === 'object' && 'env' in process) { + describe('GOOGLE_CLOUD_UNIVERSE_DOMAIN environment variable', () => { + it('sets apiEndpoint from environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient(); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + + it('value configured in code has priority over environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({universeDomain: 'configured.example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.configured.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionInstantSnapshotGroupsStub, undefined); + await client.initialize(); + assert(client.regionInstantSnapshotGroupsStub); + }); + + it('has close method for the initialized client', done => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize().catch(err => {throw err}); + assert(client.regionInstantSnapshotGroupsStub); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has close method for the non-initialized client', done => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionInstantSnapshotGroupsStub, undefined); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error|null, projectId?: string|null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('delete', () => { + it('invokes delete without error', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.delete = stubSimpleCall(expectedResponse); + const [response] = await client.delete(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete without error using callback', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.delete = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.delete( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with error', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.delete = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.delete(request), expectedError); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with closed client', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.delete(request), expectedError); + }); + }); + + describe('get', () => { + it('invokes get without error', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InstantSnapshotGroup() + ); + client.innerApiCalls.get = stubSimpleCall(expectedResponse); + const [response] = await client.get(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get without error using callback', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InstantSnapshotGroup() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IInstantSnapshotGroup|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with error', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.get = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.get(request), expectedError); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with closed client', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.get(request), expectedError); + }); + }); + + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.getIamPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.getIamPolicy(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy without error using callback', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.getIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IPolicy|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy with error', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getIamPolicy(request), expectedError); + const actualRequest = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy with closed client', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.getIamPolicy(request), expectedError); + }); + }); + + describe('insert', () => { + it('invokes insert without error', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.insert = stubSimpleCall(expectedResponse); + const [response] = await client.insert(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert without error using callback', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.insert = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.insert( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with error', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.insert = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.insert(request), expectedError); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with closed client', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.insert(request), expectedError); + }); + }); + + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.setIamPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.setIamPolicy(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy without error using callback', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.setIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IPolicy|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy with error', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.setIamPolicy(request), expectedError); + const actualRequest = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy with closed client', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.setIamPolicy(request), expectedError); + }); + }); + + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCall(expectedResponse); + const [response] = await client.testIamPermissions(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions without error using callback', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.ITestPermissionsResponse|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with error', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.testIamPermissions = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.testIamPermissions(request), expectedError); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with closed client', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.testIamPermissions(request), expectedError); + }); + }); + + describe('list', () => { + it('invokes list without error', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + ]; + client.innerApiCalls.list = stubSimpleCall(expectedResponse); + const [response] = await client.list(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list without error using callback', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IInstantSnapshotGroup[]|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list with error', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.list = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.list(request), expectedError); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listStream without error', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + ]; + client.descriptors.page.list.createStream = stubPageStreamingCall(expectedResponse); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.InstantSnapshotGroup[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.InstantSnapshotGroup) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listStream with error', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.createStream = stubPageStreamingCall(undefined, expectedError); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.InstantSnapshotGroup[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.InstantSnapshotGroup) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list without error', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.InstantSnapshotGroup()), + ]; + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1beta.IInstantSnapshotGroup[] = []; + const iterable = client.listAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list with error', async () => { + const client = new regioninstantsnapshotgroupsModule.v1beta.RegionInstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionInstantSnapshotGroupsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.compute.v1beta.IInstantSnapshotGroup[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); +}); diff --git a/packages/google-cloud-compute/test/gapic_reservation_slots_v1beta.ts b/packages/google-cloud-compute/test/gapic_reservation_slots_v1beta.ts new file mode 100644 index 00000000000..38e72d2470a --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_reservation_slots_v1beta.ts @@ -0,0 +1,847 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it, beforeEach, afterEach} from 'mocha'; +import * as reservationslotsModule from '../src'; + +import {PassThrough} from 'stream'; + +import {GoogleAuth, protobuf} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON(require('../protos/protos.json')).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = (instance.constructor as typeof protobuf.Message) + .toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject(filledObject) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error ? sinon.stub().rejects(error) : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback(response?: ResponseType, error?: Error) { + return error ? sinon.stub().callsArgWith(2, error) : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall(responses?: ResponseType[], error?: Error) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error ? sinon.stub().callsArgWith(2, error) : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { mockStream.write({}); }); + } + setImmediate(() => { mockStream.end(); }); + } else { + setImmediate(() => { mockStream.write({}); }); + setImmediate(() => { mockStream.end(); }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall(responses?: ResponseType[], error?: Error) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + } + }; + } + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1beta.ReservationSlotsClient', () => { + let googleAuth: GoogleAuth; + beforeEach(() => { + googleAuth = { + getClient: sinon.stub().resolves({ + getRequestHeaders: sinon.stub().resolves({Authorization: 'Bearer SOME_TOKEN'}), + }) + } as unknown as GoogleAuth; + }); + afterEach(() => { + sinon.restore(); + }); + describe('Common methods', () => { + it('has apiEndpoint', () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = reservationslotsModule.v1beta.ReservationSlotsClient.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = reservationslotsModule.v1beta.ReservationSlotsClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({universeDomain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({universe_domain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + if (typeof process === 'object' && 'env' in process) { + describe('GOOGLE_CLOUD_UNIVERSE_DOMAIN environment variable', () => { + it('sets apiEndpoint from environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new reservationslotsModule.v1beta.ReservationSlotsClient(); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + + it('value configured in code has priority over environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({universeDomain: 'configured.example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.configured.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new reservationslotsModule.v1beta.ReservationSlotsClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = reservationslotsModule.v1beta.ReservationSlotsClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.reservationSlotsStub, undefined); + await client.initialize(); + assert(client.reservationSlotsStub); + }); + + it('has close method for the initialized client', done => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize().catch(err => {throw err}); + assert(client.reservationSlotsStub); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has close method for the non-initialized client', done => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.reservationSlotsStub, undefined); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error|null, projectId?: string|null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('get', () => { + it('invokes get without error', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_slot=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ReservationSlotsGetResponse() + ); + client.innerApiCalls.get = stubSimpleCall(expectedResponse); + const [response] = await client.get(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get without error using callback', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_slot=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ReservationSlotsGetResponse() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IReservationSlotsGetResponse|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with error', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_slot=${defaultValue4 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.get = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.get(request), expectedError); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with closed client', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.get(request), expectedError); + }); + }); + + describe('update', () => { + it('invokes update without error', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_slot=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.update = stubSimpleCall(expectedResponse); + const [response] = await client.update(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes update without error using callback', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_slot=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.update = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.update( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes update with error', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_slot=${defaultValue4 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.update = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.update(request), expectedError); + const actualRequest = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes update with closed client', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.update(request), expectedError); + }); + }); + + describe('list', () => { + it('invokes list without error', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListReservationSlotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['parentName']); + request.parentName = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.ReservationSlot()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.ReservationSlot()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.ReservationSlot()), + ]; + client.innerApiCalls.list = stubSimpleCall(expectedResponse); + const [response] = await client.list(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list without error using callback', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListReservationSlotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['parentName']); + request.parentName = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.ReservationSlot()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.ReservationSlot()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.ReservationSlot()), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IReservationSlot[]|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list with error', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListReservationSlotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['parentName']); + request.parentName = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.list = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.list(request), expectedError); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listStream without error', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListReservationSlotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['parentName']); + request.parentName = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.ReservationSlot()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.ReservationSlot()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.ReservationSlot()), + ]; + client.descriptors.page.list.createStream = stubPageStreamingCall(expectedResponse); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.ReservationSlot[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.ReservationSlot) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listStream with error', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListReservationSlotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['parentName']); + request.parentName = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.createStream = stubPageStreamingCall(undefined, expectedError); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.ReservationSlot[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.ReservationSlot) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list without error', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListReservationSlotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['parentName']); + request.parentName = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.ReservationSlot()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.ReservationSlot()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.ReservationSlot()), + ]; + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1beta.IReservationSlot[] = []; + const iterable = client.listAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list with error', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListReservationSlotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListReservationSlotsRequest', ['parentName']); + request.parentName = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.compute.v1beta.IReservationSlot[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); +}); diff --git a/packages/google-cloud-compute/test/gapic_routers_v1beta.ts b/packages/google-cloud-compute/test/gapic_routers_v1beta.ts index 96faeef9b80..2e01b7f1260 100644 --- a/packages/google-cloud-compute/test/gapic_routers_v1beta.ts +++ b/packages/google-cloud-compute/test/gapic_routers_v1beta.ts @@ -402,6 +402,138 @@ describe('v1beta.RoutersClient', () => { }); }); + describe('deleteNamedSet', () => { + it('invokes deleteNamedSet without error', async () => { + const client = new routersModule.v1beta.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest', ['router']); + request.router = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.deleteNamedSet = stubSimpleCall(expectedResponse); + const [response] = await client.deleteNamedSet(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.deleteNamedSet as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.deleteNamedSet as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNamedSet without error using callback', async () => { + const client = new routersModule.v1beta.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest', ['router']); + request.router = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.deleteNamedSet = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteNamedSet( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.deleteNamedSet as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.deleteNamedSet as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNamedSet with error', async () => { + const client = new routersModule.v1beta.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest', ['router']); + request.router = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteNamedSet = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.deleteNamedSet(request), expectedError); + const actualRequest = (client.innerApiCalls.deleteNamedSet as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.deleteNamedSet as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNamedSet with closed client', async () => { + const client = new routersModule.v1beta.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteNamedSetRouterRequest', ['router']); + request.router = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.deleteNamedSet(request), expectedError); + }); + }); + describe('deleteRoutePolicy', () => { it('invokes deleteRoutePolicy without error', async () => { const client = new routersModule.v1beta.RoutersClient({ @@ -666,6 +798,138 @@ describe('v1beta.RoutersClient', () => { }); }); + describe('getNamedSet', () => { + it('invokes getNamedSet without error', async () => { + const client = new routersModule.v1beta.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetNamedSetRouterRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetNamedSetRouterRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetNamedSetRouterRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetNamedSetRouterRequest', ['router']); + request.router = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.RoutersGetNamedSetResponse() + ); + client.innerApiCalls.getNamedSet = stubSimpleCall(expectedResponse); + const [response] = await client.getNamedSet(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getNamedSet as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getNamedSet as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getNamedSet without error using callback', async () => { + const client = new routersModule.v1beta.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetNamedSetRouterRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetNamedSetRouterRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetNamedSetRouterRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetNamedSetRouterRequest', ['router']); + request.router = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.RoutersGetNamedSetResponse() + ); + client.innerApiCalls.getNamedSet = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getNamedSet( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IRoutersGetNamedSetResponse|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getNamedSet as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getNamedSet as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getNamedSet with error', async () => { + const client = new routersModule.v1beta.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetNamedSetRouterRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetNamedSetRouterRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetNamedSetRouterRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetNamedSetRouterRequest', ['router']); + request.router = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.getNamedSet = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getNamedSet(request), expectedError); + const actualRequest = (client.innerApiCalls.getNamedSet as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getNamedSet as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getNamedSet with closed client', async () => { + const client = new routersModule.v1beta.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetNamedSetRouterRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetNamedSetRouterRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetNamedSetRouterRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetNamedSetRouterRequest', ['router']); + request.router = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.getNamedSet(request), expectedError); + }); + }); + describe('getNatIpInfo', () => { it('invokes getNatIpInfo without error', async () => { const client = new routersModule.v1beta.RoutersClient({ @@ -1314,6 +1578,138 @@ describe('v1beta.RoutersClient', () => { }); }); + describe('patchNamedSet', () => { + it('invokes patchNamedSet without error', async () => { + const client = new routersModule.v1beta.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.PatchNamedSetRouterRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchNamedSetRouterRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchNamedSetRouterRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchNamedSetRouterRequest', ['router']); + request.router = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.patchNamedSet = stubSimpleCall(expectedResponse); + const [response] = await client.patchNamedSet(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.patchNamedSet as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.patchNamedSet as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes patchNamedSet without error using callback', async () => { + const client = new routersModule.v1beta.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.PatchNamedSetRouterRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchNamedSetRouterRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchNamedSetRouterRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchNamedSetRouterRequest', ['router']); + request.router = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.patchNamedSet = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.patchNamedSet( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.patchNamedSet as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.patchNamedSet as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes patchNamedSet with error', async () => { + const client = new routersModule.v1beta.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.PatchNamedSetRouterRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchNamedSetRouterRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchNamedSetRouterRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchNamedSetRouterRequest', ['router']); + request.router = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.patchNamedSet = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.patchNamedSet(request), expectedError); + const actualRequest = (client.innerApiCalls.patchNamedSet as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.patchNamedSet as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes patchNamedSet with closed client', async () => { + const client = new routersModule.v1beta.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.PatchNamedSetRouterRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchNamedSetRouterRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchNamedSetRouterRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchNamedSetRouterRequest', ['router']); + request.router = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.patchNamedSet(request), expectedError); + }); + }); + describe('patchRoutePolicy', () => { it('invokes patchRoutePolicy without error', async () => { const client = new routersModule.v1beta.RoutersClient({ @@ -1681,94 +2077,226 @@ describe('v1beta.RoutersClient', () => { const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) .getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with closed client', async () => { + const client = new routersModule.v1beta.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsRouterRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRouterRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRouterRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRouterRequest', ['resource']); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.testIamPermissions(request), expectedError); + }); + }); + + describe('update', () => { + it('invokes update without error', async () => { + const client = new routersModule.v1beta.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateRouterRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['router']); + request.router = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.update = stubSimpleCall(expectedResponse); + const [response] = await client.update(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes update without error using callback', async () => { + const client = new routersModule.v1beta.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateRouterRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['router']); + request.router = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.update = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.update( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes update with error', async () => { + const client = new routersModule.v1beta.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateRouterRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['router']); + request.router = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.update = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.update(request), expectedError); + const actualRequest = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.update as SinonStub) .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes testIamPermissions with closed client', async () => { + it('invokes update with closed client', async () => { const client = new routersModule.v1beta.RoutersClient({ auth: googleAuth, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.compute.v1beta.TestIamPermissionsRouterRequest() + new protos.google.cloud.compute.v1beta.UpdateRouterRequest() ); const defaultValue1 = - getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRouterRequest', ['project']); + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['project']); request.project = defaultValue1; const defaultValue2 = - getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRouterRequest', ['region']); + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['region']); request.region = defaultValue2; const defaultValue3 = - getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRouterRequest', ['resource']); - request.resource = defaultValue3; + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['router']); + request.router = defaultValue3; const expectedError = new Error('The client has already been closed.'); client.close().catch(err => {throw err}); - await assert.rejects(client.testIamPermissions(request), expectedError); + await assert.rejects(client.update(request), expectedError); }); }); - describe('update', () => { - it('invokes update without error', async () => { + describe('updateNamedSet', () => { + it('invokes updateNamedSet without error', async () => { const client = new routersModule.v1beta.RoutersClient({ auth: googleAuth, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.compute.v1beta.UpdateRouterRequest() + new protos.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest() ); const defaultValue1 = - getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['project']); + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest', ['project']); request.project = defaultValue1; const defaultValue2 = - getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['region']); + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest', ['region']); request.region = defaultValue2; const defaultValue3 = - getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['router']); + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest', ['router']); request.router = defaultValue3; const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; const expectedResponse = generateSampleMessage( new protos.google.cloud.compute.v1beta.Operation() ); - client.innerApiCalls.update = stubSimpleCall(expectedResponse); - const [response] = await client.update(request); + client.innerApiCalls.updateNamedSet = stubSimpleCall(expectedResponse); + const [response] = await client.updateNamedSet(request); assert.deepStrictEqual(response.latestResponse, expectedResponse); - const actualRequest = (client.innerApiCalls.update as SinonStub) + const actualRequest = (client.innerApiCalls.updateNamedSet as SinonStub) .getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = (client.innerApiCalls.update as SinonStub) + const actualHeaderRequestParams = (client.innerApiCalls.updateNamedSet as SinonStub) .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes update without error using callback', async () => { + it('invokes updateNamedSet without error using callback', async () => { const client = new routersModule.v1beta.RoutersClient({ auth: googleAuth, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.compute.v1beta.UpdateRouterRequest() + new protos.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest() ); const defaultValue1 = - getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['project']); + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest', ['project']); request.project = defaultValue1; const defaultValue2 = - getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['region']); + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest', ['region']); request.region = defaultValue2; const defaultValue3 = - getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['router']); + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest', ['router']); request.router = defaultValue3; const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; const expectedResponse = generateSampleMessage( new protos.google.cloud.compute.v1beta.Operation() ); - client.innerApiCalls.update = stubSimpleCallWithCallback(expectedResponse); + client.innerApiCalls.updateNamedSet = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.update( + client.updateNamedSet( request, (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { if (err) { @@ -1780,65 +2308,65 @@ describe('v1beta.RoutersClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - const actualRequest = (client.innerApiCalls.update as SinonStub) + const actualRequest = (client.innerApiCalls.updateNamedSet as SinonStub) .getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = (client.innerApiCalls.update as SinonStub) + const actualHeaderRequestParams = (client.innerApiCalls.updateNamedSet as SinonStub) .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes update with error', async () => { + it('invokes updateNamedSet with error', async () => { const client = new routersModule.v1beta.RoutersClient({ auth: googleAuth, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.compute.v1beta.UpdateRouterRequest() + new protos.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest() ); const defaultValue1 = - getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['project']); + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest', ['project']); request.project = defaultValue1; const defaultValue2 = - getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['region']); + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest', ['region']); request.region = defaultValue2; const defaultValue3 = - getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['router']); + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest', ['router']); request.router = defaultValue3; const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; const expectedError = new Error('expected'); - client.innerApiCalls.update = stubSimpleCall(undefined, expectedError); - await assert.rejects(client.update(request), expectedError); - const actualRequest = (client.innerApiCalls.update as SinonStub) + client.innerApiCalls.updateNamedSet = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.updateNamedSet(request), expectedError); + const actualRequest = (client.innerApiCalls.updateNamedSet as SinonStub) .getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = (client.innerApiCalls.update as SinonStub) + const actualHeaderRequestParams = (client.innerApiCalls.updateNamedSet as SinonStub) .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes update with closed client', async () => { + it('invokes updateNamedSet with closed client', async () => { const client = new routersModule.v1beta.RoutersClient({ auth: googleAuth, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.compute.v1beta.UpdateRouterRequest() + new protos.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest() ); const defaultValue1 = - getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['project']); + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest', ['project']); request.project = defaultValue1; const defaultValue2 = - getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['region']); + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest', ['region']); request.region = defaultValue2; const defaultValue3 = - getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateRouterRequest', ['router']); + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateNamedSetRouterRequest', ['router']); request.router = defaultValue3; const expectedError = new Error('The client has already been closed.'); client.close().catch(err => {throw err}); - await assert.rejects(client.update(request), expectedError); + await assert.rejects(client.updateNamedSet(request), expectedError); }); }); @@ -2886,6 +3414,293 @@ describe('v1beta.RoutersClient', () => { }); }); + describe('listNamedSets', () => { + it('invokes listNamedSets without error', async () => { + const client = new routersModule.v1beta.RoutersClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['router']); + request.router = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.NamedSet()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.NamedSet()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.NamedSet()), + ]; + client.innerApiCalls.listNamedSets = stubSimpleCall(expectedResponse); + const [response] = await client.listNamedSets(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.listNamedSets as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.listNamedSets as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listNamedSets without error using callback', async () => { + const client = new routersModule.v1beta.RoutersClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['router']); + request.router = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.NamedSet()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.NamedSet()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.NamedSet()), + ]; + client.innerApiCalls.listNamedSets = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listNamedSets( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.INamedSet[]|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.listNamedSets as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.listNamedSets as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listNamedSets with error', async () => { + const client = new routersModule.v1beta.RoutersClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['router']); + request.router = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.listNamedSets = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.listNamedSets(request), expectedError); + const actualRequest = (client.innerApiCalls.listNamedSets as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.listNamedSets as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listNamedSetsStream without error', async () => { + const client = new routersModule.v1beta.RoutersClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['router']); + request.router = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.NamedSet()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.NamedSet()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.NamedSet()), + ]; + client.descriptors.page.listNamedSets.createStream = stubPageStreamingCall(expectedResponse); + const stream = client.listNamedSetsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.NamedSet[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.NamedSet) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert((client.descriptors.page.listNamedSets.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.listNamedSets, request)); + assert( + (client.descriptors.page.listNamedSets.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listNamedSetsStream with error', async () => { + const client = new routersModule.v1beta.RoutersClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['router']); + request.router = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.listNamedSets.createStream = stubPageStreamingCall(undefined, expectedError); + const stream = client.listNamedSetsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.NamedSet[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.NamedSet) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert((client.descriptors.page.listNamedSets.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.listNamedSets, request)); + assert( + (client.descriptors.page.listNamedSets.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listNamedSets without error', async () => { + const client = new routersModule.v1beta.RoutersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['router']); + request.router = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.NamedSet()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.NamedSet()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.NamedSet()), + ]; + client.descriptors.page.listNamedSets.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1beta.INamedSet[] = []; + const iterable = client.listNamedSetsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listNamedSets.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.listNamedSets.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listNamedSets with error', async () => { + const client = new routersModule.v1beta.RoutersClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListNamedSetsRoutersRequest', ['router']); + request.router = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&router=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.listNamedSets.asyncIterate = stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listNamedSetsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.compute.v1beta.INamedSet[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listNamedSets.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.listNamedSets.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + describe('listRoutePolicies', () => { it('invokes listRoutePolicies without error', async () => { const client = new routersModule.v1beta.RoutersClient({ diff --git a/packages/google-cloud-compute/test/gapic_snapshot_groups_v1beta.ts b/packages/google-cloud-compute/test/gapic_snapshot_groups_v1beta.ts new file mode 100644 index 00000000000..86b98cfb716 --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_snapshot_groups_v1beta.ts @@ -0,0 +1,1225 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it, beforeEach, afterEach} from 'mocha'; +import * as snapshotgroupsModule from '../src'; + +import {PassThrough} from 'stream'; + +import {GoogleAuth, protobuf} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON(require('../protos/protos.json')).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = (instance.constructor as typeof protobuf.Message) + .toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject(filledObject) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error ? sinon.stub().rejects(error) : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback(response?: ResponseType, error?: Error) { + return error ? sinon.stub().callsArgWith(2, error) : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall(responses?: ResponseType[], error?: Error) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error ? sinon.stub().callsArgWith(2, error) : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { mockStream.write({}); }); + } + setImmediate(() => { mockStream.end(); }); + } else { + setImmediate(() => { mockStream.write({}); }); + setImmediate(() => { mockStream.end(); }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall(responses?: ResponseType[], error?: Error) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + } + }; + } + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1beta.SnapshotGroupsClient', () => { + let googleAuth: GoogleAuth; + beforeEach(() => { + googleAuth = { + getClient: sinon.stub().resolves({ + getRequestHeaders: sinon.stub().resolves({Authorization: 'Bearer SOME_TOKEN'}), + }) + } as unknown as GoogleAuth; + }); + afterEach(() => { + sinon.restore(); + }); + describe('Common methods', () => { + it('has apiEndpoint', () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = snapshotgroupsModule.v1beta.SnapshotGroupsClient.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = snapshotgroupsModule.v1beta.SnapshotGroupsClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({universeDomain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({universe_domain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + if (typeof process === 'object' && 'env' in process) { + describe('GOOGLE_CLOUD_UNIVERSE_DOMAIN environment variable', () => { + it('sets apiEndpoint from environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient(); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + + it('value configured in code has priority over environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({universeDomain: 'configured.example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.configured.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new snapshotgroupsModule.v1beta.SnapshotGroupsClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = snapshotgroupsModule.v1beta.SnapshotGroupsClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.snapshotGroupsStub, undefined); + await client.initialize(); + assert(client.snapshotGroupsStub); + }); + + it('has close method for the initialized client', done => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize().catch(err => {throw err}); + assert(client.snapshotGroupsStub); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has close method for the non-initialized client', done => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.snapshotGroupsStub, undefined); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error|null, projectId?: string|null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('delete', () => { + it('invokes delete without error', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteSnapshotGroupRequest', ['snapshotGroup']); + request.snapshotGroup = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&snapshot_group=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.delete = stubSimpleCall(expectedResponse); + const [response] = await client.delete(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete without error using callback', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteSnapshotGroupRequest', ['snapshotGroup']); + request.snapshotGroup = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&snapshot_group=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.delete = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.delete( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with error', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteSnapshotGroupRequest', ['snapshotGroup']); + request.snapshotGroup = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&snapshot_group=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.delete = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.delete(request), expectedError); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with closed client', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteSnapshotGroupRequest', ['snapshotGroup']); + request.snapshotGroup = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.delete(request), expectedError); + }); + }); + + describe('get', () => { + it('invokes get without error', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetSnapshotGroupRequest', ['snapshotGroup']); + request.snapshotGroup = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&snapshot_group=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SnapshotGroup() + ); + client.innerApiCalls.get = stubSimpleCall(expectedResponse); + const [response] = await client.get(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get without error using callback', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetSnapshotGroupRequest', ['snapshotGroup']); + request.snapshotGroup = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&snapshot_group=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SnapshotGroup() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.ISnapshotGroup|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with error', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetSnapshotGroupRequest', ['snapshotGroup']); + request.snapshotGroup = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&snapshot_group=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.get = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.get(request), expectedError); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with closed client', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetSnapshotGroupRequest', ['snapshotGroup']); + request.snapshotGroup = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.get(request), expectedError); + }); + }); + + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest', ['resource']); + request.resource = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&resource=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.getIamPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.getIamPolicy(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy without error using callback', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest', ['resource']); + request.resource = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&resource=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.getIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IPolicy|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy with error', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest', ['resource']); + request.resource = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&resource=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getIamPolicy(request), expectedError); + const actualRequest = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy with closed client', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicySnapshotGroupRequest', ['resource']); + request.resource = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.getIamPolicy(request), expectedError); + }); + }); + + describe('insert', () => { + it('invokes insert without error', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.insert = stubSimpleCall(expectedResponse); + const [response] = await client.insert(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert without error using callback', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.insert = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.insert( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with error', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.insert = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.insert(request), expectedError); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with closed client', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.insert(request), expectedError); + }); + }); + + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest', ['resource']); + request.resource = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&resource=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.setIamPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.setIamPolicy(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy without error using callback', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest', ['resource']); + request.resource = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&resource=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.setIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IPolicy|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy with error', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest', ['resource']); + request.resource = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&resource=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.setIamPolicy(request), expectedError); + const actualRequest = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy with closed client', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicySnapshotGroupRequest', ['resource']); + request.resource = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.setIamPolicy(request), expectedError); + }); + }); + + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest', ['resource']); + request.resource = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&resource=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCall(expectedResponse); + const [response] = await client.testIamPermissions(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions without error using callback', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest', ['resource']); + request.resource = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&resource=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.ITestPermissionsResponse|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with error', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest', ['resource']); + request.resource = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&resource=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.testIamPermissions = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.testIamPermissions(request), expectedError); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with closed client', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsSnapshotGroupRequest', ['resource']); + request.resource = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.testIamPermissions(request), expectedError); + }); + }); + + describe('list', () => { + it('invokes list without error', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.SnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.SnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.SnapshotGroup()), + ]; + client.innerApiCalls.list = stubSimpleCall(expectedResponse); + const [response] = await client.list(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list without error using callback', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.SnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.SnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.SnapshotGroup()), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.ISnapshotGroup[]|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list with error', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.list = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.list(request), expectedError); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listStream without error', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.SnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.SnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.SnapshotGroup()), + ]; + client.descriptors.page.list.createStream = stubPageStreamingCall(expectedResponse); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.SnapshotGroup[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.SnapshotGroup) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listStream with error', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.createStream = stubPageStreamingCall(undefined, expectedError); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.SnapshotGroup[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.SnapshotGroup) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list without error', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.SnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.SnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.SnapshotGroup()), + ]; + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1beta.ISnapshotGroup[] = []; + const iterable = client.listAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list with error', async () => { + const client = new snapshotgroupsModule.v1beta.SnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.compute.v1beta.ISnapshotGroup[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); +});