Class: Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy
- Inherits:
-
Object
- Object
- Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkconnectivity_v1/classes.rb,
lib/google/apis/networkconnectivity_v1/representations.rb,
lib/google/apis/networkconnectivity_v1/representations.rb
Overview
The ServiceConnectionPolicy resource. Next id: 12
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
A description of this resource.
-
#etag ⇒ String
Optional.
-
#infrastructure ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
User-defined labels.
-
#name ⇒ String
Immutable.
-
#network ⇒ String
The resource path of the consumer network.
-
#psc_config ⇒ Google::Apis::NetworkconnectivityV1::PscConfig
Configuration used for Private Service Connect connections.
-
#psc_connections ⇒ Array<Google::Apis::NetworkconnectivityV1::PscConnection>
Output only.
-
#service_class ⇒ String
The service class identifier for which this ServiceConnectionPolicy is for.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceConnectionPolicy
constructor
A new instance of ServiceConnectionPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ServiceConnectionPolicy
Returns a new instance of ServiceConnectionPolicy.
2142 2143 2144 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2142 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Time when the ServiceConnectionMap was created.
Corresponds to the JSON property createTime
2080 2081 2082 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2080 def create_time @create_time end |
#description ⇒ String
A description of this resource.
Corresponds to the JSON property description
2085 2086 2087 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2085 def description @description end |
#etag ⇒ String
Optional. The etag is computed by the server, and may be sent on update and
delete requests to ensure the client has an up-to-date value before proceeding.
Corresponds to the JSON property etag
2091 2092 2093 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2091 def etag @etag end |
#infrastructure ⇒ String
Output only. The type of underlying resources used to create the connection.
Corresponds to the JSON property infrastructure
2096 2097 2098 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2096 def infrastructure @infrastructure end |
#labels ⇒ Hash<String,String>
User-defined labels.
Corresponds to the JSON property labels
2101 2102 2103 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2101 def labels @labels end |
#name ⇒ String
Immutable. The name of a ServiceConnectionPolicy. Format: projects/project/
locations/location/serviceConnectionPolicies/service_connection_policy See:
https://google.aip.dev/122#fields-representing-resource-names
Corresponds to the JSON property name
2108 2109 2110 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2108 def name @name end |
#network ⇒ String
The resource path of the consumer network. Example: - projects/projectNumOrId
/global/networks/resourceId.
Corresponds to the JSON property network
2114 2115 2116 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2114 def network @network end |
#psc_config ⇒ Google::Apis::NetworkconnectivityV1::PscConfig
Configuration used for Private Service Connect connections. Used when
Infrastructure is PSC.
Corresponds to the JSON property pscConfig
2120 2121 2122 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2120 def psc_config @psc_config end |
#psc_connections ⇒ Array<Google::Apis::NetworkconnectivityV1::PscConnection>
Output only. [Output only] Information about each Private Service Connect
connection.
Corresponds to the JSON property pscConnections
2126 2127 2128 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2126 def psc_connections @psc_connections end |
#service_class ⇒ String
The service class identifier for which this ServiceConnectionPolicy is for.
The service class identifier is a unique, symbolic representation of a
ServiceClass. It is provided by the Service Producer. Google services have a
prefix of gcp. For example, gcp-cloud-sql. 3rd party services do not. For
example, test-service-a3dfcx.
Corresponds to the JSON property serviceClass
2135 2136 2137 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2135 def service_class @service_class end |
#update_time ⇒ String
Output only. Time when the ServiceConnectionMap was updated.
Corresponds to the JSON property updateTime
2140 2141 2142 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2140 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2147 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @etag = args[:etag] if args.key?(:etag) @infrastructure = args[:infrastructure] if args.key?(:infrastructure) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @psc_config = args[:psc_config] if args.key?(:psc_config) @psc_connections = args[:psc_connections] if args.key?(:psc_connections) @service_class = args[:service_class] if args.key?(:service_class) @update_time = args[:update_time] if args.key?(:update_time) end |