1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="servicenetworking_v1beta.html">Service Networking API</a> . <a href="servicenetworking_v1beta.services.html">services</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="servicenetworking_v1beta.services.connections.html">connections()</a></code> 79</p> 80<p class="firstline">Returns the connections Resource.</p> 81 82<p class="toc_element"> 83 <code><a href="#addSubnetwork">addSubnetwork(parent, body, x__xgafv=None)</a></code></p> 84<p class="firstline">For service producers, provisions a new subnet in a</p> 85<p class="toc_element"> 86 <code><a href="#searchRange">searchRange(parent, body, x__xgafv=None)</a></code></p> 87<p class="firstline">Service producers can use this method to find a currently unused range</p> 88<p class="toc_element"> 89 <code><a href="#updateConnections">updateConnections(name, body, force=None, updateMask=None, x__xgafv=None)</a></code></p> 90<p class="firstline">Updates the allocated ranges that are assigned to a connection.</p> 91<h3>Method Details</h3> 92<div class="method"> 93 <code class="details" id="addSubnetwork">addSubnetwork(parent, body, x__xgafv=None)</code> 94 <pre>For service producers, provisions a new subnet in a 95peered service's shared VPC network in the requested region and with the 96requested size that's expressed as a CIDR range (number of leading bits of 97ipV4 network mask). The method checks against the assigned allocated ranges 98to find a non-conflicting IP address range. The method will reuse a subnet 99if subsequent calls contain the same subnet name, region, and prefix 100length. This method will make producer's tenant project to be a shared VPC 101service project as needed. The response from the `get` operation will be of 102type `Subnetwork` if the operation successfully completes. 103 104Args: 105 parent: string, Required. A tenant project in the service producer organization, in the 106following format: services/{service}/{collection-id}/{resource-id}. 107{collection-id} is the cloud resource collection type that represents the 108tenant project. Only `projects` are supported. 109{resource-id} is the tenant project numeric id, such as 110`123456`. {service} the name of the peering service, such as 111`service-peering.example.com`. This service must already be 112enabled in the service consumer's project. (required) 113 body: object, The request body. (required) 114 The object takes the form of: 115 116{ # Request to create a subnetwork in a previously peered service network. 117 "description": "A String", # An optional description of the subnet. 118 "consumerNetwork": "A String", # Required. The name of the service consumer's VPC network. The network 119 # must have an existing private connection that was provisioned through the 120 # connections.create method. The name must be in the following format: 121 # `projects/{project}/global/networks/{network}`, where {project} 122 # is a project number, such as `12345`. {network} is the name of a 123 # VPC network in the project. 124 "region": "A String", # Required. The name of a [region](/compute/docs/regions-zones) 125 # for the subnet, such `europe-west1`. 126 "requestedAddress": "A String", # Optional. The starting address of a range. The address must be a valid 127 # IPv4 address in the x.x.x.x format. This value combined with the IP prefix 128 # range is the CIDR range for the subnet. The range must be within the 129 # allocated range that is assigned to the private connection. If the CIDR 130 # range isn't available, the call fails. 131 "ipPrefixLength": 42, # Required. The prefix length of the subnet's IP address range. Use CIDR 132 # range notation, such as `30` to provision a subnet with an 133 # `x.x.x.x/30` CIDR range. The IP address range is drawn from a 134 # pool of available ranges in the service consumer's allocated range. 135 "subnetwork": "A String", # Required. A name for the new subnet. For information about the naming 136 # requirements, see [subnetwork](/compute/docs/reference/rest/v1/subnetworks) 137 # in the Compute API documentation. 138 "consumer": "A String", # Required. A resource that represents the service consumer, such as 139 # `projects/123456`. The project number can be different from the 140 # value in the consumer network parameter. For example, the network might be 141 # part of a Shared VPC network. In those cases, Service Networking validates 142 # that this resource belongs to that Shared VPC. 143 "subnetworkUsers": [ # A list of members that are granted the `compute.networkUser` 144 # role on the subnet. 145 "A String", 146 ], 147 } 148 149 x__xgafv: string, V1 error format. 150 Allowed values 151 1 - v1 error format 152 2 - v2 error format 153 154Returns: 155 An object of the form: 156 157 { # This resource represents a long-running operation that is the result of a 158 # network API call. 159 "metadata": { # Service-specific metadata associated with the operation. It typically 160 # contains progress information and common metadata such as create time. 161 # Some services might not provide such metadata. Any method that returns a 162 # long-running operation should document the metadata type, if any. 163 "a_key": "", # Properties of the object. Contains field @type with type URL. 164 }, 165 "done": True or False, # If the value is `false`, it means the operation is still in progress. 166 # If `true`, the operation is completed, and either `error` or `response` is 167 # available. 168 "response": { # The normal response of the operation in case of success. If the original 169 # method returns no data on success, such as `Delete`, the response is 170 # `google.protobuf.Empty`. If the original method is standard 171 # `Get`/`Create`/`Update`, the response should be the resource. For other 172 # methods, the response should have the type `XxxResponse`, where `Xxx` 173 # is the original method name. For example, if the original method name 174 # is `TakeSnapshot()`, the inferred response type is 175 # `TakeSnapshotResponse`. 176 "a_key": "", # Properties of the object. Contains field @type with type URL. 177 }, 178 "name": "A String", # The server-assigned name, which is only unique within the same service that 179 # originally returns it. If you use the default HTTP mapping, the 180 # `name` should be a resource name ending with `operations/{unique_id}`. 181 "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation. 182 # different programming environments, including REST APIs and RPC APIs. It is 183 # used by [gRPC](https://github.com/grpc). Each `Status` message contains 184 # three pieces of data: error code, error message, and error details. 185 # 186 # You can find out more about this error model and how to work with it in the 187 # [API Design Guide](https://cloud.google.com/apis/design/errors). 188 "message": "A String", # A developer-facing error message, which should be in English. Any 189 # user-facing error message should be localized and sent in the 190 # google.rpc.Status.details field, or localized by the client. 191 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 192 "details": [ # A list of messages that carry the error details. There is a common set of 193 # message types for APIs to use. 194 { 195 "a_key": "", # Properties of the object. Contains field @type with type URL. 196 }, 197 ], 198 }, 199 }</pre> 200</div> 201 202<div class="method"> 203 <code class="details" id="searchRange">searchRange(parent, body, x__xgafv=None)</code> 204 <pre>Service producers can use this method to find a currently unused range 205within consumer allocated ranges. This returned range is not reserved, 206and not guaranteed to remain unused. 207It will validate previously provided allocated ranges, find 208non-conflicting sub-range of requested size (expressed in 209number of leading bits of ipv4 network mask, as in CIDR range 210notation). 211Operation<response: Range> 212 213Args: 214 parent: string, Required. This is in a form services/{service}. 215{service} the name of the private access management service, for example 216'service-peering.example.com'. (required) 217 body: object, The request body. (required) 218 The object takes the form of: 219 220{ # Request to search for an unused range within allocated ranges. 221 "ipPrefixLength": 42, # Required. The prefix length of the IP range. 222 # Use usual CIDR range notation. 223 # For example, '30' to find unused x.x.x.x/30 CIDR range. 224 # Actual range will be determined using allocated range for the consumer 225 # peered network and returned in the result. 226 "network": "A String", # Network name in the consumer project. This network must have been 227 # already peered with a shared VPC network using CreateConnection 228 # method. 229 # Must be in a form 'projects/{project}/global/networks/{network}'. 230 # {project} is a project number, as in '12345' 231 # {network} is network name. 232 } 233 234 x__xgafv: string, V1 error format. 235 Allowed values 236 1 - v1 error format 237 2 - v2 error format 238 239Returns: 240 An object of the form: 241 242 { # This resource represents a long-running operation that is the result of a 243 # network API call. 244 "metadata": { # Service-specific metadata associated with the operation. It typically 245 # contains progress information and common metadata such as create time. 246 # Some services might not provide such metadata. Any method that returns a 247 # long-running operation should document the metadata type, if any. 248 "a_key": "", # Properties of the object. Contains field @type with type URL. 249 }, 250 "done": True or False, # If the value is `false`, it means the operation is still in progress. 251 # If `true`, the operation is completed, and either `error` or `response` is 252 # available. 253 "response": { # The normal response of the operation in case of success. If the original 254 # method returns no data on success, such as `Delete`, the response is 255 # `google.protobuf.Empty`. If the original method is standard 256 # `Get`/`Create`/`Update`, the response should be the resource. For other 257 # methods, the response should have the type `XxxResponse`, where `Xxx` 258 # is the original method name. For example, if the original method name 259 # is `TakeSnapshot()`, the inferred response type is 260 # `TakeSnapshotResponse`. 261 "a_key": "", # Properties of the object. Contains field @type with type URL. 262 }, 263 "name": "A String", # The server-assigned name, which is only unique within the same service that 264 # originally returns it. If you use the default HTTP mapping, the 265 # `name` should be a resource name ending with `operations/{unique_id}`. 266 "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation. 267 # different programming environments, including REST APIs and RPC APIs. It is 268 # used by [gRPC](https://github.com/grpc). Each `Status` message contains 269 # three pieces of data: error code, error message, and error details. 270 # 271 # You can find out more about this error model and how to work with it in the 272 # [API Design Guide](https://cloud.google.com/apis/design/errors). 273 "message": "A String", # A developer-facing error message, which should be in English. Any 274 # user-facing error message should be localized and sent in the 275 # google.rpc.Status.details field, or localized by the client. 276 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 277 "details": [ # A list of messages that carry the error details. There is a common set of 278 # message types for APIs to use. 279 { 280 "a_key": "", # Properties of the object. Contains field @type with type URL. 281 }, 282 ], 283 }, 284 }</pre> 285</div> 286 287<div class="method"> 288 <code class="details" id="updateConnections">updateConnections(name, body, force=None, updateMask=None, x__xgafv=None)</code> 289 <pre>Updates the allocated ranges that are assigned to a connection. 290The response from the `get` operation will be of type `Connection` if the 291operation successfully completes. 292 293Args: 294 name: string, The service producer peering service that is managing peering connectivity 295for a service producer organization. 296For Google services that support this functionality, this is 297`services/servicenetworking.googleapis.com`. (required) 298 body: object, The request body. (required) 299 The object takes the form of: 300 301{ # Represents a private connection resource. A private connection is implemented 302 # as a VPC Network Peering connection between a service producer's VPC network 303 # and a service consumer's VPC network. 304 "peering": "A String", # Output only. 305 # The name of the VPC Network Peering connection that was created by the 306 # service producer. 307 "reservedPeeringRanges": [ # The name of one or more allocated IP address ranges for this service 308 # producer of type `PEERING`. 309 # Note that invoking this method with a different range when connection is 310 # already established will not modify already provisioned service 311 # producer subnetworks. 312 "A String", 313 ], 314 "network": "A String", # The name of service consumer's VPC network that's connected with service 315 # producer network, in the following format: 316 # `projects/{project}/global/networks/{network}`. 317 # `{project}` is a project number, such as in `12345` that includes 318 # the VPC service consumer's VPC network. `{network}` is the name of the 319 # service consumer's VPC network. 320 "service": "A String", # Output only. 321 # The name of the peering service that's associated with this connection, in 322 # the following format: `services/{service name}`. 323 } 324 325 force: boolean, If a previously defined allocated range is removed, force flag must be 326set to true. 327 updateMask: string, The update mask. If this is omitted, it defaults to "*". You can only 328update the listed peering ranges. 329 x__xgafv: string, V1 error format. 330 Allowed values 331 1 - v1 error format 332 2 - v2 error format 333 334Returns: 335 An object of the form: 336 337 { # This resource represents a long-running operation that is the result of a 338 # network API call. 339 "metadata": { # Service-specific metadata associated with the operation. It typically 340 # contains progress information and common metadata such as create time. 341 # Some services might not provide such metadata. Any method that returns a 342 # long-running operation should document the metadata type, if any. 343 "a_key": "", # Properties of the object. Contains field @type with type URL. 344 }, 345 "done": True or False, # If the value is `false`, it means the operation is still in progress. 346 # If `true`, the operation is completed, and either `error` or `response` is 347 # available. 348 "response": { # The normal response of the operation in case of success. If the original 349 # method returns no data on success, such as `Delete`, the response is 350 # `google.protobuf.Empty`. If the original method is standard 351 # `Get`/`Create`/`Update`, the response should be the resource. For other 352 # methods, the response should have the type `XxxResponse`, where `Xxx` 353 # is the original method name. For example, if the original method name 354 # is `TakeSnapshot()`, the inferred response type is 355 # `TakeSnapshotResponse`. 356 "a_key": "", # Properties of the object. Contains field @type with type URL. 357 }, 358 "name": "A String", # The server-assigned name, which is only unique within the same service that 359 # originally returns it. If you use the default HTTP mapping, the 360 # `name` should be a resource name ending with `operations/{unique_id}`. 361 "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation. 362 # different programming environments, including REST APIs and RPC APIs. It is 363 # used by [gRPC](https://github.com/grpc). Each `Status` message contains 364 # three pieces of data: error code, error message, and error details. 365 # 366 # You can find out more about this error model and how to work with it in the 367 # [API Design Guide](https://cloud.google.com/apis/design/errors). 368 "message": "A String", # A developer-facing error message, which should be in English. Any 369 # user-facing error message should be localized and sent in the 370 # google.rpc.Status.details field, or localized by the client. 371 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 372 "details": [ # A list of messages that carry the error details. There is a common set of 373 # message types for APIs to use. 374 { 375 "a_key": "", # Properties of the object. Contains field @type with type URL. 376 }, 377 ], 378 }, 379 }</pre> 380</div> 381 382</body></html>