Class: Google::Apis::ServicenetworkingV1::ConsumerConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/servicenetworking_v1/classes.rb,
lib/google/apis/servicenetworking_v1/representations.rb,
lib/google/apis/servicenetworking_v1/representations.rb

Overview

Configuration information for a private service access connection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConsumerConfig

Returns a new instance of ConsumerConfig.



994
995
996
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 994

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cloudsql_configsArray<Google::Apis::ServicenetworkingV1::CloudSqlConfig>

Represents one or multiple Cloud SQL configurations. Corresponds to the JSON property cloudsqlConfigs



915
916
917
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 915

def cloudsql_configs
  @cloudsql_configs
end

#consumer_export_custom_routesBoolean Also known as: consumer_export_custom_routes?

Export custom routes flag value for peering from consumer to producer. Corresponds to the JSON property consumerExportCustomRoutes

Returns:

  • (Boolean)


920
921
922
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 920

def consumer_export_custom_routes
  @consumer_export_custom_routes
end

#consumer_export_subnet_routes_with_public_ipBoolean Also known as: consumer_export_subnet_routes_with_public_ip?

Export subnet routes with public ip flag value for peering from consumer to producer. Corresponds to the JSON property consumerExportSubnetRoutesWithPublicIp

Returns:

  • (Boolean)


927
928
929
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 927

def consumer_export_subnet_routes_with_public_ip
  @consumer_export_subnet_routes_with_public_ip
end

#consumer_import_custom_routesBoolean Also known as: consumer_import_custom_routes?

Import custom routes flag value for peering from consumer to producer. Corresponds to the JSON property consumerImportCustomRoutes

Returns:

  • (Boolean)


933
934
935
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 933

def consumer_import_custom_routes
  @consumer_import_custom_routes
end

#consumer_import_subnet_routes_with_public_ipBoolean Also known as: consumer_import_subnet_routes_with_public_ip?

Import subnet routes with public ip flag value for peering from consumer to producer. Corresponds to the JSON property consumerImportSubnetRoutesWithPublicIp

Returns:

  • (Boolean)


940
941
942
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 940

def consumer_import_subnet_routes_with_public_ip
  @consumer_import_subnet_routes_with_public_ip
end

#producer_export_custom_routesBoolean Also known as: producer_export_custom_routes?

Export custom routes flag value for peering from producer to consumer. Corresponds to the JSON property producerExportCustomRoutes

Returns:

  • (Boolean)


946
947
948
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 946

def producer_export_custom_routes
  @producer_export_custom_routes
end

#producer_export_subnet_routes_with_public_ipBoolean Also known as: producer_export_subnet_routes_with_public_ip?

Export subnet routes with public ip flag value for peering from producer to consumer. Corresponds to the JSON property producerExportSubnetRoutesWithPublicIp

Returns:

  • (Boolean)


953
954
955
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 953

def producer_export_subnet_routes_with_public_ip
  @producer_export_subnet_routes_with_public_ip
end

#producer_import_custom_routesBoolean Also known as: producer_import_custom_routes?

Import custom routes flag value for peering from producer to consumer. Corresponds to the JSON property producerImportCustomRoutes

Returns:

  • (Boolean)


959
960
961
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 959

def producer_import_custom_routes
  @producer_import_custom_routes
end

#producer_import_subnet_routes_with_public_ipBoolean Also known as: producer_import_subnet_routes_with_public_ip?

Import subnet routes with public ip flag value for peering from producer to consumer. Corresponds to the JSON property producerImportSubnetRoutesWithPublicIp

Returns:

  • (Boolean)


966
967
968
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 966

def producer_import_subnet_routes_with_public_ip
  @producer_import_subnet_routes_with_public_ip
end

#producer_networkString

Output only. The VPC host network that is used to host managed service instances. In the format, projects/project/global/networks/network where project is the project number e.g. '12345' and network is the network name. Corresponds to the JSON property producerNetwork

Returns:

  • (String)


974
975
976
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 974

def producer_network
  @producer_network
end

#reserved_rangesArray<Google::Apis::ServicenetworkingV1::GoogleCloudServicenetworkingV1ConsumerConfigReservedRange>

Output only. The reserved ranges associated with this private service access connection. Corresponds to the JSON property reservedRanges



980
981
982
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 980

def reserved_ranges
  @reserved_ranges
end

#used_ip_rangesArray<String>

Output only. The IP ranges already in use by consumer or producer Corresponds to the JSON property usedIpRanges

Returns:

  • (Array<String>)


985
986
987
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 985

def used_ip_ranges
  @used_ip_ranges
end

#vpc_sc_reference_architecture_enabledBoolean Also known as: vpc_sc_reference_architecture_enabled?

Output only. Indicates whether the VPC Service Controls reference architecture is configured for the producer VPC host network. Corresponds to the JSON property vpcScReferenceArchitectureEnabled

Returns:

  • (Boolean)


991
992
993
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 991

def vpc_sc_reference_architecture_enabled
  @vpc_sc_reference_architecture_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 999

def update!(**args)
  @cloudsql_configs = args[:cloudsql_configs] if args.key?(:cloudsql_configs)
  @consumer_export_custom_routes = args[:consumer_export_custom_routes] if args.key?(:consumer_export_custom_routes)
  @consumer_export_subnet_routes_with_public_ip = args[:consumer_export_subnet_routes_with_public_ip] if args.key?(:consumer_export_subnet_routes_with_public_ip)
  @consumer_import_custom_routes = args[:consumer_import_custom_routes] if args.key?(:consumer_import_custom_routes)
  @consumer_import_subnet_routes_with_public_ip = args[:consumer_import_subnet_routes_with_public_ip] if args.key?(:consumer_import_subnet_routes_with_public_ip)
  @producer_export_custom_routes = args[:producer_export_custom_routes] if args.key?(:producer_export_custom_routes)
  @producer_export_subnet_routes_with_public_ip = args[:producer_export_subnet_routes_with_public_ip] if args.key?(:producer_export_subnet_routes_with_public_ip)
  @producer_import_custom_routes = args[:producer_import_custom_routes] if args.key?(:producer_import_custom_routes)
  @producer_import_subnet_routes_with_public_ip = args[:producer_import_subnet_routes_with_public_ip] if args.key?(:producer_import_subnet_routes_with_public_ip)
  @producer_network = args[:producer_network] if args.key?(:producer_network)
  @reserved_ranges = args[:reserved_ranges] if args.key?(:reserved_ranges)
  @used_ip_ranges = args[:used_ip_ranges] if args.key?(:used_ip_ranges)
  @vpc_sc_reference_architecture_enabled = args[:vpc_sc_reference_architecture_enabled] if args.key?(:vpc_sc_reference_architecture_enabled)
end