Skip to content

Commit 8bee4b1

Browse files
committed
yaml format
1 parent 507ee8e commit 8bee4b1

File tree

3 files changed

+5
-22
lines changed

3 files changed

+5
-22
lines changed

internal/testdata/googleapis/google/cloud/dataproc/v1/dataproc_v1.yaml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ type: google.api.Service
22
config_version: 3
33
name: dataproc.googleapis.com
44
title: Cloud Dataproc API
5-
65
apis:
76
- name: google.cloud.dataproc.v1.AutoscalingPolicyService
87
- name: google.cloud.dataproc.v1.BatchController
@@ -14,7 +13,6 @@ apis:
1413
- name: google.cloud.dataproc.v1.WorkflowTemplateService
1514
- name: google.iam.v1.IAMPolicy
1615
- name: google.longrunning.Operations
17-
1816
types:
1917
- name: google.cloud.dataproc.v1.BatchOperationMetadata
2018
- name: google.cloud.dataproc.v1.ClusterOperationMetadata
@@ -23,33 +21,29 @@ types:
2321
- name: google.cloud.dataproc.v1.NodeGroupOperationMetadata
2422
- name: google.cloud.dataproc.v1.SessionOperationMetadata
2523
- name: google.cloud.dataproc.v1.WorkflowMetadata
26-
2724
documentation:
2825
summary: 'Manages Hadoop-based clusters and jobs on Google Cloud Platform.'
2926
rules:
3027
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
3128
description: |-
3229
Gets the access control policy for a resource. Returns an empty policy
3330
if the resource exists and does not have a policy set.
34-
3531
- selector: google.iam.v1.IAMPolicy.SetIamPolicy
3632
description: |-
3733
Sets the access control policy on the specified resource. Replaces
3834
any existing policy.
39-
35+
4036
Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`
4137
errors.
42-
4338
- selector: google.iam.v1.IAMPolicy.TestIamPermissions
4439
description: |-
4540
Returns permissions that a caller has on the specified resource. If the
4641
resource does not exist, this will return an empty set of
4742
permissions, not a `NOT_FOUND` error.
48-
43+
4944
Note: This operation is designed to be used for building
5045
permission-aware UIs and command-line tools, not for authorization
5146
checking. This operation may "fail open" without warning.
52-
5347
http:
5448
rules:
5549
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
@@ -116,7 +110,6 @@ http:
116110
get: '/v1/{name=projects/*/regions/*/operations}'
117111
additional_bindings:
118112
- get: '/v1/{name=projects/*/locations/*/operations}'
119-
120113
authentication:
121114
rules:
122115
- selector: 'google.cloud.dataproc.v1.AutoscalingPolicyService.*'
@@ -158,4 +151,4 @@ authentication:
158151
- selector: 'google.longrunning.Operations.*'
159152
oauth:
160153
canonical_scopes: |-
161-
https://www.googleapis.com/auth/cloud-platform
154+
https://www.googleapis.com/auth/cloud-platform

internal/testdata/googleapis/google/cloud/tasks/v2/cloudtasks_v2.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ type: google.api.Service
22
config_version: 3
33
name: cloudtasks.googleapis.com
44
title: Cloud Tasks API
5-
65
apis:
76
- name: google.cloud.location.Locations
87
- name: google.cloud.tasks.v2.CloudTasks
9-
108
documentation:
119
summary: Manages the execution of large numbers of distributed requests.
1210
overview: |-
@@ -17,10 +15,8 @@ documentation:
1715
rules:
1816
- selector: google.cloud.location.Locations.GetLocation
1917
description: Gets information about a location.
20-
2118
- selector: google.cloud.location.Locations.ListLocations
2219
description: Lists information about the supported locations for this service.
23-
2420
backend:
2521
rules:
2622
- selector: google.cloud.location.Locations.GetLocation
@@ -29,14 +25,12 @@ backend:
2925
deadline: 5.0
3026
- selector: 'google.cloud.tasks.v2.CloudTasks.*'
3127
deadline: 15.0
32-
3328
http:
3429
rules:
3530
- selector: google.cloud.location.Locations.GetLocation
3631
get: '/v2/{name=projects/*/locations/*}'
3732
- selector: google.cloud.location.Locations.ListLocations
3833
get: '/v2/{name=projects/*}/locations'
39-
4034
authentication:
4135
rules:
4236
- selector: google.cloud.location.Locations.GetLocation
@@ -50,4 +44,4 @@ authentication:
5044
- selector: 'google.cloud.tasks.v2.CloudTasks.*'
5145
oauth:
5246
canonical_scopes: |-
53-
https://www.googleapis.com/auth/cloud-platform
47+
https://www.googleapis.com/auth/cloud-platform

internal/testdata/googleapis/google/devtools/containeranalysis/v1beta1/containeranalysis_v1beta1.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ type: google.api.Service
22
config_version: 3
33
name: containeranalysis.googleapis.com
44
title: Container Analysis API
5-
65
apis:
76
- name: google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1
8-
97
documentation:
108
summary: |-
119
This API is a prerequisite for leveraging Artifact Analysis
@@ -19,16 +17,14 @@ documentation:
1917
overview: |-
2018
The Container Analysis API allows you to store and retrieve metadata for a
2119
container resource.
22-
2320
authentication:
2421
rules:
2522
- selector: 'google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.*'
2623
oauth:
2724
canonical_scopes: |-
2825
https://www.googleapis.com/auth/cloud-platform
29-
3026
publishing:
3127
library_settings:
3228
- version: google.devtools.containeranalysis.v1beta1
3329
java_settings:
34-
library_package: com.google.cloud.devtools.containeranalysis.v1beta1
30+
library_package: com.google.cloud.devtools.containeranalysis.v1beta1

0 commit comments

Comments
 (0)