Skip to content

Commit

Permalink
feat(servicenetworking): update the api
Browse files Browse the repository at this point in the history
#### servicenetworking:v1

The following keys were added:
- resources.services.resources.projects.resources.global.resources.networks.methods.getVpcServiceControls (Total Keys: 11)
- schemas.AddSubnetworkRequest.properties.internalRange.type (Total Keys: 1)
- schemas.VpcServiceControls (Total Keys: 4)

#### servicenetworking:v1beta

The following keys were added:
- schemas.VpcServiceControls (Total Keys: 4)
  • Loading branch information
yoshi-automation committed Oct 31, 2023
1 parent 954b59d commit 8eda3cb
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/dyn/servicenetworking_v1.services.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ <h3>Method Details</h3>
&quot;consumer&quot;: &quot;A String&quot;, # Required. A resource that represents the service consumer, such as `projects/123456`. The project number can be different from the value in the consumer network parameter. For example, the network might be part of a Shared VPC network. In those cases, Service Networking validates that this resource belongs to that Shared VPC.
&quot;consumerNetwork&quot;: &quot;A String&quot;, # Required. The name of the service consumer&#x27;s VPC network. The network must have an existing private connection that was provisioned through the connections.create method. The name must be in the following format: `projects/{project}/global/networks/{network}`, where {project} is a project number, such as `12345`. {network} is the name of a VPC network in the project.
&quot;description&quot;: &quot;A String&quot;, # Optional. Description of the subnet.
&quot;internalRange&quot;: &quot;A String&quot;, # Optional. The url of an Internal Range. Eg: `projects//locations/global/internalRanges/`. If specified, it means that the subnetwork cidr will be created using the combination of requested_address/ip_prefix_length. Note that the subnet cidr has to be within the cidr range of this Internal Range.
&quot;ipPrefixLength&quot;: 42, # Required. The prefix length of the subnet&#x27;s IP address range. Use CIDR range notation, such as `29` to provision a subnet with an `x.x.x.x/29` CIDR range. The IP address range is drawn from a pool of available ranges in the service consumer&#x27;s allocated range. GCE disallows subnets with prefix_length &gt; 29
&quot;outsideAllocationPublicIpRange&quot;: &quot;A String&quot;, # Optional. Enable outside allocation using public IP addresses. Any public IP range may be specified. If this field is provided, we will not use customer reserved ranges for this primary IP range.
&quot;privateIpv6GoogleAccess&quot;: &quot;A String&quot;, # Optional. The private IPv6 google access type for the VMs in this subnet. For information about the access types that can be set using this field, see [subnetwork](https://cloud.google.com/compute/docs/reference/rest/v1/subnetworks) in the Compute API documentation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ <h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#get">get(name, includeUsedIpRanges=None, x__xgafv=None)</a></code></p>
<p class="firstline">Service producers use this method to get the configuration of their connection including the import/export of custom routes and subnetwork routes with public IP.</p>
<p class="toc_element">
<code><a href="#getVpcServiceControls">getVpcServiceControls(name, x__xgafv=None)</a></code></p>
<p class="firstline">Consumers use this method to find out the state of VPC Service Controls. The controls could be enabled or disabled for a connection.</p>
<p class="toc_element">
<code><a href="#updateConsumerConfig">updateConsumerConfig(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Service producers use this method to update the configuration of their connection including the import/export of custom routes and subnetwork routes with public IP.</p>
Expand Down Expand Up @@ -145,6 +148,25 @@ <h3>Method Details</h3>
}</pre>
</div>

<div class="method">
<code class="details" id="getVpcServiceControls">getVpcServiceControls(name, x__xgafv=None)</code>
<pre>Consumers use this method to find out the state of VPC Service Controls. The controls could be enabled or disabled for a connection.

Args:
name: string, Required. Name of the VPC Service Controls config to retrieve in the format: `services/{service}/projects/{project}/global/networks/{network}`. {service} is the peering service that is managing connectivity for the service producer&#x27;s organization. For Google services that support this functionality, this value is `servicenetworking.googleapis.com`. {project} is a project number e.g. `12345` that contains the service consumer&#x27;s VPC network. {network} is the name of the service consumer&#x27;s VPC network. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format

Returns:
An object of the form:

{ # Response for the get VPC Service Controls request.
&quot;enabled&quot;: True or False, # Output only. Indicates whether the VPC Service Controls are enabled or disabled for the connection. If the consumer called the EnableVpcServiceControls method, then this is true. If the consumer called DisableVpcServiceControls, then this is false. The default is false.
}</pre>
</div>

<div class="method">
<code class="details" id="updateConsumerConfig">updateConsumerConfig(parent, body=None, x__xgafv=None)</code>
<pre>Service producers use this method to update the configuration of their connection including the import/export of custom routes and subnetwork routes with public IP.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,32 @@
"https://www.googleapis.com/auth/service.management"
]
},
"getVpcServiceControls": {
"description": "Consumers use this method to find out the state of VPC Service Controls. The controls could be enabled or disabled for a connection.",
"flatPath": "v1/services/{servicesId}/projects/{projectsId}/global/networks/{networksId}/vpcServiceControls",
"httpMethod": "GET",
"id": "servicenetworking.services.projects.global.networks.getVpcServiceControls",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. Name of the VPC Service Controls config to retrieve in the format: `services/{service}/projects/{project}/global/networks/{network}`. {service} is the peering service that is managing connectivity for the service producer's organization. For Google services that support this functionality, this value is `servicenetworking.googleapis.com`. {project} is a project number e.g. `12345` that contains the service consumer's VPC network. {network} is the name of the service consumer's VPC network.",
"location": "path",
"pattern": "^services/[^/]+/projects/[^/]+/global/networks/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}/vpcServiceControls",
"response": {
"$ref": "VpcServiceControls"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/service.management"
]
},
"updateConsumerConfig": {
"description": "Service producers use this method to update the configuration of their connection including the import/export of custom routes and subnetwork routes with public IP.",
"flatPath": "v1/services/{servicesId}/projects/{projectsId}/global/networks/{networksId}:updateConsumerConfig",
Expand Down Expand Up @@ -1003,7 +1029,7 @@
}
}
},
"revision": "20231004",
"revision": "20231029",
"rootUrl": "https://servicenetworking.googleapis.com/",
"schemas": {
"AddDnsRecordSetMetadata": {
Expand Down Expand Up @@ -1138,6 +1164,10 @@
"description": "Optional. Description of the subnet.",
"type": "string"
},
"internalRange": {
"description": "Optional. The url of an Internal Range. Eg: `projects//locations/global/internalRanges/`. If specified, it means that the subnetwork cidr will be created using the combination of requested_address/ip_prefix_length. Note that the subnet cidr has to be within the cidr range of this Internal Range.",
"type": "string"
},
"ipPrefixLength": {
"description": "Required. The prefix length of the subnet's IP address range. Use CIDR range notation, such as `29` to provision a subnet with an `x.x.x.x/29` CIDR range. The IP address range is drawn from a pool of available ranges in the service consumer's allocated range. GCE disallows subnets with prefix_length > 29",
"format": "int32",
Expand Down Expand Up @@ -4048,6 +4078,18 @@
}
},
"type": "object"
},
"VpcServiceControls": {
"description": "Response for the get VPC Service Controls request.",
"id": "VpcServiceControls",
"properties": {
"enabled": {
"description": "Output only. Indicates whether the VPC Service Controls are enabled or disabled for the connection. If the consumer called the EnableVpcServiceControls method, then this is true. If the consumer called DisableVpcServiceControls, then this is false. The default is false.",
"readOnly": true,
"type": "boolean"
}
},
"type": "object"
}
},
"servicePath": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@
}
}
},
"revision": "20231004",
"revision": "20231029",
"rootUrl": "https://servicenetworking.googleapis.com/",
"schemas": {
"AddDnsRecordSetMetadata": {
Expand Down Expand Up @@ -2896,6 +2896,18 @@
}
},
"type": "object"
},
"VpcServiceControls": {
"description": "Response for the get VPC Service Controls request.",
"id": "VpcServiceControls",
"properties": {
"enabled": {
"description": "Output only. Indicates whether the VPC Service Controls are enabled or disabled for the connection. If the consumer called the EnableVpcServiceControls method, then this is true. If the consumer called DisableVpcServiceControls, then this is false. The default is false.",
"readOnly": true,
"type": "boolean"
}
},
"type": "object"
}
},
"servicePath": "",
Expand Down

0 comments on commit 8eda3cb

Please sign in to comment.