Skip to content

Commit 1858e21

Browse files
authored
Merge pull request #26 from cloudgraphdev/fix/vm-instance-tags
fix(services): update vm instance tags to be networkTags
2 parents a2cba72 + 9d1856e commit 1858e21

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/services/vmInstance/format.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export default ({
220220
startRestricted,
221221
status: enumKeyToString(google.cloud.compute.v1.Instance.Status, status),
222222
statusMessage,
223-
tags: {
223+
networkTags: {
224224
fingerprint: tags?.fingerprint,
225225
items: tags?.items,
226226
},

src/services/vmInstance/schema.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type gcpVmInstance implements gcpBaseResource @key(fields: "id") {
3333
startRestricted: Boolean @search
3434
status: String @search(by: [hash, regexp])
3535
statusMessage: String @search(by: [hash, regexp])
36-
tags: gcpComputeTags
36+
networkTags: gcpComputeTags
3737
zone: String @search(by: [hash, regexp])
3838
project: [gcpProject] @hasInverse(field: vmInstances)
3939
network: [gcpNetwork] @hasInverse(field: vmInstances)

src/types/generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2822,6 +2822,7 @@ export type GcpVmInstance = GcpBaseResource & {
28222822
minCpuPlatform?: Maybe<Scalars['String']>;
28232823
network?: Maybe<Array<Maybe<GcpNetwork>>>;
28242824
networkInterfaces?: Maybe<Array<Maybe<GcpComputeNetworkInterface>>>;
2825+
networkTags?: Maybe<GcpComputeTags>;
28252826
privateIpv6GoogleAccess?: Maybe<Scalars['String']>;
28262827
project?: Maybe<Array<Maybe<GcpProject>>>;
28272828
reservationAffinity?: Maybe<GcpReservationAffinity>;
@@ -2836,7 +2837,6 @@ export type GcpVmInstance = GcpBaseResource & {
28362837
status?: Maybe<Scalars['String']>;
28372838
statusMessage?: Maybe<Scalars['String']>;
28382839
subnet?: Maybe<Array<Maybe<GcpSubnet>>>;
2839-
tags?: Maybe<GcpComputeTags>;
28402840
zone?: Maybe<Scalars['String']>;
28412841
};
28422842

0 commit comments

Comments
 (0)