@origincloud/network 0.30.0 → 0.32.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.
- package/dist/longrunning/v1beta1/operations.d.ts.map +1 -1
- package/dist/longrunning/v1beta1/operations.js +8 -2
- package/dist/longrunning/v1beta1/operations.js.map +1 -1
- package/dist/v1beta1/acl.d.ts.map +1 -1
- package/dist/v1beta1/acl.js +20 -5
- package/dist/v1beta1/acl.js.map +1 -1
- package/dist/v1beta1/acl_association.d.ts.map +1 -1
- package/dist/v1beta1/acl_association.js +16 -4
- package/dist/v1beta1/acl_association.js.map +1 -1
- package/dist/v1beta1/acl_rule.d.ts.map +1 -1
- package/dist/v1beta1/acl_rule.js +16 -4
- package/dist/v1beta1/acl_rule.js.map +1 -1
- package/dist/v1beta1/dns_policy.d.ts.map +1 -1
- package/dist/v1beta1/dns_policy.js +24 -6
- package/dist/v1beta1/dns_policy.js.map +1 -1
- package/dist/v1beta1/dns_policy_association.d.ts.map +1 -1
- package/dist/v1beta1/dns_policy_association.js +16 -4
- package/dist/v1beta1/dns_policy_association.js.map +1 -1
- package/dist/v1beta1/floating_ip.d.ts.map +1 -1
- package/dist/v1beta1/floating_ip.js +20 -5
- package/dist/v1beta1/floating_ip.js.map +1 -1
- package/dist/v1beta1/floating_ip_association.d.ts.map +1 -1
- package/dist/v1beta1/floating_ip_association.js +16 -4
- package/dist/v1beta1/floating_ip_association.js.map +1 -1
- package/dist/v1beta1/internet_gateway.d.ts.map +1 -1
- package/dist/v1beta1/internet_gateway.js +20 -5
- package/dist/v1beta1/internet_gateway.js.map +1 -1
- package/dist/v1beta1/nat_gateway.d.ts.map +1 -1
- package/dist/v1beta1/nat_gateway.js +20 -5
- package/dist/v1beta1/nat_gateway.js.map +1 -1
- package/dist/v1beta1/network_interface.d.ts.map +1 -1
- package/dist/v1beta1/network_interface.js +20 -5
- package/dist/v1beta1/network_interface.js.map +1 -1
- package/dist/v1beta1/route.d.ts.map +1 -1
- package/dist/v1beta1/route.js +16 -4
- package/dist/v1beta1/route.js.map +1 -1
- package/dist/v1beta1/route_table.d.ts.map +1 -1
- package/dist/v1beta1/route_table.js +20 -5
- package/dist/v1beta1/route_table.js.map +1 -1
- package/dist/v1beta1/route_table_association.d.ts.map +1 -1
- package/dist/v1beta1/route_table_association.js +16 -4
- package/dist/v1beta1/route_table_association.js.map +1 -1
- package/dist/v1beta1/security_group.d.ts.map +1 -1
- package/dist/v1beta1/security_group.js +20 -5
- package/dist/v1beta1/security_group.js.map +1 -1
- package/dist/v1beta1/security_group_association.d.ts.map +1 -1
- package/dist/v1beta1/security_group_association.js +16 -4
- package/dist/v1beta1/security_group_association.js.map +1 -1
- package/dist/v1beta1/security_group_rule.d.ts.map +1 -1
- package/dist/v1beta1/security_group_rule.js +16 -4
- package/dist/v1beta1/security_group_rule.js.map +1 -1
- package/dist/v1beta1/subnet.d.ts.map +1 -1
- package/dist/v1beta1/subnet.js +20 -5
- package/dist/v1beta1/subnet.js.map +1 -1
- package/dist/v1beta1/vpc.d.ts.map +1 -1
- package/dist/v1beta1/vpc.js +20 -5
- package/dist/v1beta1/vpc.js.map +1 -1
- package/package.json +3 -3
- package/src/longrunning/v1beta1/operations.ts +6 -2
- package/src/v1beta1/acl.ts +15 -5
- package/src/v1beta1/acl_association.ts +12 -4
- package/src/v1beta1/acl_rule.ts +12 -4
- package/src/v1beta1/dns_policy.ts +18 -6
- package/src/v1beta1/dns_policy_association.ts +12 -4
- package/src/v1beta1/floating_ip.ts +15 -5
- package/src/v1beta1/floating_ip_association.ts +12 -4
- package/src/v1beta1/internet_gateway.ts +15 -5
- package/src/v1beta1/nat_gateway.ts +15 -5
- package/src/v1beta1/network_interface.ts +15 -5
- package/src/v1beta1/route.ts +12 -4
- package/src/v1beta1/route_table.ts +15 -5
- package/src/v1beta1/route_table_association.ts +12 -4
- package/src/v1beta1/security_group.ts +15 -5
- package/src/v1beta1/security_group_association.ts +12 -4
- package/src/v1beta1/security_group_rule.ts +12 -4
- package/src/v1beta1/subnet.ts +15 -5
- package/src/v1beta1/vpc.ts +15 -5
|
@@ -38,7 +38,9 @@ export class SecurityGroupClient {
|
|
|
38
38
|
|
|
39
39
|
/** Returns a security group. */
|
|
40
40
|
async getSecurityGroup(request: GetSecurityGroupRequest, options?: CallOptions): Promise<SecurityGroup> {
|
|
41
|
-
const
|
|
41
|
+
const n0 = this.service.relativeName("name", request.name, ["network"]);
|
|
42
|
+
const p0 = pathValue("name", n0, "projects/*/regions/*/securityGroups/*");
|
|
43
|
+
if (n0 !== (request.name ?? "")) request = { ...request, name: n0 };
|
|
42
44
|
return this.service.call<SecurityGroup>(
|
|
43
45
|
{
|
|
44
46
|
method: "GET",
|
|
@@ -52,7 +54,9 @@ export class SecurityGroupClient {
|
|
|
52
54
|
|
|
53
55
|
/** Lists the security groups in a region, oldest first. */
|
|
54
56
|
async listSecurityGroups(request: ListSecurityGroupsRequest, options?: CallOptions): Promise<ListSecurityGroupsResponse> {
|
|
55
|
-
const
|
|
57
|
+
const n0 = this.service.relativeName("parent", request.parent, ["network"]);
|
|
58
|
+
const p0 = pathValue("parent", n0, "projects/*/regions/*");
|
|
59
|
+
if (n0 !== (request.parent ?? "")) request = { ...request, parent: n0 };
|
|
56
60
|
return this.service.call<ListSecurityGroupsResponse>(
|
|
57
61
|
{
|
|
58
62
|
method: "GET",
|
|
@@ -87,7 +91,9 @@ export class SecurityGroupClient {
|
|
|
87
91
|
*/
|
|
88
92
|
async createSecurityGroup(request: CreateSecurityGroupRequest, options?: CallOptions): Promise<Operation<SecurityGroup, OperationMetadata>> {
|
|
89
93
|
if (!request.requestId) request = { ...request, requestId: newRequestId() };
|
|
90
|
-
const
|
|
94
|
+
const n0 = this.service.relativeName("parent", request.parent, ["network"]);
|
|
95
|
+
const p0 = pathValue("parent", n0, "projects/*/regions/*");
|
|
96
|
+
if (n0 !== (request.parent ?? "")) request = { ...request, parent: n0 };
|
|
91
97
|
const op = await this.service.call<LongrunningOperation>(
|
|
92
98
|
{
|
|
93
99
|
method: "POST",
|
|
@@ -109,7 +115,9 @@ export class SecurityGroupClient {
|
|
|
109
115
|
*/
|
|
110
116
|
async updateSecurityGroup(request: UpdateSecurityGroupRequest, options?: CallOptions): Promise<Operation<SecurityGroup, OperationMetadata>> {
|
|
111
117
|
if (!request.requestId) request = { ...request, requestId: newRequestId() };
|
|
112
|
-
const
|
|
118
|
+
const n0 = this.service.relativeName("securityGroup.name", request.securityGroup?.name, ["network"]);
|
|
119
|
+
const p0 = pathValue("securityGroup.name", n0, "projects/*/regions/*/securityGroups/*");
|
|
120
|
+
if (n0 !== (request.securityGroup?.name ?? "")) request = { ...request, securityGroup: { ...request.securityGroup, name: n0 } };
|
|
113
121
|
const op = await this.service.call<LongrunningOperation>(
|
|
114
122
|
{
|
|
115
123
|
method: "PATCH",
|
|
@@ -133,7 +141,9 @@ export class SecurityGroupClient {
|
|
|
133
141
|
*/
|
|
134
142
|
async deleteSecurityGroup(request: DeleteSecurityGroupRequest, options?: CallOptions): Promise<Operation<Empty, OperationMetadata>> {
|
|
135
143
|
if (!request.requestId) request = { ...request, requestId: newRequestId() };
|
|
136
|
-
const
|
|
144
|
+
const n0 = this.service.relativeName("name", request.name, ["network"]);
|
|
145
|
+
const p0 = pathValue("name", n0, "projects/*/regions/*/securityGroups/*");
|
|
146
|
+
if (n0 !== (request.name ?? "")) request = { ...request, name: n0 };
|
|
137
147
|
const op = await this.service.call<LongrunningOperation>(
|
|
138
148
|
{
|
|
139
149
|
method: "DELETE",
|
|
@@ -38,7 +38,9 @@ export class SecurityGroupAssociationClient {
|
|
|
38
38
|
|
|
39
39
|
/** Returns a security group association. */
|
|
40
40
|
async getSecurityGroupAssociation(request: GetSecurityGroupAssociationRequest, options?: CallOptions): Promise<SecurityGroupAssociation> {
|
|
41
|
-
const
|
|
41
|
+
const n0 = this.service.relativeName("name", request.name, ["network"]);
|
|
42
|
+
const p0 = pathValue("name", n0, "projects/*/zones/*/networkInterfaces/*/securityGroupAssociations/*");
|
|
43
|
+
if (n0 !== (request.name ?? "")) request = { ...request, name: n0 };
|
|
42
44
|
return this.service.call<SecurityGroupAssociation>(
|
|
43
45
|
{
|
|
44
46
|
method: "GET",
|
|
@@ -52,7 +54,9 @@ export class SecurityGroupAssociationClient {
|
|
|
52
54
|
|
|
53
55
|
/** Lists a network interface's security group associations, oldest first. */
|
|
54
56
|
async listSecurityGroupAssociations(request: ListSecurityGroupAssociationsRequest, options?: CallOptions): Promise<ListSecurityGroupAssociationsResponse> {
|
|
55
|
-
const
|
|
57
|
+
const n0 = this.service.relativeName("parent", request.parent, ["network"]);
|
|
58
|
+
const p0 = pathValue("parent", n0, "projects/*/zones/*/networkInterfaces/*");
|
|
59
|
+
if (n0 !== (request.parent ?? "")) request = { ...request, parent: n0 };
|
|
56
60
|
return this.service.call<ListSecurityGroupAssociationsResponse>(
|
|
57
61
|
{
|
|
58
62
|
method: "GET",
|
|
@@ -88,7 +92,9 @@ export class SecurityGroupAssociationClient {
|
|
|
88
92
|
*/
|
|
89
93
|
async createSecurityGroupAssociation(request: CreateSecurityGroupAssociationRequest, options?: CallOptions): Promise<Operation<SecurityGroupAssociation, OperationMetadata>> {
|
|
90
94
|
if (!request.requestId) request = { ...request, requestId: newRequestId() };
|
|
91
|
-
const
|
|
95
|
+
const n0 = this.service.relativeName("parent", request.parent, ["network"]);
|
|
96
|
+
const p0 = pathValue("parent", n0, "projects/*/zones/*/networkInterfaces/*");
|
|
97
|
+
if (n0 !== (request.parent ?? "")) request = { ...request, parent: n0 };
|
|
92
98
|
const op = await this.service.call<LongrunningOperation>(
|
|
93
99
|
{
|
|
94
100
|
method: "POST",
|
|
@@ -112,7 +118,9 @@ export class SecurityGroupAssociationClient {
|
|
|
112
118
|
*/
|
|
113
119
|
async deleteSecurityGroupAssociation(request: DeleteSecurityGroupAssociationRequest, options?: CallOptions): Promise<Operation<Empty, OperationMetadata>> {
|
|
114
120
|
if (!request.requestId) request = { ...request, requestId: newRequestId() };
|
|
115
|
-
const
|
|
121
|
+
const n0 = this.service.relativeName("name", request.name, ["network"]);
|
|
122
|
+
const p0 = pathValue("name", n0, "projects/*/zones/*/networkInterfaces/*/securityGroupAssociations/*");
|
|
123
|
+
if (n0 !== (request.name ?? "")) request = { ...request, name: n0 };
|
|
116
124
|
const op = await this.service.call<LongrunningOperation>(
|
|
117
125
|
{
|
|
118
126
|
method: "DELETE",
|
|
@@ -37,7 +37,9 @@ export class SecurityGroupRuleClient {
|
|
|
37
37
|
|
|
38
38
|
/** Returns a security group rule. */
|
|
39
39
|
async getSecurityGroupRule(request: GetSecurityGroupRuleRequest, options?: CallOptions): Promise<SecurityGroupRule> {
|
|
40
|
-
const
|
|
40
|
+
const n0 = this.service.relativeName("name", request.name, ["network"]);
|
|
41
|
+
const p0 = pathValue("name", n0, "projects/*/regions/*/securityGroups/*/rules/*");
|
|
42
|
+
if (n0 !== (request.name ?? "")) request = { ...request, name: n0 };
|
|
41
43
|
return this.service.call<SecurityGroupRule>(
|
|
42
44
|
{
|
|
43
45
|
method: "GET",
|
|
@@ -51,7 +53,9 @@ export class SecurityGroupRuleClient {
|
|
|
51
53
|
|
|
52
54
|
/** Lists a security group's rules of both directions, oldest first. */
|
|
53
55
|
async listSecurityGroupRules(request: ListSecurityGroupRulesRequest, options?: CallOptions): Promise<ListSecurityGroupRulesResponse> {
|
|
54
|
-
const
|
|
56
|
+
const n0 = this.service.relativeName("parent", request.parent, ["network"]);
|
|
57
|
+
const p0 = pathValue("parent", n0, "projects/*/regions/*/securityGroups/*");
|
|
58
|
+
if (n0 !== (request.parent ?? "")) request = { ...request, parent: n0 };
|
|
55
59
|
return this.service.call<ListSecurityGroupRulesResponse>(
|
|
56
60
|
{
|
|
57
61
|
method: "GET",
|
|
@@ -88,7 +92,9 @@ export class SecurityGroupRuleClient {
|
|
|
88
92
|
*/
|
|
89
93
|
async createSecurityGroupRule(request: CreateSecurityGroupRuleRequest, options?: CallOptions): Promise<Operation<SecurityGroupRule, OperationMetadata>> {
|
|
90
94
|
if (!request.requestId) request = { ...request, requestId: newRequestId() };
|
|
91
|
-
const
|
|
95
|
+
const n0 = this.service.relativeName("parent", request.parent, ["network"]);
|
|
96
|
+
const p0 = pathValue("parent", n0, "projects/*/regions/*/securityGroups/*");
|
|
97
|
+
if (n0 !== (request.parent ?? "")) request = { ...request, parent: n0 };
|
|
92
98
|
const op = await this.service.call<LongrunningOperation>(
|
|
93
99
|
{
|
|
94
100
|
method: "POST",
|
|
@@ -110,7 +116,9 @@ export class SecurityGroupRuleClient {
|
|
|
110
116
|
*/
|
|
111
117
|
async deleteSecurityGroupRule(request: DeleteSecurityGroupRuleRequest, options?: CallOptions): Promise<Operation<Empty, OperationMetadata>> {
|
|
112
118
|
if (!request.requestId) request = { ...request, requestId: newRequestId() };
|
|
113
|
-
const
|
|
119
|
+
const n0 = this.service.relativeName("name", request.name, ["network"]);
|
|
120
|
+
const p0 = pathValue("name", n0, "projects/*/regions/*/securityGroups/*/rules/*");
|
|
121
|
+
if (n0 !== (request.name ?? "")) request = { ...request, name: n0 };
|
|
114
122
|
const op = await this.service.call<LongrunningOperation>(
|
|
115
123
|
{
|
|
116
124
|
method: "DELETE",
|
package/src/v1beta1/subnet.ts
CHANGED
|
@@ -35,7 +35,9 @@ export class SubnetClient {
|
|
|
35
35
|
|
|
36
36
|
/** Returns a subnet. */
|
|
37
37
|
async getSubnet(request: GetSubnetRequest, options?: CallOptions): Promise<Subnet> {
|
|
38
|
-
const
|
|
38
|
+
const n0 = this.service.relativeName("name", request.name, ["network"]);
|
|
39
|
+
const p0 = pathValue("name", n0, "projects/*/zones/*/subnets/*");
|
|
40
|
+
if (n0 !== (request.name ?? "")) request = { ...request, name: n0 };
|
|
39
41
|
return this.service.call<Subnet>(
|
|
40
42
|
{
|
|
41
43
|
method: "GET",
|
|
@@ -53,7 +55,9 @@ export class SubnetClient {
|
|
|
53
55
|
* service (`location.origincloudapis.eu`), then each zone's subnets.
|
|
54
56
|
*/
|
|
55
57
|
async listSubnets(request: ListSubnetsRequest, options?: CallOptions): Promise<ListSubnetsResponse> {
|
|
56
|
-
const
|
|
58
|
+
const n0 = this.service.relativeName("parent", request.parent, ["network"]);
|
|
59
|
+
const p0 = pathValue("parent", n0, "projects/*/zones/*");
|
|
60
|
+
if (n0 !== (request.parent ?? "")) request = { ...request, parent: n0 };
|
|
57
61
|
return this.service.call<ListSubnetsResponse>(
|
|
58
62
|
{
|
|
59
63
|
method: "GET",
|
|
@@ -89,7 +93,9 @@ export class SubnetClient {
|
|
|
89
93
|
*/
|
|
90
94
|
async createSubnet(request: CreateSubnetRequest, options?: CallOptions): Promise<Operation<Subnet, OperationMetadata>> {
|
|
91
95
|
if (!request.requestId) request = { ...request, requestId: newRequestId() };
|
|
92
|
-
const
|
|
96
|
+
const n0 = this.service.relativeName("parent", request.parent, ["network"]);
|
|
97
|
+
const p0 = pathValue("parent", n0, "projects/*/zones/*");
|
|
98
|
+
if (n0 !== (request.parent ?? "")) request = { ...request, parent: n0 };
|
|
93
99
|
const op = await this.service.call<LongrunningOperation>(
|
|
94
100
|
{
|
|
95
101
|
method: "POST",
|
|
@@ -112,7 +118,9 @@ export class SubnetClient {
|
|
|
112
118
|
*/
|
|
113
119
|
async updateSubnet(request: UpdateSubnetRequest, options?: CallOptions): Promise<Operation<Subnet, OperationMetadata>> {
|
|
114
120
|
if (!request.requestId) request = { ...request, requestId: newRequestId() };
|
|
115
|
-
const
|
|
121
|
+
const n0 = this.service.relativeName("subnet.name", request.subnet?.name, ["network"]);
|
|
122
|
+
const p0 = pathValue("subnet.name", n0, "projects/*/zones/*/subnets/*");
|
|
123
|
+
if (n0 !== (request.subnet?.name ?? "")) request = { ...request, subnet: { ...request.subnet, name: n0 } };
|
|
116
124
|
const op = await this.service.call<LongrunningOperation>(
|
|
117
125
|
{
|
|
118
126
|
method: "PATCH",
|
|
@@ -136,7 +144,9 @@ export class SubnetClient {
|
|
|
136
144
|
*/
|
|
137
145
|
async deleteSubnet(request: DeleteSubnetRequest, options?: CallOptions): Promise<Operation<Empty, OperationMetadata>> {
|
|
138
146
|
if (!request.requestId) request = { ...request, requestId: newRequestId() };
|
|
139
|
-
const
|
|
147
|
+
const n0 = this.service.relativeName("name", request.name, ["network"]);
|
|
148
|
+
const p0 = pathValue("name", n0, "projects/*/zones/*/subnets/*");
|
|
149
|
+
if (n0 !== (request.name ?? "")) request = { ...request, name: n0 };
|
|
140
150
|
const op = await this.service.call<LongrunningOperation>(
|
|
141
151
|
{
|
|
142
152
|
method: "DELETE",
|
package/src/v1beta1/vpc.ts
CHANGED
|
@@ -36,7 +36,9 @@ export class VpcClient {
|
|
|
36
36
|
|
|
37
37
|
/** Returns a VPC. */
|
|
38
38
|
async getVpc(request: GetVpcRequest, options?: CallOptions): Promise<Vpc> {
|
|
39
|
-
const
|
|
39
|
+
const n0 = this.service.relativeName("name", request.name, ["network"]);
|
|
40
|
+
const p0 = pathValue("name", n0, "projects/*/regions/*/vpcs/*");
|
|
41
|
+
if (n0 !== (request.name ?? "")) request = { ...request, name: n0 };
|
|
40
42
|
return this.service.call<Vpc>(
|
|
41
43
|
{
|
|
42
44
|
method: "GET",
|
|
@@ -50,7 +52,9 @@ export class VpcClient {
|
|
|
50
52
|
|
|
51
53
|
/** Lists the VPCs in a region, oldest first. */
|
|
52
54
|
async listVpcs(request: ListVpcsRequest, options?: CallOptions): Promise<ListVpcsResponse> {
|
|
53
|
-
const
|
|
55
|
+
const n0 = this.service.relativeName("parent", request.parent, ["network"]);
|
|
56
|
+
const p0 = pathValue("parent", n0, "projects/*/regions/*");
|
|
57
|
+
if (n0 !== (request.parent ?? "")) request = { ...request, parent: n0 };
|
|
54
58
|
return this.service.call<ListVpcsResponse>(
|
|
55
59
|
{
|
|
56
60
|
method: "GET",
|
|
@@ -86,7 +90,9 @@ export class VpcClient {
|
|
|
86
90
|
*/
|
|
87
91
|
async createVpc(request: CreateVpcRequest, options?: CallOptions): Promise<Operation<Vpc, OperationMetadata>> {
|
|
88
92
|
if (!request.requestId) request = { ...request, requestId: newRequestId() };
|
|
89
|
-
const
|
|
93
|
+
const n0 = this.service.relativeName("parent", request.parent, ["network"]);
|
|
94
|
+
const p0 = pathValue("parent", n0, "projects/*/regions/*");
|
|
95
|
+
if (n0 !== (request.parent ?? "")) request = { ...request, parent: n0 };
|
|
90
96
|
const op = await this.service.call<LongrunningOperation>(
|
|
91
97
|
{
|
|
92
98
|
method: "POST",
|
|
@@ -108,7 +114,9 @@ export class VpcClient {
|
|
|
108
114
|
*/
|
|
109
115
|
async updateVpc(request: UpdateVpcRequest, options?: CallOptions): Promise<Operation<Vpc, OperationMetadata>> {
|
|
110
116
|
if (!request.requestId) request = { ...request, requestId: newRequestId() };
|
|
111
|
-
const
|
|
117
|
+
const n0 = this.service.relativeName("vpc.name", request.vpc?.name, ["network"]);
|
|
118
|
+
const p0 = pathValue("vpc.name", n0, "projects/*/regions/*/vpcs/*");
|
|
119
|
+
if (n0 !== (request.vpc?.name ?? "")) request = { ...request, vpc: { ...request.vpc, name: n0 } };
|
|
112
120
|
const op = await this.service.call<LongrunningOperation>(
|
|
113
121
|
{
|
|
114
122
|
method: "PATCH",
|
|
@@ -133,7 +141,9 @@ export class VpcClient {
|
|
|
133
141
|
*/
|
|
134
142
|
async deleteVpc(request: DeleteVpcRequest, options?: CallOptions): Promise<Operation<Empty, OperationMetadata>> {
|
|
135
143
|
if (!request.requestId) request = { ...request, requestId: newRequestId() };
|
|
136
|
-
const
|
|
144
|
+
const n0 = this.service.relativeName("name", request.name, ["network"]);
|
|
145
|
+
const p0 = pathValue("name", n0, "projects/*/regions/*/vpcs/*");
|
|
146
|
+
if (n0 !== (request.name ?? "")) request = { ...request, name: n0 };
|
|
137
147
|
const op = await this.service.call<LongrunningOperation>(
|
|
138
148
|
{
|
|
139
149
|
method: "DELETE",
|