/aosp_15_r20/external/google-cloud-java/java-dns/src/test/java/com/google/cloud/dns/ |
H A D | ProjectInfoTest.java | 30 private static final ProjectInfo.Quota QUOTA = new ProjectInfo.Quota(1, 2, 3, 4, 5, 6); 31 private static final ProjectInfo PROJECT_INFO = 32 ProjectInfo.newBuilder().setId(ID).setNumber(NUMBER).setQuota(QUOTA).build(); 36 ProjectInfo withId = ProjectInfo.newBuilder().setId(ID).build(); in testBuilder() 40 ProjectInfo withNumber = ProjectInfo.newBuilder().setNumber(NUMBER).build(); in testBuilder() 44 ProjectInfo withQuota = ProjectInfo.newBuilder().setQuota(QUOTA).build(); in testBuilder() 65 ProjectInfo.Quota clone = new ProjectInfo.Quota(6, 5, 4, 3, 2, 1); in testEqualsAndNotEqualsQuota() 67 clone = ProjectInfo.Quota.fromPb(QUOTA.toPb()); in testEqualsAndNotEqualsQuota() 73 ProjectInfo.Quota clone = ProjectInfo.Quota.fromPb(QUOTA.toPb()); in testSameHashCodeOnEqualsQuota() 80 ProjectInfo clone = ProjectInfo.newBuilder().build(); in testEqualsAndNotEquals() [all …]
|
H A D | DnsImplTest.java | 54 private static final ProjectInfo PROJECT_INFO = ProjectInfo.newBuilder().build(); 208 ProjectInfo projectInfo = dns.getProject(); in testGetProject() local 209 assertEquals(PROJECT_INFO, projectInfo); in testGetProject() 219 ProjectInfo projectInfo = dns.getProject(PROJECT_FIELDS); in testProjectGetWithOptions() local 221 assertEquals(PROJECT_INFO, projectInfo); in testProjectGetWithOptions()
|
H A D | SerializationTest.java | 40 private static final ProjectInfo PARTIAL_PROJECT_INFO = 41 ProjectInfo.newBuilder().setId("13").build(); 42 private static final ProjectInfo FULL_PROJECT_INFO = 43 ProjectInfo.newBuilder() 46 .setQuota(new ProjectInfo.Quota(12, 13, 14, 15, 16, 17))
|
/aosp_15_r20/external/google-cloud-java/java-resourcemanager/google-cloud-resourcemanager/src/test/java/com/google/cloud/resourcemanager/ |
H A D | ProjectInfoTest.java | 34 private static final ProjectInfo.State STATE = ProjectInfo.State.DELETE_REQUESTED; 35 private static final ProjectInfo.ResourceId PARENT = 36 new ProjectInfo.ResourceId("id", "organization"); 37 private static final ProjectInfo FULL_PROJECT_INFO = 38 ProjectInfo.newBuilder(PROJECT_ID) 46 private static final ProjectInfo PARTIAL_PROJECT_INFO = 47 ProjectInfo.newBuilder(PROJECT_ID).build(); 48 private static final ProjectInfo UNNAMED_PROJECT_FROM_LIST = 77 compareProjects(FULL_PROJECT_INFO, ProjectInfo.fromPb(FULL_PROJECT_INFO.toPb())); in testToAndFromPb() 78 compareProjects(PARTIAL_PROJECT_INFO, ProjectInfo.fromPb(PARTIAL_PROJECT_INFO.toPb())); in testToAndFromPb() [all …]
|
H A D | ResourceManagerImplTest.java | 39 import com.google.cloud.resourcemanager.ProjectInfo.ResourceId; 75 private static final ProjectInfo PARTIAL_PROJECT = 76 ProjectInfo.newBuilder("partial-project").build(); 78 private static final ProjectInfo COMPLETE_PROJECT = 79 ProjectInfo.newBuilder("complete-project") 153 private void compareReadWriteFields(ProjectInfo expected, ProjectInfo actual) { in compareReadWriteFields() 164 assertEquals(ProjectInfo.State.ACTIVE, returnedProject.getState()); in testCreate() 181 assertEquals(ProjectInfo.State.ACTIVE, returnedProject.getState()); in testCreate() 192 ProjectInfo.State.DELETE_REQUESTED, in testDelete() 312 ProjectInfo matchingProject = in testListFilterOptions() [all …]
|
H A D | ProjectTest.java | 31 import com.google.cloud.resourcemanager.ProjectInfo.ResourceId; 46 private static final ProjectInfo.State STATE = ProjectInfo.State.DELETE_REQUESTED; 47 private static final ProjectInfo PROJECT_INFO = 48 ProjectInfo.newBuilder(PROJECT_ID) 84 new Project(serviceMockReturnsOptions, new ProjectInfo.BuilderImpl(PROJECT_INFO)); in initializeExpectedProject() 88 project = new Project(resourceManager, new ProjectInfo.BuilderImpl(PROJECT_INFO)); in initializeProject() 103 new Project.Builder(new Project(resourceManager, new ProjectInfo.BuilderImpl("wrong-id"))); in testBuilder() 153 ProjectInfo newInfo = PROJECT_INFO.toBuilder().addLabel("k3", "v3").build(); in testReload() 155 new Project(serviceMockReturnsOptions, new ProjectInfo.BuilderImpl(newInfo)); in testReload() 179 new Project(resourceManager, new ProjectInfo.BuilderImpl(PROJECT_INFO)).reload(); in testReloadNull() [all …]
|
H A D | SerializationTest.java | 30 private static final ProjectInfo PARTIAL_PROJECT_INFO = ProjectInfo.newBuilder("id1").build(); 31 private static final ProjectInfo FULL_PROJECT_INFO = 32 ProjectInfo.newBuilder("id") 36 .setState(ProjectInfo.State.ACTIVE) 40 new Project(RESOURCE_MANAGER, new ProjectInfo.BuilderImpl(FULL_PROJECT_INFO));
|
/aosp_15_r20/tools/asuite/aidegen/lib/ |
H A D | project_info_unittest.py | 95 """Initialize arguments for ProjectInfo.""" 117 project_info.ProjectInfo.modules_info = mock_module_info 118 proj_info = project_info.ProjectInfo(self.args.module_name, False) 121 @mock.patch.object(project_info.ProjectInfo, 123 @mock.patch.object(project_info.ProjectInfo, 'get_dep_modules') 126 project_info.ProjectInfo(constant.FRAMEWORK_ALL, False) 135 project_info.ProjectInfo.get_target_name( 140 project_info.ProjectInfo.get_target_name( 167 project_info_obj = project_info.ProjectInfo( 224 project_info_obj = project_info.ProjectInfo( [all …]
|
H A D | project_info.py | 61 class ProjectInfo: class 64 Users should call config_project first before starting using ProjectInfo. 69 projects: A list of instances of ProjectInfo that are generated in an 112 """ProjectInfo initialize. 300 List: A list of ProjectInfo instances. 302 return [ProjectInfo(target, i == 0) for i, target in enumerate(targets)] 382 'called by ProjectInfo\'s locate_source method.') 452 projects: A list of ProjectInfo instances. Information of a project 462 class MultiProjectsInfo(ProjectInfo): 471 ProjectInfo.generate_projects(['module_name']) [all …]
|
H A D | project_file_gen.py | 20 projects: A list of ProjectInfo instances. 77 project_info: A instance of ProjectInfo. 84 project_info: A instance of ProjectInfo. 103 """Generate IDE project files by a list of ProjectInfo instances. 110 projects: A list of ProjectInfo instances. 237 projects: A list of ProjectInfo instances.
|
H A D | project_file_gen_unittest.py | 77 @mock.patch.object(project_info, 'ProjectInfo') 109 @mock.patch.object(project_info, 'ProjectInfo') 128 @mock.patch.object(project_info, 'ProjectInfo') 192 @mock.patch.object(project_info, 'ProjectInfo') 213 @mock.patch.object(project_info, 'ProjectInfo') 280 @mock.patch.object(project_info, 'ProjectInfo')
|
/aosp_15_r20/external/google-cloud-java/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/ |
H A D | Project.java | 34 * instance. {@code Project} adds a layer of service-related functionality over {@link ProjectInfo}. 39 public class Project extends ProjectInfo { 47 public static class Builder extends ProjectInfo.Builder { 49 private final ProjectInfo.BuilderImpl infoBuilder; 53 this.infoBuilder = new ProjectInfo.BuilderImpl(project); in Builder() 122 Project(ResourceManager resourceManager, ProjectInfo.BuilderImpl infoBuilder) { in Project() 150 * <li>The project has a lifecycle state of {@link ProjectInfo.State#ACTIVE}. 153 * This method changes the project's lifecycle state from {@link ProjectInfo.State#ACTIVE} to 154 * {@link ProjectInfo.State#DELETE_REQUESTED}. The deletion starts at an unspecified time, at 155 * which point the lifecycle state changes to {@link ProjectInfo.State#DELETE_IN_PROGRESS}. Until [all …]
|
H A D | ProjectInfo.java | 44 public class ProjectInfo implements Serializable { class 160 /** Builder for {@code ProjectInfo}. */ 213 public abstract ProjectInfo build(); in build() 230 BuilderImpl(ProjectInfo info) { in BuilderImpl() 301 public ProjectInfo build() { in build() 302 return new ProjectInfo(this); in build() 306 ProjectInfo(BuilderImpl builder) { in ProjectInfo() method in ProjectInfo 375 && obj.getClass().equals(ProjectInfo.class) in equals() 376 && Objects.equals(toPb(), ((ProjectInfo) obj).toPb()); in equals() 414 static ProjectInfo fromPb(com.google.api.services.cloudresourcemanager.model.Project projectPb) { in fromPb()
|
H A D | ResourceManager.java | 193 Project create(ProjectInfo project); in create() 202 * <li>The project has a lifecycle state of {@link ProjectInfo.State#ACTIVE}. 205 * This method changes the project's lifecycle state from {@link ProjectInfo.State#ACTIVE} to 206 * {@link ProjectInfo.State#DELETE_REQUESTED}. The deletion starts at an unspecified time, at 207 * which point the lifecycle state changes to {@link ProjectInfo.State#DELETE_IN_PROGRESS}. Until 273 Project replace(ProjectInfo newProject); in replace() 279 * ProjectInfo.State#DELETE_REQUESTED}. After deletion starts, as indicated by a lifecycle state 280 * of {@link ProjectInfo.State#DELETE_IN_PROGRESS}, the project cannot be restored. The caller
|
H A D | ResourceManagerImpl.java | 56 public Project create(final ProjectInfo project) { in create() 175 new ProjectInfo.BuilderImpl(ProjectInfo.fromPb(projectPb))); 186 public Project replace(final ProjectInfo newProject) {
|
/aosp_15_r20/external/google-cloud-java/java-dns/src/main/java/com/google/cloud/dns/ |
H A D | ProjectInfo.java | 34 public class ProjectInfo implements Serializable { class 42 * This class represents quotas assigned to the {@code ProjectInfo}. 165 /** A builder for {@code ProjectInfo}. */ 191 /** Builds an instance of the {@code ProjectInfo}. */ 192 ProjectInfo build() { in build() 193 return new ProjectInfo(this); in build() 197 private ProjectInfo(Builder builder) { in ProjectInfo() method in ProjectInfo 203 /** Returns a builder for {@code ProjectInfo}. */ 233 static ProjectInfo fromPb(Project pb) { in fromPb() 251 && obj.getClass().equals(ProjectInfo.class) in equals() [all …]
|
H A D | DnsBatch.java | 128 * yields the created {@link ProjectInfo} if successful and throws a {@link DnsException} if the 131 public DnsBatchResult<ProjectInfo> getProject(Dns.ProjectOption... options) { in getProject() 132 DnsBatchResult<ProjectInfo> result = new DnsBatchResult<>(); in getProject() 283 final DnsBatchResult<ProjectInfo> result) { 287 result.success(response == null ? null : ProjectInfo.fromPb(response));
|
/aosp_15_r20/external/google-cloud-java/java-resourcemanager/ |
H A D | .readme-partials.yaml | 40 import com.google.cloud.resourcemanager.ProjectInfo; 48 Project project = resourceManager.create(ProjectInfo.newBuilder(projectId).build()); 54 `Project`, a subclass of `ProjectInfo`, adds a layer of service-related functionality over 55 `ProjectInfo`. 58 …To edit a project, create a new `ProjectInfo` object and pass it in to the `Project.replace` metho… 71 `projectName` "some-project-name" and subsequently call replace using a `ProjectInfo` object that
|
H A D | README.md | 132 import com.google.cloud.resourcemanager.ProjectInfo; 140 Project project = resourceManager.create(ProjectInfo.newBuilder(projectId).build()); 146 `Project`, a subclass of `ProjectInfo`, adds a layer of service-related functionality over 147 `ProjectInfo`. 150 To edit a project, create a new `ProjectInfo` object and pass it in to the `Project.replace` method. 163 `projectName` "some-project-name" and subsequently call replace using a `ProjectInfo` object that
|
/aosp_15_r20/tools/asuite/aidegen/ |
H A D | aidegen_main.py | 197 projects: A list of ProjectInfo instances. 267 projects = project_info.ProjectInfo.generate_projects(targets) 269 project_info.ProjectInfo.multi_projects_locate_source(projects) 345 _launch_vscode(ide_util_obj, project_info.ProjectInfo.modules_info, 583 3. Setup project_info.ProjectInfo.modules_info by instantiate 593 project_info.ProjectInfo.modules_info = module_info.AidegenModuleInfo() 596 project_info.ProjectInfo.modules_info, cc_module_info, targets)
|
/aosp_15_r20/external/google-cloud-java/google-cloud-examples/src/main/java/com/google/cloud/examples/resourcemanager/ |
H A D | ResourceManagerExample.java | 20 import com.google.cloud.resourcemanager.ProjectInfo; 67 resourceManager.create(ProjectInfo.newBuilder(projectId).setLabels(labels).build()); in run() 113 ProjectInfo project = resourceManager.get(projectId); in run() 137 for (ProjectInfo project : resourceManager.list().getValues()) { in run() 160 private static String projectDetails(ProjectInfo project) { in projectDetails()
|
/aosp_15_r20/development/tools/ninja_dependency_analysis/ninja_metrics_proto/ |
H A D | ninja_metrics.proto | 30 repeated ProjectInfo project_infos = 3; 33 // ProjectInfo is to describe each git project 34 message ProjectInfo { message
|
/aosp_15_r20/external/google-cloud-java/java-resourcemanager/google-cloud-resourcemanager/src/test/java/com/google/cloud/resourcemanager/it/ |
H A D | ITSystemTest.java | 27 import com.google.cloud.resourcemanager.ProjectInfo; 48 assertEquals(ProjectInfo.State.ACTIVE, project.getState()); in getProjectTest() 70 assertEquals(ProjectInfo.State.ACTIVE, project.getState()); in resourceManagerTest()
|
/aosp_15_r20/tools/asuite/aidegen/project/ |
H A D | project_splitter.py | 72 _projects: A list of ProjectInfo. 98 projects: A list of ProjectInfo object. 468 child: A child project of ProjectInfo instance. 469 parent_sources: The parent project sources of the ProjectInfo instance.
|
/aosp_15_r20/tools/treble/build/treble_build/local/ |
H A D | git.go | 36 ProjectInfo(ctx context.Context, gitDir, workDir string) (out *bytes.Buffer, err error) methodSpec 58 if raw, err := cli.git.ProjectInfo(ctx, gitDir, workDir); err == nil { 227 func (git *gitCmd) ProjectInfo(ctx context.Context, gitDir, workDir string) (*bytes.Buffer, error) { func
|