google-apis-networkservices_v1 0.47.0 → 0.49.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b299afbff986fbcba98b7b53c28814d44f7abc009029b3befd940138bebf56e
4
- data.tar.gz: 22bb80ab10c9a581aa1b0c5c16c8f3afe0579dc23b97d40d7e256c33d6d9ab48
3
+ metadata.gz: ec3c1f529045ae787786bd9216f8f2c243eb387b28972c15edaeaee38c628ce3
4
+ data.tar.gz: 8260da9071eebc4df527f2ca18b4665e760c29e611e7127ef5c2203030d1afc9
5
5
  SHA512:
6
- metadata.gz: a3222fb7b857752ad4fcf8d43b75f5635eeea55e5327e71887f565a033353a3670d2f605a19f309186b4dc9af63aa449c4040dccb5217824182863b10519ba2c
7
- data.tar.gz: dcb6a79652a58d702b15508fb50f7e45e5359f1eb248e35d4577719577e82ffa52c4249b0e06644855392ee4d9479f567ecdf9859b05a908c892e4fa645b694b
6
+ metadata.gz: ab6c99396bb010bdf46027e2181290bfca59fa356e7b185f79a1654568194e7dc44964183494fde6f8200945a6fc016e456b261d51526bdce49c26fa8bd04e1d
7
+ data.tar.gz: 1a239064e1f69e3354cd3e99ddf22884bcef0f32c16420fb8e38fef9a37e56182882e6505bb9adb38f8964581586a07c1df4ee8e284275d82a3f0d2ba0d36dd0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-networkservices_v1
2
2
 
3
+ ### v0.49.0 (2024-10-27)
4
+
5
+ * Regenerated from discovery document revision 20241010
6
+
7
+ ### v0.48.0 (2024-09-29)
8
+
9
+ * Regenerated from discovery document revision 20240919
10
+
3
11
  ### v0.47.0 (2024-09-22)
4
12
 
5
13
  * Regenerated from discovery document revision 20240913
@@ -503,7 +503,8 @@ module Google
503
503
  include Google::Apis::Core::Hashable
504
504
 
505
505
  # Optional. The `:authority` header in the gRPC request sent from Envoy to the
506
- # extension service. Required for Callout extensions.
506
+ # extension service. Required for Callout extensions. This field is not
507
+ # supported for plugin extensions and must not be set.
507
508
  # Corresponds to the JSON property `authority`
508
509
  # @return [String]
509
510
  attr_accessor :authority
@@ -529,6 +530,18 @@ module Google
529
530
  # @return [Array<String>]
530
531
  attr_accessor :forward_headers
531
532
 
533
+ # Optional. The metadata provided here is included as part of the `
534
+ # metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest`
535
+ # message sent to the extension server. The metadata is available under the
536
+ # namespace `com.google....`. For example: `com.google.lb_traffic_extension.
537
+ # lbtrafficextension1.chain1.ext1`. The following variables are supported in the
538
+ # metadata: ``forwarding_rule_id`` - substituted with the forwarding rule's
539
+ # fully qualified resource name. This field is not supported for plugin
540
+ # extensions and must not be set.
541
+ # Corresponds to the JSON property `metadata`
542
+ # @return [Hash<String,Object>]
543
+ attr_accessor :metadata
544
+
532
545
  # Required. The name for this extension. The name is logged as part of the HTTP
533
546
  # request logs. The name must conform with RFC-1034, is restricted to lower-
534
547
  # cased letters, numbers and hyphens, and can have a maximum length of 63
@@ -544,7 +557,12 @@ module Google
544
557
  # cloud.google.com/compute/docs/reference/rest/v1/backendServices) in the format:
545
558
  # `https://www.googleapis.com/compute/v1/projects/`project`/regions/`region`/
546
559
  # backendServices/`backendService`` or `https://www.googleapis.com/compute/v1/
547
- # projects/`project`/global/backendServices/`backendService``.
560
+ # projects/`project`/global/backendServices/`backendService``. To configure a
561
+ # plugin extension, this must be a reference to a [wasm plugin](https://cloud.
562
+ # google.com/service-extensions/docs/reference/rest/v1beta1/projects.locations.
563
+ # wasmPlugins) in the format: `projects/`project`/locations/`location`/
564
+ # wasmPlugins/`plugin`` or `//networkservices.googleapis.com/projects/`project`/
565
+ # locations/`location`/wasmPlugins/`wasmPlugin``.
548
566
  # Corresponds to the JSON property `service`
549
567
  # @return [String]
550
568
  attr_accessor :service
@@ -557,7 +575,8 @@ module Google
557
575
  attr_accessor :supported_events
558
576
 
559
577
  # Optional. Specifies the timeout for each individual message on the stream. The
560
- # timeout must be between 10-1000 milliseconds. Required for Callout extensions.
578
+ # timeout must be between 10-1000 milliseconds. Required for callout extensions.
579
+ # This field is not supported for plugin extensions and must not be set.
561
580
  # Corresponds to the JSON property `timeout`
562
581
  # @return [String]
563
582
  attr_accessor :timeout
@@ -571,6 +590,7 @@ module Google
571
590
  @authority = args[:authority] if args.key?(:authority)
572
591
  @fail_open = args[:fail_open] if args.key?(:fail_open)
573
592
  @forward_headers = args[:forward_headers] if args.key?(:forward_headers)
593
+ @metadata = args[:metadata] if args.key?(:metadata)
574
594
  @name = args[:name] if args.key?(:name)
575
595
  @service = args[:service] if args.key?(:service)
576
596
  @supported_events = args[:supported_events] if args.key?(:supported_events)
@@ -2174,8 +2194,8 @@ module Google
2174
2194
 
2175
2195
  # Required. All backend services and forwarding rules referenced by this
2176
2196
  # extension must share the same load balancing scheme. Supported values: `
2177
- # INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [
2178
- # Choosing a load balancer](https://cloud.google.com/load-balancing/docs/backend-
2197
+ # INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Backend
2198
+ # services overview](https://cloud.google.com/load-balancing/docs/backend-
2179
2199
  # service).
2180
2200
  # Corresponds to the JSON property `loadBalancingScheme`
2181
2201
  # @return [String]
@@ -2186,8 +2206,8 @@ module Google
2186
2206
  # message sent to the extension server. The metadata is available under the
2187
2207
  # namespace `com.google.lb_route_extension.`. The following variables are
2188
2208
  # supported in the metadata Struct: ``forwarding_rule_id`` - substituted with
2189
- # the forwarding rule's fully qualified resource name. Only one of the resource
2190
- # level metadata and extension level metadata can be set.
2209
+ # the forwarding rule's fully qualified resource name. This field is not
2210
+ # supported for plugin extensions and must not be set.
2191
2211
  # Corresponds to the JSON property `metadata`
2192
2212
  # @return [Hash<String,Object>]
2193
2213
  attr_accessor :metadata
@@ -2264,8 +2284,8 @@ module Google
2264
2284
 
2265
2285
  # Required. All backend services and forwarding rules referenced by this
2266
2286
  # extension must share the same load balancing scheme. Supported values: `
2267
- # INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [
2268
- # Choosing a load balancer](https://cloud.google.com/load-balancing/docs/backend-
2287
+ # INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Backend
2288
+ # services overview](https://cloud.google.com/load-balancing/docs/backend-
2269
2289
  # service).
2270
2290
  # Corresponds to the JSON property `loadBalancingScheme`
2271
2291
  # @return [String]
@@ -2275,8 +2295,8 @@ module Google
2275
2295
  # metadata_context.filter_metadata` map field. The metadata is available under
2276
2296
  # the key `com.google.lb_traffic_extension.`. The following variables are
2277
2297
  # supported in the metadata: ``forwarding_rule_id`` - substituted with the
2278
- # forwarding rule's fully qualified resource name. Only one of the resource
2279
- # level metadata and extension level metadata can be set.
2298
+ # forwarding rule's fully qualified resource name. This field is not supported
2299
+ # for plugin extensions and must not be set.
2280
2300
  # Corresponds to the JSON property `metadata`
2281
2301
  # @return [Hash<String,Object>]
2282
2302
  attr_accessor :metadata
@@ -2672,6 +2692,60 @@ module Google
2672
2692
  end
2673
2693
  end
2674
2694
 
2695
+ # Response returned by the `ListWasmPluginVersions` method.
2696
+ class ListWasmPluginVersionsResponse
2697
+ include Google::Apis::Core::Hashable
2698
+
2699
+ # If there might be more results than those appearing in this response, then `
2700
+ # next_page_token` is included. To get the next set of results, call this method
2701
+ # again using the value of `next_page_token` as `page_token`.
2702
+ # Corresponds to the JSON property `nextPageToken`
2703
+ # @return [String]
2704
+ attr_accessor :next_page_token
2705
+
2706
+ # List of `WasmPluginVersion` resources.
2707
+ # Corresponds to the JSON property `wasmPluginVersions`
2708
+ # @return [Array<Google::Apis::NetworkservicesV1::WasmPluginVersion>]
2709
+ attr_accessor :wasm_plugin_versions
2710
+
2711
+ def initialize(**args)
2712
+ update!(**args)
2713
+ end
2714
+
2715
+ # Update properties of this object
2716
+ def update!(**args)
2717
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2718
+ @wasm_plugin_versions = args[:wasm_plugin_versions] if args.key?(:wasm_plugin_versions)
2719
+ end
2720
+ end
2721
+
2722
+ # Response returned by the `ListWasmPlugins` method.
2723
+ class ListWasmPluginsResponse
2724
+ include Google::Apis::Core::Hashable
2725
+
2726
+ # If there might be more results than those appearing in this response, then `
2727
+ # next_page_token` is included. To get the next set of results, call this method
2728
+ # again using the value of `next_page_token` as `page_token`.
2729
+ # Corresponds to the JSON property `nextPageToken`
2730
+ # @return [String]
2731
+ attr_accessor :next_page_token
2732
+
2733
+ # List of `WasmPlugin` resources.
2734
+ # Corresponds to the JSON property `wasmPlugins`
2735
+ # @return [Array<Google::Apis::NetworkservicesV1::WasmPlugin>]
2736
+ attr_accessor :wasm_plugins
2737
+
2738
+ def initialize(**args)
2739
+ update!(**args)
2740
+ end
2741
+
2742
+ # Update properties of this object
2743
+ def update!(**args)
2744
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2745
+ @wasm_plugins = args[:wasm_plugins] if args.key?(:wasm_plugins)
2746
+ end
2747
+ end
2748
+
2675
2749
  # A resource that represents a Google Cloud location.
2676
2750
  class Location
2677
2751
  include Google::Apis::Core::Hashable
@@ -3145,8 +3219,8 @@ module Google
3145
3219
  # @return [String]
3146
3220
  attr_accessor :load_balancing_algorithm
3147
3221
 
3148
- # Required. Name of the ServiceLbPolicy resource. It matches pattern `projects/`
3149
- # project`/locations/`location`/serviceLbPolicies/`service_lb_policy_name``.
3222
+ # Identifier. Name of the ServiceLbPolicy resource. It matches pattern `projects/
3223
+ # `project`/locations/`location`/serviceLbPolicies/`service_lb_policy_name``.
3150
3224
  # Corresponds to the JSON property `name`
3151
3225
  # @return [String]
3152
3226
  attr_accessor :name
@@ -3778,6 +3852,333 @@ module Google
3778
3852
  @ports = args[:ports] if args.key?(:ports)
3779
3853
  end
3780
3854
  end
3855
+
3856
+ # `WasmPlugin` is a resource representing a service executing a customer-
3857
+ # provided Wasm module.
3858
+ class WasmPlugin
3859
+ include Google::Apis::Core::Hashable
3860
+
3861
+ # Output only. The timestamp when the resource was created.
3862
+ # Corresponds to the JSON property `createTime`
3863
+ # @return [String]
3864
+ attr_accessor :create_time
3865
+
3866
+ # Optional. A human-readable description of the resource.
3867
+ # Corresponds to the JSON property `description`
3868
+ # @return [String]
3869
+ attr_accessor :description
3870
+
3871
+ # Optional. Set of labels associated with the `WasmPlugin` resource. The format
3872
+ # must comply with [the following requirements](/compute/docs/labeling-resources#
3873
+ # requirements).
3874
+ # Corresponds to the JSON property `labels`
3875
+ # @return [Hash<String,String>]
3876
+ attr_accessor :labels
3877
+
3878
+ # Specifies the logging options for the activity performed by this `WasmPlugin`.
3879
+ # If logging is enabled, plugin logs are exported to Cloud Logging.
3880
+ # Corresponds to the JSON property `logConfig`
3881
+ # @return [Google::Apis::NetworkservicesV1::WasmPluginLogConfig]
3882
+ attr_accessor :log_config
3883
+
3884
+ # Optional. The ID of the `WasmPluginVersion` resource that is the currently
3885
+ # serving one. The version referred to must be a child of this `WasmPlugin`
3886
+ # resource.
3887
+ # Corresponds to the JSON property `mainVersionId`
3888
+ # @return [String]
3889
+ attr_accessor :main_version_id
3890
+
3891
+ # Identifier. Name of the `WasmPlugin` resource in the following format: `
3892
+ # projects/`project`/locations/`location`/wasmPlugins/`wasm_plugin``.
3893
+ # Corresponds to the JSON property `name`
3894
+ # @return [String]
3895
+ attr_accessor :name
3896
+
3897
+ # Output only. The timestamp when the resource was updated.
3898
+ # Corresponds to the JSON property `updateTime`
3899
+ # @return [String]
3900
+ attr_accessor :update_time
3901
+
3902
+ # Output only. List of all [Service Extensions](https://cloud.google.com/service-
3903
+ # extensions/docs/overview) that use this `WasmPlugin`.
3904
+ # Corresponds to the JSON property `usedBy`
3905
+ # @return [Array<Google::Apis::NetworkservicesV1::WasmPluginUsedBy>]
3906
+ attr_accessor :used_by
3907
+
3908
+ # Optional. All versions of this `WasmPlugin` in the key-value format. The key
3909
+ # is the resource ID, the value is the `VersionDetails`. Allows to create or
3910
+ # update `WasmPlugin` and its WasmPluginVersions in a single request. When the `
3911
+ # main_version_id` field is not empty it must point to one of the VersionDetails
3912
+ # in the map. If provided in the update request, the new versions replace the
3913
+ # previous set. Any version omitted from the `versions` will be removed. Since
3914
+ # the `WasmPluginVersion` resource is immutable, if the WasmPluginVersion with
3915
+ # the same name already exists and differs the Update request will fail. Note:
3916
+ # In the GET request, this field is populated only if the GetWasmPluginRequest.
3917
+ # view is set to WASM_PLUGIN_VIEW_FULL.
3918
+ # Corresponds to the JSON property `versions`
3919
+ # @return [Hash<String,Google::Apis::NetworkservicesV1::WasmPluginVersionDetails>]
3920
+ attr_accessor :versions
3921
+
3922
+ def initialize(**args)
3923
+ update!(**args)
3924
+ end
3925
+
3926
+ # Update properties of this object
3927
+ def update!(**args)
3928
+ @create_time = args[:create_time] if args.key?(:create_time)
3929
+ @description = args[:description] if args.key?(:description)
3930
+ @labels = args[:labels] if args.key?(:labels)
3931
+ @log_config = args[:log_config] if args.key?(:log_config)
3932
+ @main_version_id = args[:main_version_id] if args.key?(:main_version_id)
3933
+ @name = args[:name] if args.key?(:name)
3934
+ @update_time = args[:update_time] if args.key?(:update_time)
3935
+ @used_by = args[:used_by] if args.key?(:used_by)
3936
+ @versions = args[:versions] if args.key?(:versions)
3937
+ end
3938
+ end
3939
+
3940
+ # Specifies the logging options for the activity performed by this `WasmPlugin`.
3941
+ # If logging is enabled, plugin logs are exported to Cloud Logging.
3942
+ class WasmPluginLogConfig
3943
+ include Google::Apis::Core::Hashable
3944
+
3945
+ # Optional. Specifies whether to enable logging for activity by this `WasmPlugin`
3946
+ # . Defaults to `false`.
3947
+ # Corresponds to the JSON property `enable`
3948
+ # @return [Boolean]
3949
+ attr_accessor :enable
3950
+ alias_method :enable?, :enable
3951
+
3952
+ # Non-empty default. Specificies the lowest level of the plugin logs that are
3953
+ # exported to Cloud Logging. This setting relates to the logs generated by using
3954
+ # logging statements in your Wasm code. This field is can be set only if logging
3955
+ # is enabled for the `WasmPlugin` resource. If the field is not provided when
3956
+ # logging is enabled, it is set to `INFO` by default.
3957
+ # Corresponds to the JSON property `minLogLevel`
3958
+ # @return [String]
3959
+ attr_accessor :min_log_level
3960
+
3961
+ # Non-empty default. Configures the sampling rate of activity logs, where `1.0`
3962
+ # means all logged activity is reported and `0.0` means no activity is reported.
3963
+ # A floating point value between `0.0` and `1.0` indicates that a percentage of
3964
+ # log messages is stored. The default value when logging is enabled is `1.0`.
3965
+ # The value of the field must be between `0` and `1` (inclusive). This field can
3966
+ # only be specified if logging is enabled for this `WasmPlugin`.
3967
+ # Corresponds to the JSON property `sampleRate`
3968
+ # @return [Float]
3969
+ attr_accessor :sample_rate
3970
+
3971
+ def initialize(**args)
3972
+ update!(**args)
3973
+ end
3974
+
3975
+ # Update properties of this object
3976
+ def update!(**args)
3977
+ @enable = args[:enable] if args.key?(:enable)
3978
+ @min_log_level = args[:min_log_level] if args.key?(:min_log_level)
3979
+ @sample_rate = args[:sample_rate] if args.key?(:sample_rate)
3980
+ end
3981
+ end
3982
+
3983
+ # Defines a resource that uses the `WasmPlugin`.
3984
+ class WasmPluginUsedBy
3985
+ include Google::Apis::Core::Hashable
3986
+
3987
+ # Output only. Full name of the resource https://google.aip.dev/122#full-
3988
+ # resource-names, e.g. `//networkservices.googleapis.com/projects/`project`/
3989
+ # locations/`location`/lbRouteExtensions/`extension``
3990
+ # Corresponds to the JSON property `name`
3991
+ # @return [String]
3992
+ attr_accessor :name
3993
+
3994
+ def initialize(**args)
3995
+ update!(**args)
3996
+ end
3997
+
3998
+ # Update properties of this object
3999
+ def update!(**args)
4000
+ @name = args[:name] if args.key?(:name)
4001
+ end
4002
+ end
4003
+
4004
+ # A single immutable version of a `WasmPlugin`. Defines the Wasm module used and
4005
+ # optionally its runtime config.
4006
+ class WasmPluginVersion
4007
+ include Google::Apis::Core::Hashable
4008
+
4009
+ # Output only. The timestamp when the resource was created.
4010
+ # Corresponds to the JSON property `createTime`
4011
+ # @return [String]
4012
+ attr_accessor :create_time
4013
+
4014
+ # Optional. A human-readable description of the resource.
4015
+ # Corresponds to the JSON property `description`
4016
+ # @return [String]
4017
+ attr_accessor :description
4018
+
4019
+ # Output only. The resolved digest for the image specified in `image`. The
4020
+ # digest is resolved during the creation of `WasmPluginVersion` resource. This
4021
+ # field holds the digest value regardless of whether a tag or digest was
4022
+ # originally specified in the `image` field.
4023
+ # Corresponds to the JSON property `imageDigest`
4024
+ # @return [String]
4025
+ attr_accessor :image_digest
4026
+
4027
+ # Optional. URI of the container image containing the Wasm plugin, stored in the
4028
+ # Artifact Registry. When a new `WasmPluginVersion` resource is created, the
4029
+ # digest of the container image is saved in the `image_digest` field. When
4030
+ # downloading an image, the digest value is used instead of an image tag.
4031
+ # Corresponds to the JSON property `imageUri`
4032
+ # @return [String]
4033
+ attr_accessor :image_uri
4034
+
4035
+ # Optional. Set of labels associated with the `WasmPluginVersion` resource.
4036
+ # Corresponds to the JSON property `labels`
4037
+ # @return [Hash<String,String>]
4038
+ attr_accessor :labels
4039
+
4040
+ # Identifier. Name of the `WasmPluginVersion` resource in the following format: `
4041
+ # projects/`project`/locations/`location`/wasmPlugins/`wasm_plugin`/ versions/`
4042
+ # wasm_plugin_version``.
4043
+ # Corresponds to the JSON property `name`
4044
+ # @return [String]
4045
+ attr_accessor :name
4046
+
4047
+ # Configuration for the Wasm plugin. The configuration is provided to the Wasm
4048
+ # plugin at runtime through the `ON_CONFIGURE` callback. When a new `
4049
+ # WasmPluginVersion` resource is created, the digest of the contents is saved in
4050
+ # the `plugin_config_digest` field.
4051
+ # Corresponds to the JSON property `pluginConfigData`
4052
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
4053
+ # @return [String]
4054
+ attr_accessor :plugin_config_data
4055
+
4056
+ # Output only. This field holds the digest (usually checksum) value for the
4057
+ # plugin configuration. The value is calculated based on the contents of the `
4058
+ # plugin_config_data` or the container image defined by the `plugin_config_uri`
4059
+ # field.
4060
+ # Corresponds to the JSON property `pluginConfigDigest`
4061
+ # @return [String]
4062
+ attr_accessor :plugin_config_digest
4063
+
4064
+ # URI of the Wasm plugin configuration stored in the Artifact Registry. The
4065
+ # configuration is provided to the plugin at runtime through the `ON_CONFIGURE`
4066
+ # callback. The container image must contain only a single file with the name `
4067
+ # plugin.config`. When a new `WasmPluginVersion` resource is created, the digest
4068
+ # of the container image is saved in the `plugin_config_digest` field.
4069
+ # Corresponds to the JSON property `pluginConfigUri`
4070
+ # @return [String]
4071
+ attr_accessor :plugin_config_uri
4072
+
4073
+ # Output only. The timestamp when the resource was updated.
4074
+ # Corresponds to the JSON property `updateTime`
4075
+ # @return [String]
4076
+ attr_accessor :update_time
4077
+
4078
+ def initialize(**args)
4079
+ update!(**args)
4080
+ end
4081
+
4082
+ # Update properties of this object
4083
+ def update!(**args)
4084
+ @create_time = args[:create_time] if args.key?(:create_time)
4085
+ @description = args[:description] if args.key?(:description)
4086
+ @image_digest = args[:image_digest] if args.key?(:image_digest)
4087
+ @image_uri = args[:image_uri] if args.key?(:image_uri)
4088
+ @labels = args[:labels] if args.key?(:labels)
4089
+ @name = args[:name] if args.key?(:name)
4090
+ @plugin_config_data = args[:plugin_config_data] if args.key?(:plugin_config_data)
4091
+ @plugin_config_digest = args[:plugin_config_digest] if args.key?(:plugin_config_digest)
4092
+ @plugin_config_uri = args[:plugin_config_uri] if args.key?(:plugin_config_uri)
4093
+ @update_time = args[:update_time] if args.key?(:update_time)
4094
+ end
4095
+ end
4096
+
4097
+ # Details of a `WasmPluginVersion` resource to be inlined in the `WasmPlugin`
4098
+ # resource.
4099
+ class WasmPluginVersionDetails
4100
+ include Google::Apis::Core::Hashable
4101
+
4102
+ # Output only. The timestamp when the resource was created.
4103
+ # Corresponds to the JSON property `createTime`
4104
+ # @return [String]
4105
+ attr_accessor :create_time
4106
+
4107
+ # Optional. A human-readable description of the resource.
4108
+ # Corresponds to the JSON property `description`
4109
+ # @return [String]
4110
+ attr_accessor :description
4111
+
4112
+ # Output only. The resolved digest for the image specified in `image`. The
4113
+ # digest is resolved during the creation of a `WasmPluginVersion` resource. This
4114
+ # field holds the digest value regardless of whether a tag or digest was
4115
+ # originally specified in the `image` field.
4116
+ # Corresponds to the JSON property `imageDigest`
4117
+ # @return [String]
4118
+ attr_accessor :image_digest
4119
+
4120
+ # Optional. URI of the container image containing the Wasm module, stored in the
4121
+ # Artifact Registry. The container image must contain only a single file with
4122
+ # the name `plugin.wasm`. When a new `WasmPluginVersion` resource is created,
4123
+ # the URI gets resolved to an image digest and saved in the `image_digest` field.
4124
+ # Corresponds to the JSON property `imageUri`
4125
+ # @return [String]
4126
+ attr_accessor :image_uri
4127
+
4128
+ # Optional. Set of labels associated with the `WasmPluginVersion` resource.
4129
+ # Corresponds to the JSON property `labels`
4130
+ # @return [Hash<String,String>]
4131
+ attr_accessor :labels
4132
+
4133
+ # Configuration for the Wasm plugin. The configuration is provided to the Wasm
4134
+ # plugin at runtime through the `ON_CONFIGURE` callback. When a new `
4135
+ # WasmPluginVersion` version is created, the digest of the contents is saved in
4136
+ # the `plugin_config_digest` field.
4137
+ # Corresponds to the JSON property `pluginConfigData`
4138
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
4139
+ # @return [String]
4140
+ attr_accessor :plugin_config_data
4141
+
4142
+ # Output only. This field holds the digest (usually checksum) value for the
4143
+ # plugin configuration. The value is calculated based on the contents of the `
4144
+ # plugin_config_data` or the container image defined by the `plugin_config_uri`
4145
+ # field.
4146
+ # Corresponds to the JSON property `pluginConfigDigest`
4147
+ # @return [String]
4148
+ attr_accessor :plugin_config_digest
4149
+
4150
+ # URI of the WasmPlugin configuration stored in the Artifact Registry. The
4151
+ # configuration is provided to the Wasm plugin at runtime through the `
4152
+ # ON_CONFIGURE` callback. The container image must contain only a single file
4153
+ # with the name `plugin.config`. When a new `WasmPluginVersion` resource is
4154
+ # created, the digest of the container image is saved in the `
4155
+ # plugin_config_digest` field.
4156
+ # Corresponds to the JSON property `pluginConfigUri`
4157
+ # @return [String]
4158
+ attr_accessor :plugin_config_uri
4159
+
4160
+ # Output only. The timestamp when the resource was updated.
4161
+ # Corresponds to the JSON property `updateTime`
4162
+ # @return [String]
4163
+ attr_accessor :update_time
4164
+
4165
+ def initialize(**args)
4166
+ update!(**args)
4167
+ end
4168
+
4169
+ # Update properties of this object
4170
+ def update!(**args)
4171
+ @create_time = args[:create_time] if args.key?(:create_time)
4172
+ @description = args[:description] if args.key?(:description)
4173
+ @image_digest = args[:image_digest] if args.key?(:image_digest)
4174
+ @image_uri = args[:image_uri] if args.key?(:image_uri)
4175
+ @labels = args[:labels] if args.key?(:labels)
4176
+ @plugin_config_data = args[:plugin_config_data] if args.key?(:plugin_config_data)
4177
+ @plugin_config_digest = args[:plugin_config_digest] if args.key?(:plugin_config_digest)
4178
+ @plugin_config_uri = args[:plugin_config_uri] if args.key?(:plugin_config_uri)
4179
+ @update_time = args[:update_time] if args.key?(:update_time)
4180
+ end
4181
+ end
3781
4182
  end
3782
4183
  end
3783
4184
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module NetworkservicesV1
18
18
  # Version of the google-apis-networkservices_v1 gem
19
- GEM_VERSION = "0.47.0"
19
+ GEM_VERSION = "0.49.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240913"
25
+ REVISION = "20241010"
26
26
  end
27
27
  end
28
28
  end
@@ -382,6 +382,18 @@ module Google
382
382
  include Google::Apis::Core::JsonObjectSupport
383
383
  end
384
384
 
385
+ class ListWasmPluginVersionsResponse
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
391
+ class ListWasmPluginsResponse
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
385
397
  class Location
386
398
  class Representation < Google::Apis::Core::JsonRepresentation; end
387
399
 
@@ -538,6 +550,36 @@ module Google
538
550
  include Google::Apis::Core::JsonObjectSupport
539
551
  end
540
552
 
553
+ class WasmPlugin
554
+ class Representation < Google::Apis::Core::JsonRepresentation; end
555
+
556
+ include Google::Apis::Core::JsonObjectSupport
557
+ end
558
+
559
+ class WasmPluginLogConfig
560
+ class Representation < Google::Apis::Core::JsonRepresentation; end
561
+
562
+ include Google::Apis::Core::JsonObjectSupport
563
+ end
564
+
565
+ class WasmPluginUsedBy
566
+ class Representation < Google::Apis::Core::JsonRepresentation; end
567
+
568
+ include Google::Apis::Core::JsonObjectSupport
569
+ end
570
+
571
+ class WasmPluginVersion
572
+ class Representation < Google::Apis::Core::JsonRepresentation; end
573
+
574
+ include Google::Apis::Core::JsonObjectSupport
575
+ end
576
+
577
+ class WasmPluginVersionDetails
578
+ class Representation < Google::Apis::Core::JsonRepresentation; end
579
+
580
+ include Google::Apis::Core::JsonObjectSupport
581
+ end
582
+
541
583
  class AuditConfig
542
584
  # @private
543
585
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -648,6 +690,7 @@ module Google
648
690
  property :authority, as: 'authority'
649
691
  property :fail_open, as: 'failOpen'
650
692
  collection :forward_headers, as: 'forwardHeaders'
693
+ hash :metadata, as: 'metadata'
651
694
  property :name, as: 'name'
652
695
  property :service, as: 'service'
653
696
  collection :supported_events, as: 'supportedEvents'
@@ -1179,6 +1222,24 @@ module Google
1179
1222
  end
1180
1223
  end
1181
1224
 
1225
+ class ListWasmPluginVersionsResponse
1226
+ # @private
1227
+ class Representation < Google::Apis::Core::JsonRepresentation
1228
+ property :next_page_token, as: 'nextPageToken'
1229
+ collection :wasm_plugin_versions, as: 'wasmPluginVersions', class: Google::Apis::NetworkservicesV1::WasmPluginVersion, decorator: Google::Apis::NetworkservicesV1::WasmPluginVersion::Representation
1230
+
1231
+ end
1232
+ end
1233
+
1234
+ class ListWasmPluginsResponse
1235
+ # @private
1236
+ class Representation < Google::Apis::Core::JsonRepresentation
1237
+ property :next_page_token, as: 'nextPageToken'
1238
+ collection :wasm_plugins, as: 'wasmPlugins', class: Google::Apis::NetworkservicesV1::WasmPlugin, decorator: Google::Apis::NetworkservicesV1::WasmPlugin::Representation
1239
+
1240
+ end
1241
+ end
1242
+
1182
1243
  class Location
1183
1244
  # @private
1184
1245
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1439,6 +1500,71 @@ module Google
1439
1500
  collection :ports, as: 'ports'
1440
1501
  end
1441
1502
  end
1503
+
1504
+ class WasmPlugin
1505
+ # @private
1506
+ class Representation < Google::Apis::Core::JsonRepresentation
1507
+ property :create_time, as: 'createTime'
1508
+ property :description, as: 'description'
1509
+ hash :labels, as: 'labels'
1510
+ property :log_config, as: 'logConfig', class: Google::Apis::NetworkservicesV1::WasmPluginLogConfig, decorator: Google::Apis::NetworkservicesV1::WasmPluginLogConfig::Representation
1511
+
1512
+ property :main_version_id, as: 'mainVersionId'
1513
+ property :name, as: 'name'
1514
+ property :update_time, as: 'updateTime'
1515
+ collection :used_by, as: 'usedBy', class: Google::Apis::NetworkservicesV1::WasmPluginUsedBy, decorator: Google::Apis::NetworkservicesV1::WasmPluginUsedBy::Representation
1516
+
1517
+ hash :versions, as: 'versions', class: Google::Apis::NetworkservicesV1::WasmPluginVersionDetails, decorator: Google::Apis::NetworkservicesV1::WasmPluginVersionDetails::Representation
1518
+
1519
+ end
1520
+ end
1521
+
1522
+ class WasmPluginLogConfig
1523
+ # @private
1524
+ class Representation < Google::Apis::Core::JsonRepresentation
1525
+ property :enable, as: 'enable'
1526
+ property :min_log_level, as: 'minLogLevel'
1527
+ property :sample_rate, as: 'sampleRate'
1528
+ end
1529
+ end
1530
+
1531
+ class WasmPluginUsedBy
1532
+ # @private
1533
+ class Representation < Google::Apis::Core::JsonRepresentation
1534
+ property :name, as: 'name'
1535
+ end
1536
+ end
1537
+
1538
+ class WasmPluginVersion
1539
+ # @private
1540
+ class Representation < Google::Apis::Core::JsonRepresentation
1541
+ property :create_time, as: 'createTime'
1542
+ property :description, as: 'description'
1543
+ property :image_digest, as: 'imageDigest'
1544
+ property :image_uri, as: 'imageUri'
1545
+ hash :labels, as: 'labels'
1546
+ property :name, as: 'name'
1547
+ property :plugin_config_data, :base64 => true, as: 'pluginConfigData'
1548
+ property :plugin_config_digest, as: 'pluginConfigDigest'
1549
+ property :plugin_config_uri, as: 'pluginConfigUri'
1550
+ property :update_time, as: 'updateTime'
1551
+ end
1552
+ end
1553
+
1554
+ class WasmPluginVersionDetails
1555
+ # @private
1556
+ class Representation < Google::Apis::Core::JsonRepresentation
1557
+ property :create_time, as: 'createTime'
1558
+ property :description, as: 'description'
1559
+ property :image_digest, as: 'imageDigest'
1560
+ property :image_uri, as: 'imageUri'
1561
+ hash :labels, as: 'labels'
1562
+ property :plugin_config_data, :base64 => true, as: 'pluginConfigData'
1563
+ property :plugin_config_digest, as: 'pluginConfigDigest'
1564
+ property :plugin_config_uri, as: 'pluginConfigUri'
1565
+ property :update_time, as: 'updateTime'
1566
+ end
1567
+ end
1442
1568
  end
1443
1569
  end
1444
1570
  end
@@ -1393,8 +1393,8 @@ module Google
1393
1393
  # UUID is not supported (00000000-0000-0000-0000-000000000000).
1394
1394
  # @param [String] update_mask
1395
1395
  # Optional. Used to specify the fields to be overwritten in the `
1396
- # LbRouteExtension` resource by the update. The fields specified in the
1397
- # update_mask are relative to the resource, not the full request. A field is
1396
+ # LbRouteExtension` resource by the update. The fields specified in the `
1397
+ # update_mask` are relative to the resource, not the full request. A field is
1398
1398
  # overwritten if it is in the mask. If the user does not specify a mask, then
1399
1399
  # all fields are overwritten.
1400
1400
  # @param [String] fields
@@ -1617,8 +1617,8 @@ module Google
1617
1617
  # UUID is not supported (00000000-0000-0000-0000-000000000000).
1618
1618
  # @param [String] update_mask
1619
1619
  # Optional. Used to specify the fields to be overwritten in the `
1620
- # LbTrafficExtension` resource by the update. The fields specified in the
1621
- # update_mask are relative to the resource, not the full request. A field is
1620
+ # LbTrafficExtension` resource by the update. The fields specified in the `
1621
+ # update_mask` are relative to the resource, not the full request. A field is
1622
1622
  # overwritten if it is in the mask. If the user does not specify a mask, then
1623
1623
  # all fields are overwritten.
1624
1624
  # @param [String] fields
@@ -2214,51 +2214,6 @@ module Google
2214
2214
  execute_or_queue_command(command, &block)
2215
2215
  end
2216
2216
 
2217
- # Gets the access control policy for a resource. Returns an empty policy if the
2218
- # resource exists and does not have a policy set.
2219
- # @param [String] resource
2220
- # REQUIRED: The resource for which the policy is being requested. See [Resource
2221
- # names](https://cloud.google.com/apis/design/resource_names) for the
2222
- # appropriate value for this field.
2223
- # @param [Fixnum] options_requested_policy_version
2224
- # Optional. The maximum policy version that will be used to format the policy.
2225
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
2226
- # rejected. Requests for policies with any conditional role bindings must
2227
- # specify version 3. Policies with no conditional role bindings may specify any
2228
- # valid value or leave the field unset. The policy in the response might use the
2229
- # policy version that you specified, or it might use a lower policy version. For
2230
- # example, if you specify version 3, but the policy has no conditional role
2231
- # bindings, the response uses version 1. To learn which resources support
2232
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2233
- # google.com/iam/help/conditions/resource-policies).
2234
- # @param [String] fields
2235
- # Selector specifying which fields to include in a partial response.
2236
- # @param [String] quota_user
2237
- # Available to use for quota purposes for server-side applications. Can be any
2238
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2239
- # @param [Google::Apis::RequestOptions] options
2240
- # Request-specific options
2241
- #
2242
- # @yield [result, err] Result & error if block supplied
2243
- # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
2244
- # @yieldparam err [StandardError] error object if request failed
2245
- #
2246
- # @return [Google::Apis::NetworkservicesV1::Policy]
2247
- #
2248
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2249
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2250
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2251
- def get_project_location_service_lb_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
2252
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
2253
- command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
2254
- command.response_class = Google::Apis::NetworkservicesV1::Policy
2255
- command.params['resource'] = resource unless resource.nil?
2256
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
2257
- command.query['fields'] = fields unless fields.nil?
2258
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2259
- execute_or_queue_command(command, &block)
2260
- end
2261
-
2262
2217
  # Lists ServiceLbPolicies in a given project and location.
2263
2218
  # @param [String] parent
2264
2219
  # Required. The project and location from which the ServiceLbPolicies should be
@@ -2300,8 +2255,8 @@ module Google
2300
2255
 
2301
2256
  # Updates the parameters of a single ServiceLbPolicy.
2302
2257
  # @param [String] name
2303
- # Required. Name of the ServiceLbPolicy resource. It matches pattern `projects/`
2304
- # project`/locations/`location`/serviceLbPolicies/`service_lb_policy_name``.
2258
+ # Identifier. Name of the ServiceLbPolicy resource. It matches pattern `projects/
2259
+ # `project`/locations/`location`/serviceLbPolicies/`service_lb_policy_name``.
2305
2260
  # @param [Google::Apis::NetworkservicesV1::ServiceLbPolicy] service_lb_policy_object
2306
2261
  # @param [String] update_mask
2307
2262
  # Optional. Field mask is used to specify the fields to be overwritten in the
@@ -2339,82 +2294,6 @@ module Google
2339
2294
  execute_or_queue_command(command, &block)
2340
2295
  end
2341
2296
 
2342
- # Sets the access control policy on the specified resource. Replaces any
2343
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
2344
- # PERMISSION_DENIED` errors.
2345
- # @param [String] resource
2346
- # REQUIRED: The resource for which the policy is being specified. See [Resource
2347
- # names](https://cloud.google.com/apis/design/resource_names) for the
2348
- # appropriate value for this field.
2349
- # @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
2350
- # @param [String] fields
2351
- # Selector specifying which fields to include in a partial response.
2352
- # @param [String] quota_user
2353
- # Available to use for quota purposes for server-side applications. Can be any
2354
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2355
- # @param [Google::Apis::RequestOptions] options
2356
- # Request-specific options
2357
- #
2358
- # @yield [result, err] Result & error if block supplied
2359
- # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
2360
- # @yieldparam err [StandardError] error object if request failed
2361
- #
2362
- # @return [Google::Apis::NetworkservicesV1::Policy]
2363
- #
2364
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2365
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2366
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2367
- def set_service_lb_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2368
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
2369
- command.request_representation = Google::Apis::NetworkservicesV1::SetIamPolicyRequest::Representation
2370
- command.request_object = set_iam_policy_request_object
2371
- command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
2372
- command.response_class = Google::Apis::NetworkservicesV1::Policy
2373
- command.params['resource'] = resource unless resource.nil?
2374
- command.query['fields'] = fields unless fields.nil?
2375
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2376
- execute_or_queue_command(command, &block)
2377
- end
2378
-
2379
- # Returns permissions that a caller has on the specified resource. If the
2380
- # resource does not exist, this will return an empty set of permissions, not a `
2381
- # NOT_FOUND` error. Note: This operation is designed to be used for building
2382
- # permission-aware UIs and command-line tools, not for authorization checking.
2383
- # This operation may "fail open" without warning.
2384
- # @param [String] resource
2385
- # REQUIRED: The resource for which the policy detail is being requested. See [
2386
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
2387
- # appropriate value for this field.
2388
- # @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
2389
- # @param [String] fields
2390
- # Selector specifying which fields to include in a partial response.
2391
- # @param [String] quota_user
2392
- # Available to use for quota purposes for server-side applications. Can be any
2393
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2394
- # @param [Google::Apis::RequestOptions] options
2395
- # Request-specific options
2396
- #
2397
- # @yield [result, err] Result & error if block supplied
2398
- # @yieldparam result [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse] parsed result object
2399
- # @yieldparam err [StandardError] error object if request failed
2400
- #
2401
- # @return [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse]
2402
- #
2403
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2404
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2405
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2406
- def test_service_lb_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2407
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
2408
- command.request_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsRequest::Representation
2409
- command.request_object = test_iam_permissions_request_object
2410
- command.response_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse::Representation
2411
- command.response_class = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse
2412
- command.params['resource'] = resource unless resource.nil?
2413
- command.query['fields'] = fields unless fields.nil?
2414
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2415
- execute_or_queue_command(command, &block)
2416
- end
2417
-
2418
2297
  # Creates a new TcpRoute in a given project and location.
2419
2298
  # @param [String] parent
2420
2299
  # Required. The parent resource of the TcpRoute. Must be in the format `projects/
@@ -2772,6 +2651,337 @@ module Google
2772
2651
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2773
2652
  execute_or_queue_command(command, &block)
2774
2653
  end
2654
+
2655
+ # Creates a new `WasmPlugin` resource in a given project and location.
2656
+ # @param [String] parent
2657
+ # Required. The parent resource of the `WasmPlugin` resource. Must be in the
2658
+ # format `projects/`project`/locations/global`.
2659
+ # @param [Google::Apis::NetworkservicesV1::WasmPlugin] wasm_plugin_object
2660
+ # @param [String] wasm_plugin_id
2661
+ # Required. User-provided ID of the `WasmPlugin` resource to be created.
2662
+ # @param [String] fields
2663
+ # Selector specifying which fields to include in a partial response.
2664
+ # @param [String] quota_user
2665
+ # Available to use for quota purposes for server-side applications. Can be any
2666
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2667
+ # @param [Google::Apis::RequestOptions] options
2668
+ # Request-specific options
2669
+ #
2670
+ # @yield [result, err] Result & error if block supplied
2671
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
2672
+ # @yieldparam err [StandardError] error object if request failed
2673
+ #
2674
+ # @return [Google::Apis::NetworkservicesV1::Operation]
2675
+ #
2676
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2677
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2678
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2679
+ def create_project_location_wasm_plugin(parent, wasm_plugin_object = nil, wasm_plugin_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2680
+ command = make_simple_command(:post, 'v1/{+parent}/wasmPlugins', options)
2681
+ command.request_representation = Google::Apis::NetworkservicesV1::WasmPlugin::Representation
2682
+ command.request_object = wasm_plugin_object
2683
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
2684
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
2685
+ command.params['parent'] = parent unless parent.nil?
2686
+ command.query['wasmPluginId'] = wasm_plugin_id unless wasm_plugin_id.nil?
2687
+ command.query['fields'] = fields unless fields.nil?
2688
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2689
+ execute_or_queue_command(command, &block)
2690
+ end
2691
+
2692
+ # Deletes the specified `WasmPlugin` resource.
2693
+ # @param [String] name
2694
+ # Required. A name of the `WasmPlugin` resource to delete. Must be in the format
2695
+ # `projects/`project`/locations/global/wasmPlugins/`wasm_plugin``.
2696
+ # @param [String] fields
2697
+ # Selector specifying which fields to include in a partial response.
2698
+ # @param [String] quota_user
2699
+ # Available to use for quota purposes for server-side applications. Can be any
2700
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2701
+ # @param [Google::Apis::RequestOptions] options
2702
+ # Request-specific options
2703
+ #
2704
+ # @yield [result, err] Result & error if block supplied
2705
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
2706
+ # @yieldparam err [StandardError] error object if request failed
2707
+ #
2708
+ # @return [Google::Apis::NetworkservicesV1::Operation]
2709
+ #
2710
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2711
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2712
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2713
+ def delete_project_location_wasm_plugin(name, fields: nil, quota_user: nil, options: nil, &block)
2714
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2715
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
2716
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
2717
+ command.params['name'] = name unless name.nil?
2718
+ command.query['fields'] = fields unless fields.nil?
2719
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2720
+ execute_or_queue_command(command, &block)
2721
+ end
2722
+
2723
+ # Gets details of the specified `WasmPlugin` resource.
2724
+ # @param [String] name
2725
+ # Required. A name of the `WasmPlugin` resource to get. Must be in the format `
2726
+ # projects/`project`/locations/global/wasmPlugins/`wasm_plugin``.
2727
+ # @param [String] view
2728
+ # Determine how much data should be returned by the API. See [AIP-157](https://
2729
+ # google.aip.dev/157).
2730
+ # @param [String] fields
2731
+ # Selector specifying which fields to include in a partial response.
2732
+ # @param [String] quota_user
2733
+ # Available to use for quota purposes for server-side applications. Can be any
2734
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2735
+ # @param [Google::Apis::RequestOptions] options
2736
+ # Request-specific options
2737
+ #
2738
+ # @yield [result, err] Result & error if block supplied
2739
+ # @yieldparam result [Google::Apis::NetworkservicesV1::WasmPlugin] parsed result object
2740
+ # @yieldparam err [StandardError] error object if request failed
2741
+ #
2742
+ # @return [Google::Apis::NetworkservicesV1::WasmPlugin]
2743
+ #
2744
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2745
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2746
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2747
+ def get_project_location_wasm_plugin(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
2748
+ command = make_simple_command(:get, 'v1/{+name}', options)
2749
+ command.response_representation = Google::Apis::NetworkservicesV1::WasmPlugin::Representation
2750
+ command.response_class = Google::Apis::NetworkservicesV1::WasmPlugin
2751
+ command.params['name'] = name unless name.nil?
2752
+ command.query['view'] = view unless view.nil?
2753
+ command.query['fields'] = fields unless fields.nil?
2754
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2755
+ execute_or_queue_command(command, &block)
2756
+ end
2757
+
2758
+ # Lists `WasmPlugin` resources in a given project and location.
2759
+ # @param [String] parent
2760
+ # Required. The project and location from which the `WasmPlugin` resources are
2761
+ # listed, specified in the following format: `projects/`project`/locations/
2762
+ # global`.
2763
+ # @param [Fixnum] page_size
2764
+ # Maximum number of `WasmPlugin` resources to return per call. If not specified,
2765
+ # at most 50 `WasmPlugin`s are returned. The maximum value is 1000; values above
2766
+ # 1000 are coerced to 1000.
2767
+ # @param [String] page_token
2768
+ # The value returned by the last `ListWasmPluginsResponse` call. Indicates that
2769
+ # this is a continuation of a prior `ListWasmPlugins` call, and that the next
2770
+ # page of data is to be returned.
2771
+ # @param [String] fields
2772
+ # Selector specifying which fields to include in a partial response.
2773
+ # @param [String] quota_user
2774
+ # Available to use for quota purposes for server-side applications. Can be any
2775
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2776
+ # @param [Google::Apis::RequestOptions] options
2777
+ # Request-specific options
2778
+ #
2779
+ # @yield [result, err] Result & error if block supplied
2780
+ # @yieldparam result [Google::Apis::NetworkservicesV1::ListWasmPluginsResponse] parsed result object
2781
+ # @yieldparam err [StandardError] error object if request failed
2782
+ #
2783
+ # @return [Google::Apis::NetworkservicesV1::ListWasmPluginsResponse]
2784
+ #
2785
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2786
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2787
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2788
+ def list_project_location_wasm_plugins(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2789
+ command = make_simple_command(:get, 'v1/{+parent}/wasmPlugins', options)
2790
+ command.response_representation = Google::Apis::NetworkservicesV1::ListWasmPluginsResponse::Representation
2791
+ command.response_class = Google::Apis::NetworkservicesV1::ListWasmPluginsResponse
2792
+ command.params['parent'] = parent unless parent.nil?
2793
+ command.query['pageSize'] = page_size unless page_size.nil?
2794
+ command.query['pageToken'] = page_token unless page_token.nil?
2795
+ command.query['fields'] = fields unless fields.nil?
2796
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2797
+ execute_or_queue_command(command, &block)
2798
+ end
2799
+
2800
+ # Updates the parameters of the specified `WasmPlugin` resource.
2801
+ # @param [String] name
2802
+ # Identifier. Name of the `WasmPlugin` resource in the following format: `
2803
+ # projects/`project`/locations/`location`/wasmPlugins/`wasm_plugin``.
2804
+ # @param [Google::Apis::NetworkservicesV1::WasmPlugin] wasm_plugin_object
2805
+ # @param [String] update_mask
2806
+ # Optional. Used to specify the fields to be overwritten in the `WasmPlugin`
2807
+ # resource by the update. The fields specified in the `update_mask` field are
2808
+ # relative to the resource, not the full request. An omitted `update_mask` field
2809
+ # is treated as an implied `update_mask` field equivalent to all fields that are
2810
+ # populated (that have a non-empty value). The `update_mask` field supports a
2811
+ # special value `*`, which means that each field in the given `WasmPlugin`
2812
+ # resource (including the empty ones) replaces the current value.
2813
+ # @param [String] fields
2814
+ # Selector specifying which fields to include in a partial response.
2815
+ # @param [String] quota_user
2816
+ # Available to use for quota purposes for server-side applications. Can be any
2817
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2818
+ # @param [Google::Apis::RequestOptions] options
2819
+ # Request-specific options
2820
+ #
2821
+ # @yield [result, err] Result & error if block supplied
2822
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
2823
+ # @yieldparam err [StandardError] error object if request failed
2824
+ #
2825
+ # @return [Google::Apis::NetworkservicesV1::Operation]
2826
+ #
2827
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2828
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2829
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2830
+ def patch_project_location_wasm_plugin(name, wasm_plugin_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2831
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2832
+ command.request_representation = Google::Apis::NetworkservicesV1::WasmPlugin::Representation
2833
+ command.request_object = wasm_plugin_object
2834
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
2835
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
2836
+ command.params['name'] = name unless name.nil?
2837
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2838
+ command.query['fields'] = fields unless fields.nil?
2839
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2840
+ execute_or_queue_command(command, &block)
2841
+ end
2842
+
2843
+ # Creates a new `WasmPluginVersion` resource in a given project and location.
2844
+ # @param [String] parent
2845
+ # Required. The parent resource of the `WasmPluginVersion` resource. Must be in
2846
+ # the format `projects/`project`/locations/global/wasmPlugins/`wasm_plugin``.
2847
+ # @param [Google::Apis::NetworkservicesV1::WasmPluginVersion] wasm_plugin_version_object
2848
+ # @param [String] wasm_plugin_version_id
2849
+ # Required. User-provided ID of the `WasmPluginVersion` resource to be created.
2850
+ # @param [String] fields
2851
+ # Selector specifying which fields to include in a partial response.
2852
+ # @param [String] quota_user
2853
+ # Available to use for quota purposes for server-side applications. Can be any
2854
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2855
+ # @param [Google::Apis::RequestOptions] options
2856
+ # Request-specific options
2857
+ #
2858
+ # @yield [result, err] Result & error if block supplied
2859
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
2860
+ # @yieldparam err [StandardError] error object if request failed
2861
+ #
2862
+ # @return [Google::Apis::NetworkservicesV1::Operation]
2863
+ #
2864
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2865
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2866
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2867
+ def create_project_location_wasm_plugin_version(parent, wasm_plugin_version_object = nil, wasm_plugin_version_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2868
+ command = make_simple_command(:post, 'v1/{+parent}/versions', options)
2869
+ command.request_representation = Google::Apis::NetworkservicesV1::WasmPluginVersion::Representation
2870
+ command.request_object = wasm_plugin_version_object
2871
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
2872
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
2873
+ command.params['parent'] = parent unless parent.nil?
2874
+ command.query['wasmPluginVersionId'] = wasm_plugin_version_id unless wasm_plugin_version_id.nil?
2875
+ command.query['fields'] = fields unless fields.nil?
2876
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2877
+ execute_or_queue_command(command, &block)
2878
+ end
2879
+
2880
+ # Deletes the specified `WasmPluginVersion` resource.
2881
+ # @param [String] name
2882
+ # Required. A name of the `WasmPluginVersion` resource to delete. Must be in the
2883
+ # format `projects/`project`/locations/global/wasmPlugins/`wasm_plugin`/versions/
2884
+ # `wasm_plugin_version``.
2885
+ # @param [String] fields
2886
+ # Selector specifying which fields to include in a partial response.
2887
+ # @param [String] quota_user
2888
+ # Available to use for quota purposes for server-side applications. Can be any
2889
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2890
+ # @param [Google::Apis::RequestOptions] options
2891
+ # Request-specific options
2892
+ #
2893
+ # @yield [result, err] Result & error if block supplied
2894
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
2895
+ # @yieldparam err [StandardError] error object if request failed
2896
+ #
2897
+ # @return [Google::Apis::NetworkservicesV1::Operation]
2898
+ #
2899
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2900
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2901
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2902
+ def delete_project_location_wasm_plugin_version(name, fields: nil, quota_user: nil, options: nil, &block)
2903
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2904
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
2905
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
2906
+ command.params['name'] = name unless name.nil?
2907
+ command.query['fields'] = fields unless fields.nil?
2908
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2909
+ execute_or_queue_command(command, &block)
2910
+ end
2911
+
2912
+ # Gets details of the specified `WasmPluginVersion` resource.
2913
+ # @param [String] name
2914
+ # Required. A name of the `WasmPluginVersion` resource to get. Must be in the
2915
+ # format `projects/`project`/locations/global/wasmPlugins/`wasm_plugin`/versions/
2916
+ # `wasm_plugin_version``.
2917
+ # @param [String] fields
2918
+ # Selector specifying which fields to include in a partial response.
2919
+ # @param [String] quota_user
2920
+ # Available to use for quota purposes for server-side applications. Can be any
2921
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2922
+ # @param [Google::Apis::RequestOptions] options
2923
+ # Request-specific options
2924
+ #
2925
+ # @yield [result, err] Result & error if block supplied
2926
+ # @yieldparam result [Google::Apis::NetworkservicesV1::WasmPluginVersion] parsed result object
2927
+ # @yieldparam err [StandardError] error object if request failed
2928
+ #
2929
+ # @return [Google::Apis::NetworkservicesV1::WasmPluginVersion]
2930
+ #
2931
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2932
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2933
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2934
+ def get_project_location_wasm_plugin_version(name, fields: nil, quota_user: nil, options: nil, &block)
2935
+ command = make_simple_command(:get, 'v1/{+name}', options)
2936
+ command.response_representation = Google::Apis::NetworkservicesV1::WasmPluginVersion::Representation
2937
+ command.response_class = Google::Apis::NetworkservicesV1::WasmPluginVersion
2938
+ command.params['name'] = name unless name.nil?
2939
+ command.query['fields'] = fields unless fields.nil?
2940
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2941
+ execute_or_queue_command(command, &block)
2942
+ end
2943
+
2944
+ # Lists `WasmPluginVersion` resources in a given project and location.
2945
+ # @param [String] parent
2946
+ # Required. The `WasmPlugin` resource whose `WasmPluginVersion`s are listed,
2947
+ # specified in the following format: `projects/`project`/locations/global/
2948
+ # wasmPlugins/`wasm_plugin``.
2949
+ # @param [Fixnum] page_size
2950
+ # Maximum number of `WasmPluginVersion` resources to return per call. If not
2951
+ # specified, at most 50 `WasmPluginVersion`s are returned. The maximum value is
2952
+ # 1000; values above 1000 are coerced to 1000.
2953
+ # @param [String] page_token
2954
+ # The value returned by the last `ListWasmPluginVersionsResponse` call.
2955
+ # Indicates that this is a continuation of a prior `ListWasmPluginVersions` call,
2956
+ # and that the next page of data is to be returned.
2957
+ # @param [String] fields
2958
+ # Selector specifying which fields to include in a partial response.
2959
+ # @param [String] quota_user
2960
+ # Available to use for quota purposes for server-side applications. Can be any
2961
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2962
+ # @param [Google::Apis::RequestOptions] options
2963
+ # Request-specific options
2964
+ #
2965
+ # @yield [result, err] Result & error if block supplied
2966
+ # @yieldparam result [Google::Apis::NetworkservicesV1::ListWasmPluginVersionsResponse] parsed result object
2967
+ # @yieldparam err [StandardError] error object if request failed
2968
+ #
2969
+ # @return [Google::Apis::NetworkservicesV1::ListWasmPluginVersionsResponse]
2970
+ #
2971
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2972
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2973
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2974
+ def list_project_location_wasm_plugin_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2975
+ command = make_simple_command(:get, 'v1/{+parent}/versions', options)
2976
+ command.response_representation = Google::Apis::NetworkservicesV1::ListWasmPluginVersionsResponse::Representation
2977
+ command.response_class = Google::Apis::NetworkservicesV1::ListWasmPluginVersionsResponse
2978
+ command.params['parent'] = parent unless parent.nil?
2979
+ command.query['pageSize'] = page_size unless page_size.nil?
2980
+ command.query['pageToken'] = page_token unless page_token.nil?
2981
+ command.query['fields'] = fields unless fields.nil?
2982
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2983
+ execute_or_queue_command(command, &block)
2984
+ end
2775
2985
 
2776
2986
  protected
2777
2987
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-networkservices_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.47.0
4
+ version: 0.49.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-22 00:00:00.000000000 Z
11
+ date: 2024-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkservices_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-networkservices_v1/v0.47.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-networkservices_v1/v0.49.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkservices_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.6
78
+ rubygems_version: 3.5.21
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Network Services API V1