Skip to content

feat(storage): add enterprise storage classes - #14955

Draft
mukeshbhangria wants to merge 2 commits into
mainfrom
feat-enterprise-storage-classes
Draft

mukeshbhangria wants to merge 2 commits into
mainfrom
feat-enterprise-storage-classes

Conversation

@mukeshbhangria

Copy link
Copy Markdown

Adds STANDARD_ENTERPRISE, LR_STANDARD_ENTERPRISE, and STANDARD_FLEXBACKUP_ENTERPRISE constants to StorageClass and unit tests in StorageClassTest.

Add STANDARD_ENTERPRISE, LR_STANDARD_ENTERPRISE, and STANDARD_FLEXBACKUP_ENTERPRISE constants to StorageClass along with unit tests.

[Generated-by: AI]

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds three new storage classes to StorageClass.java: STANDARD_ENTERPRISE, LR_STANDARD_ENTERPRISE, and STANDARD_FLEXBACKUP_ENTERPRISE, and introduces a new test class StorageClassTest.java to validate them. The feedback suggests formatting the import statements in the new test file to comply with the Google Java Style Guide by grouping and separating them with blank lines.

Comment on lines +16 to +24
package com.google.cloud.storage;
import static com.google.common.truth.Truth.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertThrows;
import java.util.Arrays;
import org.junit.Test;
public class StorageClassTest {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

According to the Google Java Style Guide (Section 3.3.3), import statements must be grouped and separated by a single blank line (static imports first, then non-static imports). Additionally, there should be a blank line between the package declaration and the imports, and between the imports and the class declaration.

package com.google.cloud.storage;

import static com.google.common.truth.Truth.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertThrows;

import java.util.Arrays;
import org.junit.Test;

public class StorageClassTest {
References
  1. Google Java Style Guide Section 3.3.3: Imports are grouped into static and non-static blocks, separated by a single blank line. There should also be blank lines separating the package declaration, imports, and class declaration. (link)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant