Skip to content

Commit

Permalink
feat(baremetalsolution)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### baremetalsolution:v2

The following keys were deleted:
- schemas.NfsShare.properties.name.readOnly

The following keys were added:
- resources.projects.resources.locations.resources.nfsShares.methods.create.description
- resources.projects.resources.locations.resources.nfsShares.methods.create.flatPath
- resources.projects.resources.locations.resources.nfsShares.methods.create.httpMethod
- resources.projects.resources.locations.resources.nfsShares.methods.create.id
- resources.projects.resources.locations.resources.nfsShares.methods.create.parameterOrder
- resources.projects.resources.locations.resources.nfsShares.methods.create.parameters.parent.description
- resources.projects.resources.locations.resources.nfsShares.methods.create.parameters.parent.location
- resources.projects.resources.locations.resources.nfsShares.methods.create.parameters.parent.pattern
- resources.projects.resources.locations.resources.nfsShares.methods.create.parameters.parent.required
- resources.projects.resources.locations.resources.nfsShares.methods.create.parameters.parent.type
- resources.projects.resources.locations.resources.nfsShares.methods.create.path
- resources.projects.resources.locations.resources.nfsShares.methods.create.request.$ref
- resources.projects.resources.locations.resources.nfsShares.methods.create.response.$ref
- resources.projects.resources.locations.resources.nfsShares.methods.create.scopes
- resources.projects.resources.locations.resources.nfsShares.methods.delete.description
- resources.projects.resources.locations.resources.nfsShares.methods.delete.flatPath
- resources.projects.resources.locations.resources.nfsShares.methods.delete.httpMethod
- resources.projects.resources.locations.resources.nfsShares.methods.delete.id
- resources.projects.resources.locations.resources.nfsShares.methods.delete.parameterOrder
- resources.projects.resources.locations.resources.nfsShares.methods.delete.parameters.name.description
- resources.projects.resources.locations.resources.nfsShares.methods.delete.parameters.name.location
- resources.projects.resources.locations.resources.nfsShares.methods.delete.parameters.name.pattern
- resources.projects.resources.locations.resources.nfsShares.methods.delete.parameters.name.required
- resources.projects.resources.locations.resources.nfsShares.methods.delete.parameters.name.type
- resources.projects.resources.locations.resources.nfsShares.methods.delete.path
- resources.projects.resources.locations.resources.nfsShares.methods.delete.response.$ref
- resources.projects.resources.locations.resources.nfsShares.methods.delete.scopes
- schemas.AllowedClient.properties.shareIp.readOnly
- schemas.Network.properties.jumboFramesEnabled.description
- schemas.Network.properties.jumboFramesEnabled.type
- schemas.Network.properties.mountPoints.description
- schemas.Network.properties.mountPoints.items.$ref
- schemas.Network.properties.mountPoints.type
- schemas.Network.properties.pod.description
- schemas.Network.properties.pod.readOnly
- schemas.Network.properties.pod.type
- schemas.NetworkMountPoint.description
- schemas.NetworkMountPoint.id
- schemas.NetworkMountPoint.properties.defaultGateway.description
- schemas.NetworkMountPoint.properties.defaultGateway.type
- schemas.NetworkMountPoint.properties.instance.description
- schemas.NetworkMountPoint.properties.instance.type
- schemas.NetworkMountPoint.properties.ipAddress.description
- schemas.NetworkMountPoint.properties.ipAddress.type
- schemas.NetworkMountPoint.properties.logicalInterface.description
- schemas.NetworkMountPoint.properties.logicalInterface.type
- schemas.NetworkMountPoint.type
- schemas.NfsShare.properties.state.readOnly
- schemas.NfsShare.properties.storageType.description
- schemas.NfsShare.properties.storageType.enum
- schemas.NfsShare.properties.storageType.enumDescriptions
- schemas.NfsShare.properties.storageType.type
- schemas.NfsShare.properties.volume.readOnly
- schemas.VlanAttachment.properties.id.description
- schemas.VlanAttachment.properties.id.type
- schemas.VlanAttachment.properties.pairingKey.description
- schemas.VlanAttachment.properties.pairingKey.type
- schemas.VlanAttachment.properties.qosPolicy.$ref
- schemas.VlanAttachment.properties.qosPolicy.description
- schemas.Volume.properties.notes.description
- schemas.Volume.properties.notes.type
- schemas.Volume.properties.performanceTier.description
- schemas.Volume.properties.performanceTier.enum
- schemas.Volume.properties.performanceTier.enumDescriptions
- schemas.Volume.properties.performanceTier.type
- schemas.VolumeConfig.properties.performanceTier.description
- schemas.VolumeConfig.properties.performanceTier.enum
- schemas.VolumeConfig.properties.performanceTier.enumDescriptions
- schemas.VolumeConfig.properties.performanceTier.type

The following keys were changed:
- resources.projects.resources.locations.resources.nfsShares.methods.patch.parameters.name.description
- resources.projects.resources.locations.resources.nfsShares.methods.patch.parameters.updateMask.description
- schemas.AllowedClient.properties.shareIp.description
- schemas.NfsShare.properties.name.description
- schemas.NfsShare.properties.state.description
- schemas.NfsShare.properties.volume.description
- schemas.VRF.properties.qosPolicy.description
  • Loading branch information
yoshi-automation authored and sofisl committed Sep 21, 2022
1 parent 4fc00c2 commit 86c86c6
Show file tree
Hide file tree
Showing 3 changed files with 544 additions and 19 deletions.
170 changes: 161 additions & 9 deletions discovery/baremetalsolution-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,59 @@
},
"nfsShares": {
"methods": {
"create": {
"description": "Create an NFS share.",
"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/nfsShares",
"httpMethod": "POST",
"id": "baremetalsolution.projects.locations.nfsShares.create",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. The parent project and location.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/nfsShares",
"request": {
"$ref": "NfsShare"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Delete an NFS share. The underlying volume is automatically deleted.",
"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/nfsShares/{nfsSharesId}",
"httpMethod": "DELETE",
"id": "baremetalsolution.projects.locations.nfsShares.delete",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The name of the NFS share to delete.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/nfsShares/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}",
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Get details of a single NFS share.",
"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/nfsShares/{nfsSharesId}",
Expand Down Expand Up @@ -656,14 +709,14 @@
],
"parameters": {
"name": {
"description": "Output only. The name of the NFS share.",
"description": "Immutable. The name of the NFS share.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/nfsShares/[^/]+$",
"required": true,
"type": "string"
},
"updateMask": {
"description": "The list of fields to update. The only currently supported fields are: `labels`",
"description": "The list of fields to update. The only currently supported fields are: `labels` `allowed_clients`",
"format": "google-fieldmask",
"location": "query",
"type": "string"
Expand Down Expand Up @@ -1084,7 +1137,7 @@
}
}
},
"revision": "20220731",
"revision": "20220829",
"rootUrl": "https://baremetalsolution.googleapis.com/",
"schemas": {
"AllowedClient": {
Expand Down Expand Up @@ -1131,7 +1184,8 @@
"type": "boolean"
},
"shareIp": {
"description": "The IP address of the share on this network.",
"description": "Output only. The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.",
"readOnly": true,
"type": "string"
}
},
Expand Down Expand Up @@ -1802,6 +1856,10 @@
"description": "IP address configured.",
"type": "string"
},
"jumboFramesEnabled": {
"description": "Whether network uses standard frames or jumbo ones.",
"type": "boolean"
},
"labels": {
"additionalProperties": {
"type": "string"
Expand All @@ -1816,11 +1874,23 @@
},
"type": "array"
},
"mountPoints": {
"description": "Input only. List of mount points to attach the network to.",
"items": {
"$ref": "NetworkMountPoint"
},
"type": "array"
},
"name": {
"description": "Output only. The resource name of this `Network`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/networks/{network}`",
"readOnly": true,
"type": "string"
},
"pod": {
"description": "Output only. Pod name.",
"readOnly": true,
"type": "string"
},
"reservations": {
"description": "List of IP address reservations in this network. When updating this field, an error will be generated if a reservation conflicts with an IP address already allocated to a physical server.",
"items": {
Expand Down Expand Up @@ -2004,6 +2074,29 @@
},
"type": "object"
},
"NetworkMountPoint": {
"description": "Mount point for a network.",
"id": "NetworkMountPoint",
"properties": {
"defaultGateway": {
"description": "Network should be a default gateway.",
"type": "boolean"
},
"instance": {
"description": "Instance to attach network to.",
"type": "string"
},
"ipAddress": {
"description": "Ip address of the server.",
"type": "string"
},
"logicalInterface": {
"description": "Logical interface to detach from.",
"type": "string"
}
},
"type": "object"
},
"NetworkUsage": {
"description": "Network with all used IP addresses.",
"id": "NetworkUsage",
Expand Down Expand Up @@ -2091,8 +2184,7 @@
"type": "object"
},
"name": {
"description": "Output only. The name of the NFS share.",
"readOnly": true,
"description": "Immutable. The name of the NFS share.",
"type": "string"
},
"nfsShareId": {
Expand All @@ -2106,7 +2198,7 @@
"type": "string"
},
"state": {
"description": "The state of the NFS share.",
"description": "Output only. The state of the NFS share.",
"enum": [
"STATE_UNSPECIFIED",
"PROVISIONED",
Expand All @@ -2121,10 +2213,26 @@
"The NFS Share is being updated.",
"The NFS Share has been requested to be deleted."
],
"readOnly": true,
"type": "string"
},
"storageType": {
"description": "Immutable. The storage type of the underlying volume.",
"enum": [
"STORAGE_TYPE_UNSPECIFIED",
"SSD",
"HDD"
],
"enumDescriptions": [
"The storage type for this volume is unknown.",
"The storage type for this volume is SSD.",
"This storage type for this volume is HDD."
],
"type": "string"
},
"volume": {
"description": "The volume containing the share.",
"description": "Output only. The underlying volume of the share. Created automatically during provisioning.",
"readOnly": true,
"type": "string"
}
},
Expand Down Expand Up @@ -2554,7 +2662,7 @@
},
"qosPolicy": {
"$ref": "QosPolicy",
"description": "The QOS policy applied to this VRF."
"description": "The QOS policy applied to this VRF. The value is only meaningful when all the vlan attachments have the same QoS. This field should not be used for new integrations, use vlan attachment level qos instead. The field is left for backward-compatibility."
},
"state": {
"description": "The possible state of VRF.",
Expand Down Expand Up @@ -2584,6 +2692,14 @@
"description": "VLAN attachment details.",
"id": "VlanAttachment",
"properties": {
"id": {
"description": "Immutable. The identifier of the attachment within vrf.",
"type": "string"
},
"pairingKey": {
"description": "Input only. Pairing key.",
"type": "string"
},
"peerIp": {
"description": "The peer IP of the attachment.",
"type": "string"
Expand All @@ -2593,6 +2709,10 @@
"format": "int64",
"type": "string"
},
"qosPolicy": {
"$ref": "QosPolicy",
"description": "The QOS policy applied to this VLAN attachment. This value should be preferred to using qos at vrf level."
},
"routerIp": {
"description": "The router IP of the attachment.",
"type": "string"
Expand Down Expand Up @@ -2645,11 +2765,29 @@
"readOnly": true,
"type": "string"
},
"notes": {
"description": "Input only. User-specified notes for new Volume. Used to provision Volumes that require manual intervention.",
"type": "string"
},
"originallyRequestedSizeGib": {
"description": "Originally requested size, in GiB.",
"format": "int64",
"type": "string"
},
"performanceTier": {
"description": "Immutable. Performance tier of the Volume. Default is SHARED.",
"enum": [
"VOLUME_PERFORMANCE_TIER_UNSPECIFIED",
"VOLUME_PERFORMANCE_TIER_SHARED",
"VOLUME_PERFORMANCE_TIER_DEDICATED"
],
"enumDescriptions": [
"Value is not specified.",
"Regular volumes, shared aggregates.",
"Dedicated (assigned) aggregates."
],
"type": "string"
},
"pod": {
"description": "Immutable. Pod name.",
"type": "string"
Expand Down Expand Up @@ -2778,6 +2916,20 @@
},
"type": "array"
},
"performanceTier": {
"description": "Performance tier of the Volume. Default is SHARED.",
"enum": [
"VOLUME_PERFORMANCE_TIER_UNSPECIFIED",
"VOLUME_PERFORMANCE_TIER_SHARED",
"VOLUME_PERFORMANCE_TIER_DEDICATED"
],
"enumDescriptions": [
"Value is not specified.",
"Regular volumes, shared aggregates.",
"Dedicated (assigned) aggregates."
],
"type": "string"
},
"protocol": {
"description": "Volume protocol.",
"enum": [
Expand Down
2 changes: 1 addition & 1 deletion src/apis/baremetalsolution/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"webpack": "webpack"
},
"dependencies": {
"googleapis-common": "^5.0.1"
"googleapis-common": "^6.0.3"
},
"devDependencies": {
"@microsoft/api-documenter": "^7.8.10",
Expand Down
Loading

0 comments on commit 86c86c6

Please sign in to comment.