google-apis-networkmanagement_v1beta1 0.65.0 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/networkmanagement_v1beta1/classes.rb +148 -0
- data/lib/google/apis/networkmanagement_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/networkmanagement_v1beta1/representations.rb +42 -0
- data/lib/google/apis/networkmanagement_v1beta1/service.rb +53 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 745fe234c954e9364289b8f2250896984842aa7e4575ae982e50776f18b3c189
|
4
|
+
data.tar.gz: e023d990a9a774323992ad417ebc4ca8831865f5caed51b13e3b56fd233a20a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e295a913ddbe1ee341ad98c9fd1cfeb77499428bb5304e57d62601319da81fca1e35d642f1c12685c4331632dbf0fc531f1e79f02514e00a652f324cdaaad0da
|
7
|
+
data.tar.gz: 9a075e0a4ee45bfeb2d9f925d1ef020934903beac2c911bf3d911ae9ec6309aa4f514decebc16efe35351c4293e18ccce49b30302e7fab9f52d02477e19f191a
|
data/CHANGELOG.md
CHANGED
@@ -751,6 +751,117 @@ module Google
|
|
751
751
|
end
|
752
752
|
end
|
753
753
|
|
754
|
+
# A configuration to generate a response for GetEffectiveVpcFlowLogsConfig
|
755
|
+
# request.
|
756
|
+
class EffectiveVpcFlowLogsConfig
|
757
|
+
include Google::Apis::Core::Hashable
|
758
|
+
|
759
|
+
# The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
|
760
|
+
# Corresponds to the JSON property `aggregationInterval`
|
761
|
+
# @return [String]
|
762
|
+
attr_accessor :aggregation_interval
|
763
|
+
|
764
|
+
# Determines whether to include cross project annotations in the logs. This
|
765
|
+
# field is available only for organization configurations. If not specified in
|
766
|
+
# org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
|
767
|
+
# Corresponds to the JSON property `crossProjectMetadata`
|
768
|
+
# @return [String]
|
769
|
+
attr_accessor :cross_project_metadata
|
770
|
+
|
771
|
+
# Export filter used to define which VPC Flow Logs should be logged.
|
772
|
+
# Corresponds to the JSON property `filterExpr`
|
773
|
+
# @return [String]
|
774
|
+
attr_accessor :filter_expr
|
775
|
+
|
776
|
+
# The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs
|
777
|
+
# where 1.0 means all collected logs are reported. Setting the sampling rate to
|
778
|
+
# 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field
|
779
|
+
# instead. Default value is 1.0.
|
780
|
+
# Corresponds to the JSON property `flowSampling`
|
781
|
+
# @return [Float]
|
782
|
+
attr_accessor :flow_sampling
|
783
|
+
|
784
|
+
# Traffic will be logged from the Interconnect Attachment. Format: projects/`
|
785
|
+
# project_id`/regions/`region`/interconnectAttachments/`name`
|
786
|
+
# Corresponds to the JSON property `interconnectAttachment`
|
787
|
+
# @return [String]
|
788
|
+
attr_accessor :interconnect_attachment
|
789
|
+
|
790
|
+
# Configures whether all, none or a subset of metadata fields should be added to
|
791
|
+
# the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
|
792
|
+
# Corresponds to the JSON property `metadata`
|
793
|
+
# @return [String]
|
794
|
+
attr_accessor :metadata
|
795
|
+
|
796
|
+
# Custom metadata fields to include in the reported VPC flow logs. Can only be
|
797
|
+
# specified if "metadata" was set to CUSTOM_METADATA.
|
798
|
+
# Corresponds to the JSON property `metadataFields`
|
799
|
+
# @return [Array<String>]
|
800
|
+
attr_accessor :metadata_fields
|
801
|
+
|
802
|
+
# Unique name of the configuration. The name can have one of the following forms:
|
803
|
+
# - For project-level configurations: `projects/`project_id`/locations/global/
|
804
|
+
# vpcFlowLogsConfigs/`vpc_flow_logs_config_id`` - For organization-level
|
805
|
+
# configurations: `organizations/`organization_id`/locations/global/
|
806
|
+
# vpcFlowLogsConfigs/`vpc_flow_logs_config_id`` - For a Compute config, the name
|
807
|
+
# will be the path of the subnet: `projects/`project_id`/regions/`region`/
|
808
|
+
# subnetworks/`subnet_id``
|
809
|
+
# Corresponds to the JSON property `name`
|
810
|
+
# @return [String]
|
811
|
+
attr_accessor :name
|
812
|
+
|
813
|
+
# Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
|
814
|
+
# within the network. Format: projects/`project_id`/global/networks/`name`
|
815
|
+
# Corresponds to the JSON property `network`
|
816
|
+
# @return [String]
|
817
|
+
attr_accessor :network
|
818
|
+
|
819
|
+
# Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
|
820
|
+
# Corresponds to the JSON property `scope`
|
821
|
+
# @return [String]
|
822
|
+
attr_accessor :scope
|
823
|
+
|
824
|
+
# The state of the VPC Flow Log configuration. Default value is ENABLED. When
|
825
|
+
# creating a new configuration, it must be enabled. Setting state=DISABLED will
|
826
|
+
# pause the log generation for this config.
|
827
|
+
# Corresponds to the JSON property `state`
|
828
|
+
# @return [String]
|
829
|
+
attr_accessor :state
|
830
|
+
|
831
|
+
# Traffic will be logged from VMs within the subnetwork. Format: projects/`
|
832
|
+
# project_id`/regions/`region`/subnetworks/`name`
|
833
|
+
# Corresponds to the JSON property `subnet`
|
834
|
+
# @return [String]
|
835
|
+
attr_accessor :subnet
|
836
|
+
|
837
|
+
# Traffic will be logged from the VPN Tunnel. Format: projects/`project_id`/
|
838
|
+
# regions/`region`/vpnTunnels/`name`
|
839
|
+
# Corresponds to the JSON property `vpnTunnel`
|
840
|
+
# @return [String]
|
841
|
+
attr_accessor :vpn_tunnel
|
842
|
+
|
843
|
+
def initialize(**args)
|
844
|
+
update!(**args)
|
845
|
+
end
|
846
|
+
|
847
|
+
# Update properties of this object
|
848
|
+
def update!(**args)
|
849
|
+
@aggregation_interval = args[:aggregation_interval] if args.key?(:aggregation_interval)
|
850
|
+
@cross_project_metadata = args[:cross_project_metadata] if args.key?(:cross_project_metadata)
|
851
|
+
@filter_expr = args[:filter_expr] if args.key?(:filter_expr)
|
852
|
+
@flow_sampling = args[:flow_sampling] if args.key?(:flow_sampling)
|
853
|
+
@interconnect_attachment = args[:interconnect_attachment] if args.key?(:interconnect_attachment)
|
854
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
855
|
+
@metadata_fields = args[:metadata_fields] if args.key?(:metadata_fields)
|
856
|
+
@name = args[:name] if args.key?(:name)
|
857
|
+
@network = args[:network] if args.key?(:network)
|
858
|
+
@scope = args[:scope] if args.key?(:scope)
|
859
|
+
@state = args[:state] if args.key?(:state)
|
860
|
+
@subnet = args[:subnet] if args.key?(:subnet)
|
861
|
+
@vpn_tunnel = args[:vpn_tunnel] if args.key?(:vpn_tunnel)
|
862
|
+
end
|
863
|
+
end
|
864
|
+
|
754
865
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
755
866
|
# messages in your APIs. A typical example is to use it as the request or the
|
756
867
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -825,6 +936,11 @@ module Google
|
|
825
936
|
# @return [String]
|
826
937
|
attr_accessor :gke_master_cluster
|
827
938
|
|
939
|
+
# A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) URI.
|
940
|
+
# Corresponds to the JSON property `gkePod`
|
941
|
+
# @return [String]
|
942
|
+
attr_accessor :gke_pod
|
943
|
+
|
828
944
|
# A Compute Engine instance URI.
|
829
945
|
# Corresponds to the JSON property `instance`
|
830
946
|
# @return [String]
|
@@ -901,6 +1017,7 @@ module Google
|
|
901
1017
|
@forwarding_rule_target = args[:forwarding_rule_target] if args.key?(:forwarding_rule_target)
|
902
1018
|
@fqdn = args[:fqdn] if args.key?(:fqdn)
|
903
1019
|
@gke_master_cluster = args[:gke_master_cluster] if args.key?(:gke_master_cluster)
|
1020
|
+
@gke_pod = args[:gke_pod] if args.key?(:gke_pod)
|
904
1021
|
@instance = args[:instance] if args.key?(:instance)
|
905
1022
|
@ip_address = args[:ip_address] if args.key?(:ip_address)
|
906
1023
|
@load_balancer_id = args[:load_balancer_id] if args.key?(:load_balancer_id)
|
@@ -2824,6 +2941,37 @@ module Google
|
|
2824
2941
|
end
|
2825
2942
|
end
|
2826
2943
|
|
2944
|
+
# Response for the `ShowEffectiveFlowLogsConfigs` method.
|
2945
|
+
class ShowEffectiveFlowLogsConfigsResponse
|
2946
|
+
include Google::Apis::Core::Hashable
|
2947
|
+
|
2948
|
+
# List of Effective Vpc Flow Logs configurations.
|
2949
|
+
# Corresponds to the JSON property `effectiveFlowLogsConfigs`
|
2950
|
+
# @return [Array<Google::Apis::NetworkmanagementV1beta1::EffectiveVpcFlowLogsConfig>]
|
2951
|
+
attr_accessor :effective_flow_logs_configs
|
2952
|
+
|
2953
|
+
# Page token to fetch the next set of configurations.
|
2954
|
+
# Corresponds to the JSON property `nextPageToken`
|
2955
|
+
# @return [String]
|
2956
|
+
attr_accessor :next_page_token
|
2957
|
+
|
2958
|
+
# Locations that could not be reached (when querying all locations with `-`).
|
2959
|
+
# Corresponds to the JSON property `unreachable`
|
2960
|
+
# @return [Array<String>]
|
2961
|
+
attr_accessor :unreachable
|
2962
|
+
|
2963
|
+
def initialize(**args)
|
2964
|
+
update!(**args)
|
2965
|
+
end
|
2966
|
+
|
2967
|
+
# Update properties of this object
|
2968
|
+
def update!(**args)
|
2969
|
+
@effective_flow_logs_configs = args[:effective_flow_logs_configs] if args.key?(:effective_flow_logs_configs)
|
2970
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2971
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
2972
|
+
end
|
2973
|
+
end
|
2974
|
+
|
2827
2975
|
# Probing results for a single edge device.
|
2828
2976
|
class SingleEdgeResponse
|
2829
2977
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module NetworkmanagementV1beta1
|
18
18
|
# Version of the google-apis-networkmanagement_v1beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.66.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250905"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -124,6 +124,12 @@ module Google
|
|
124
124
|
include Google::Apis::Core::JsonObjectSupport
|
125
125
|
end
|
126
126
|
|
127
|
+
class EffectiveVpcFlowLogsConfig
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
127
133
|
class Empty
|
128
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
135
|
|
@@ -352,6 +358,12 @@ module Google
|
|
352
358
|
include Google::Apis::Core::JsonObjectSupport
|
353
359
|
end
|
354
360
|
|
361
|
+
class ShowEffectiveFlowLogsConfigsResponse
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
|
+
|
364
|
+
include Google::Apis::Core::JsonObjectSupport
|
365
|
+
end
|
366
|
+
|
355
367
|
class SingleEdgeResponse
|
356
368
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
369
|
|
@@ -594,6 +606,25 @@ module Google
|
|
594
606
|
end
|
595
607
|
end
|
596
608
|
|
609
|
+
class EffectiveVpcFlowLogsConfig
|
610
|
+
# @private
|
611
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
612
|
+
property :aggregation_interval, as: 'aggregationInterval'
|
613
|
+
property :cross_project_metadata, as: 'crossProjectMetadata'
|
614
|
+
property :filter_expr, as: 'filterExpr'
|
615
|
+
property :flow_sampling, as: 'flowSampling'
|
616
|
+
property :interconnect_attachment, as: 'interconnectAttachment'
|
617
|
+
property :metadata, as: 'metadata'
|
618
|
+
collection :metadata_fields, as: 'metadataFields'
|
619
|
+
property :name, as: 'name'
|
620
|
+
property :network, as: 'network'
|
621
|
+
property :scope, as: 'scope'
|
622
|
+
property :state, as: 'state'
|
623
|
+
property :subnet, as: 'subnet'
|
624
|
+
property :vpn_tunnel, as: 'vpnTunnel'
|
625
|
+
end
|
626
|
+
end
|
627
|
+
|
597
628
|
class Empty
|
598
629
|
# @private
|
599
630
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -615,6 +646,7 @@ module Google
|
|
615
646
|
property :forwarding_rule_target, as: 'forwardingRuleTarget'
|
616
647
|
property :fqdn, as: 'fqdn'
|
617
648
|
property :gke_master_cluster, as: 'gkeMasterCluster'
|
649
|
+
property :gke_pod, as: 'gkePod'
|
618
650
|
property :instance, as: 'instance'
|
619
651
|
property :ip_address, as: 'ipAddress'
|
620
652
|
property :load_balancer_id, as: 'loadBalancerId'
|
@@ -1070,6 +1102,16 @@ module Google
|
|
1070
1102
|
end
|
1071
1103
|
end
|
1072
1104
|
|
1105
|
+
class ShowEffectiveFlowLogsConfigsResponse
|
1106
|
+
# @private
|
1107
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1108
|
+
collection :effective_flow_logs_configs, as: 'effectiveFlowLogsConfigs', class: Google::Apis::NetworkmanagementV1beta1::EffectiveVpcFlowLogsConfig, decorator: Google::Apis::NetworkmanagementV1beta1::EffectiveVpcFlowLogsConfig::Representation
|
1109
|
+
|
1110
|
+
property :next_page_token, as: 'nextPageToken'
|
1111
|
+
collection :unreachable, as: 'unreachable'
|
1112
|
+
end
|
1113
|
+
end
|
1114
|
+
|
1073
1115
|
class SingleEdgeResponse
|
1074
1116
|
# @private
|
1075
1117
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -86,8 +86,8 @@ module Google
|
|
86
86
|
# @param [String] name
|
87
87
|
# The resource that owns the locations collection, if applicable.
|
88
88
|
# @param [Array<String>, String] extra_location_types
|
89
|
-
# Optional.
|
90
|
-
#
|
89
|
+
# Optional. Unless explicitly documented otherwise, don't use this unsupported
|
90
|
+
# field which is primarily intended for internal usage.
|
91
91
|
# @param [String] filter
|
92
92
|
# A filter to narrow down results to a preferred subset. The filtering language
|
93
93
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
@@ -517,8 +517,8 @@ module Google
|
|
517
517
|
# @param [String] name
|
518
518
|
# The resource that owns the locations collection, if applicable.
|
519
519
|
# @param [Array<String>, String] extra_location_types
|
520
|
-
# Optional.
|
521
|
-
#
|
520
|
+
# Optional. Unless explicitly documented otherwise, don't use this unsupported
|
521
|
+
# field which is primarily intended for internal usage.
|
522
522
|
# @param [String] filter
|
523
523
|
# A filter to narrow down results to a preferred subset. The filtering language
|
524
524
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
@@ -1326,6 +1326,55 @@ module Google
|
|
1326
1326
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1327
1327
|
execute_or_queue_command(command, &block)
|
1328
1328
|
end
|
1329
|
+
|
1330
|
+
# ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs
|
1331
|
+
# configurations applicable to a specified resource.
|
1332
|
+
# @param [String] parent
|
1333
|
+
# Required. The parent resource of the VpcFlowLogsConfig, specified in the
|
1334
|
+
# following format: `projects/`project_id`/locations/global`
|
1335
|
+
# @param [String] filter
|
1336
|
+
# Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
|
1337
|
+
# expression. A filter expression must use the supported [CEL logic operators] (
|
1338
|
+
# https://cloud.google.com/vpc/docs/about-flow-logs-records#
|
1339
|
+
# supported_cel_logic_operators).
|
1340
|
+
# @param [Fixnum] page_size
|
1341
|
+
# Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30.
|
1342
|
+
# @param [String] page_token
|
1343
|
+
# Optional. Page token from an earlier query, as returned in `next_page_token`.
|
1344
|
+
# @param [String] resource
|
1345
|
+
# Required. The resource to get the effective VPC Flow Logs configuration for.
|
1346
|
+
# The resource must belong to the same project as the parent. The resource must
|
1347
|
+
# be a network, subnetwork, interconnect attachment, VPN tunnel, or a project.
|
1348
|
+
# @param [String] fields
|
1349
|
+
# Selector specifying which fields to include in a partial response.
|
1350
|
+
# @param [String] quota_user
|
1351
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1352
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1353
|
+
# @param [Google::Apis::RequestOptions] options
|
1354
|
+
# Request-specific options
|
1355
|
+
#
|
1356
|
+
# @yield [result, err] Result & error if block supplied
|
1357
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1beta1::ShowEffectiveFlowLogsConfigsResponse] parsed result object
|
1358
|
+
# @yieldparam err [StandardError] error object if request failed
|
1359
|
+
#
|
1360
|
+
# @return [Google::Apis::NetworkmanagementV1beta1::ShowEffectiveFlowLogsConfigsResponse]
|
1361
|
+
#
|
1362
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1363
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1364
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1365
|
+
def show_project_location_vpc_flow_logs_config_effective_flow_logs_configs(parent, filter: nil, page_size: nil, page_token: nil, resource: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1366
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs', options)
|
1367
|
+
command.response_representation = Google::Apis::NetworkmanagementV1beta1::ShowEffectiveFlowLogsConfigsResponse::Representation
|
1368
|
+
command.response_class = Google::Apis::NetworkmanagementV1beta1::ShowEffectiveFlowLogsConfigsResponse
|
1369
|
+
command.params['parent'] = parent unless parent.nil?
|
1370
|
+
command.query['filter'] = filter unless filter.nil?
|
1371
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1372
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1373
|
+
command.query['resource'] = resource unless resource.nil?
|
1374
|
+
command.query['fields'] = fields unless fields.nil?
|
1375
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1376
|
+
execute_or_queue_command(command, &block)
|
1377
|
+
end
|
1329
1378
|
|
1330
1379
|
protected
|
1331
1380
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-networkmanagement_v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.66.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkmanagement_v1beta1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-networkmanagement_v1beta1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-networkmanagement_v1beta1/v0.66.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkmanagement_v1beta1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|