Skip to content

Commit

Permalink
Refine casing of resource names and C# namespaces (#110)
Browse files Browse the repository at this point in the history
* Clean

* Re-add SDKs

* Schema

* Codegen
  • Loading branch information
mikhailshilkov authored Jun 9, 2021
1 parent 49b7ecb commit 52d0fca
Show file tree
Hide file tree
Showing 62 changed files with 1,072 additions and 1,028 deletions.
70 changes: 35 additions & 35 deletions provider/cmd/pulumi-resource-google-native/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@
"organizationsId": "organizationId"
}
},
"google-native:apigee/v1:Apiproduct": {
"google-native:apigee/v1:ApiProduct": {
"baseUrl": "https://apigee.googleapis.com/",
"createPath": "v1/organizations/{organizationsId}/apiproducts",
"createParams": [
Expand Down Expand Up @@ -1022,7 +1022,7 @@
"organizationsId": "organizationId"
}
},
"google-native:apigee/v1:Canaryevaluation": {
"google-native:apigee/v1:CanaryEvaluation": {
"baseUrl": "https://apigee.googleapis.com/",
"createPath": "v1/organizations/{organizationsId}/instances/{instancesId}/canaryevaluations",
"createParams": [
Expand Down Expand Up @@ -1053,7 +1053,7 @@
"organizationsId": "organizationId"
}
},
"google-native:apigee/v1:Datacollector": {
"google-native:apigee/v1:DataCollector": {
"baseUrl": "https://apigee.googleapis.com/",
"createPath": "v1/organizations/{organizationsId}/datacollectors",
"createParams": [
Expand Down Expand Up @@ -1109,7 +1109,7 @@
},
"idProperty": "self"
},
"google-native:apigee/v1:Debugsession": {
"google-native:apigee/v1:DebugSession": {
"baseUrl": "https://apigee.googleapis.com/",
"createPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions",
"createParams": [
Expand Down Expand Up @@ -1199,60 +1199,60 @@
"organizationsId": "organizationId"
}
},
"google-native:apigee/v1:EnvGroupAttachment": {
"google-native:apigee/v1:Envgroup": {
"baseUrl": "https://apigee.googleapis.com/",
"createPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments",
"createPath": "v1/organizations/{organizationsId}/envgroups",
"createParams": [
{
"name": "organizationsId",
"sdkName": "organizationId",
"location": "path"
"name": "name",
"location": "query"
},
{
"name": "envgroupsId",
"sdkName": "envgroupId",
"name": "organizationsId",
"sdkName": "organizationId",
"location": "path"
}
],
"createVerb": "POST",
"createProperties": {
"environment": {},
"hostnames": {},
"name": {}
},
"idPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments/{attachmentsId}",
"updateVerb": "PATCH",
"updateProperties": {
"hostnames": {},
"name": {}
},
"idPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}",
"idParams": {
"attachmentsId": "name",
"envgroupsId": "envgroupId",
"envgroupsId": "name",
"organizationsId": "organizationId"
}
},
"google-native:apigee/v1:Envgroup": {
"google-native:apigee/v1:EnvgroupAttachment": {
"baseUrl": "https://apigee.googleapis.com/",
"createPath": "v1/organizations/{organizationsId}/envgroups",
"createPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments",
"createParams": [
{
"name": "name",
"location": "query"
},
{
"name": "organizationsId",
"sdkName": "organizationId",
"location": "path"
},
{
"name": "envgroupsId",
"sdkName": "envgroupId",
"location": "path"
}
],
"createVerb": "POST",
"createProperties": {
"hostnames": {},
"name": {}
},
"updateVerb": "PATCH",
"updateProperties": {
"hostnames": {},
"environment": {},
"name": {}
},
"idPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}",
"idPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments/{attachmentsId}",
"idParams": {
"envgroupsId": "name",
"attachmentsId": "name",
"envgroupsId": "envgroupId",
"organizationsId": "organizationId"
}
},
Expand Down Expand Up @@ -1619,7 +1619,7 @@
"noDelete": true,
"idProperty": "self"
},
"google-native:apigee/v1:Rateplan": {
"google-native:apigee/v1:RatePlan": {
"baseUrl": "https://apigee.googleapis.com/",
"createPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans",
"createParams": [
Expand Down Expand Up @@ -1873,7 +1873,7 @@
"subscriptionsId": "name"
}
},
"google-native:apigee/v1:Targetserver": {
"google-native:apigee/v1:TargetServer": {
"baseUrl": "https://apigee.googleapis.com/",
"createPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers",
"createParams": [
Expand Down Expand Up @@ -6470,7 +6470,7 @@
"projectsId": "project"
}
},
"google-native:cloudsearch/v1:Datasource": {
"google-native:cloudsearch/v1:DataSource": {
"baseUrl": "https://cloudsearch.googleapis.com/",
"createPath": "v1/settings/datasources",
"createParams": null,
Expand Down Expand Up @@ -6517,7 +6517,7 @@
"datasourcesId": "name"
}
},
"google-native:cloudsearch/v1:Searchapplication": {
"google-native:cloudsearch/v1:SearchApplication": {
"baseUrl": "https://cloudsearch.googleapis.com/",
"createPath": "v1/settings/searchapplications",
"createParams": null,
Expand Down Expand Up @@ -36772,7 +36772,7 @@
"projectsId": "project"
}
},
"google-native:remotebuildexecution/v1alpha:Workerpool": {
"google-native:remotebuildexecution/v1alpha:WorkerPool": {
"baseUrl": "https://admin-remotebuildexecution.googleapis.com/",
"createPath": "v1alpha/projects/{projectsId}/instances/{instancesId}/workerpools",
"createParams": [
Expand Down Expand Up @@ -37060,7 +37060,7 @@
"projectsId": "project"
}
},
"google-native:run/v1:Domainmapping": {
"google-native:run/v1:DomainMapping": {
"baseUrl": "https://run.googleapis.com/",
"createPath": "v1/projects/{projectsId}/locations/{locationsId}/domainmappings",
"createParams": [
Expand Down
106 changes: 53 additions & 53 deletions provider/cmd/pulumi-resource-google-native/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -145935,7 +145935,7 @@
"organizationId"
]
},
"google-native:apigee/v1:Apiproduct": {
"google-native:apigee/v1:ApiProduct": {
"description": "Creates an API product in an organization. You create API products after you have proxied backend services using API proxies. An API product is a collection of API resources combined with quota settings and metadata that you can use to deliver customized and productized API bundles to your developer community. This metadata can include: - Scope - Environments - API proxies - Extensible profile API products enable you repackage APIs on-the-fly, without having to do any additional coding or configuration. Apigee recommends that you start with a simple API product including only required elements. You then provision credentials to apps to enable them to start testing your APIs. After you have authentication and authorization working against a simple API product, you can iterate to create finer grained API products, defining different sets of API resources for each API product. **WARNING:** - If you don't specify an API proxy in the request body, *any* app associated with the product can make calls to *any* API in your entire organization. - If you don't specify an environment in the request body, the product allows access to all environments. For more information, see What is an API product?",
"properties": {
"apiResources": {
Expand Down Expand Up @@ -146275,7 +146275,7 @@
"organizationId"
]
},
"google-native:apigee/v1:Canaryevaluation": {
"google-native:apigee/v1:CanaryEvaluation": {
"description": "Creates a new canary evaluation for an organization.",
"properties": {
"control": {
Expand Down Expand Up @@ -146362,7 +146362,7 @@
"organizationId"
]
},
"google-native:apigee/v1:Datacollector": {
"google-native:apigee/v1:DataCollector": {
"description": "Creates a new data collector.",
"properties": {
"createdAt": {
Expand Down Expand Up @@ -146483,7 +146483,7 @@
"organizationId"
]
},
"google-native:apigee/v1:Debugsession": {
"google-native:apigee/v1:DebugSession": {
"description": "Creates a debug session for a deployed API Proxy revision.",
"properties": {
"count": {
Expand Down Expand Up @@ -146711,49 +146711,6 @@
"organizationId"
]
},
"google-native:apigee/v1:EnvGroupAttachment": {
"description": "Creates a new attachment of an environment to an environment group.",
"properties": {
"createdAt": {
"type": "string",
"description": "The time at which the environment group attachment was created as milliseconds since epoch."
},
"environment": {
"type": "string",
"description": "Required. ID of the attached environment."
},
"name": {
"type": "string",
"description": "ID of the environment group attachment."
}
},
"type": "object",
"required": [
"createdAt",
"environment",
"name"
],
"inputProperties": {
"envgroupId": {
"type": "string"
},
"environment": {
"type": "string",
"description": "Required. ID of the attached environment."
},
"name": {
"type": "string",
"description": "ID of the environment group attachment."
},
"organizationId": {
"type": "string"
}
},
"requiredInputs": [
"envgroupId",
"organizationId"
]
},
"google-native:apigee/v1:Envgroup": {
"description": "Creates a new environment group.",
"properties": {
Expand Down Expand Up @@ -146809,6 +146766,49 @@
"organizationId"
]
},
"google-native:apigee/v1:EnvgroupAttachment": {
"description": "Creates a new attachment of an environment to an environment group.",
"properties": {
"createdAt": {
"type": "string",
"description": "The time at which the environment group attachment was created as milliseconds since epoch."
},
"environment": {
"type": "string",
"description": "Required. ID of the attached environment."
},
"name": {
"type": "string",
"description": "ID of the environment group attachment."
}
},
"type": "object",
"required": [
"createdAt",
"environment",
"name"
],
"inputProperties": {
"envgroupId": {
"type": "string"
},
"environment": {
"type": "string",
"description": "Required. ID of the attached environment."
},
"name": {
"type": "string",
"description": "ID of the environment group attachment."
},
"organizationId": {
"type": "string"
}
},
"requiredInputs": [
"envgroupId",
"organizationId"
]
},
"google-native:apigee/v1:Environment": {
"description": "Creates an environment in an organization.",
"properties": {
Expand Down Expand Up @@ -147753,7 +147753,7 @@
"organizationId"
]
},
"google-native:apigee/v1:Rateplan": {
"google-native:apigee/v1:RatePlan": {
"description": "Create a rate plan that is associated with an API product in an organization. Using rate plans, API product owners can monetize their API products by configuring one or more of the following: - Billing frequency - Initial setup fees for using an API product - Payment funding model (postpaid only) - Fixed recurring or consumption-based charges for using an API product - Revenue sharing with developer partners An API product can have multiple rate plans associated with it but *only one* rate plan can be active at any point of time. **Note: From the developer's perspective, they purchase API products not rate plans.",
"properties": {
"apiproduct": {
Expand Down Expand Up @@ -148428,7 +148428,7 @@
"organizationId"
]
},
"google-native:apigee/v1:Targetserver": {
"google-native:apigee/v1:TargetServer": {
"description": "Creates a TargetServer in the specified environment.",
"properties": {
"description": {
Expand Down Expand Up @@ -158350,7 +158350,7 @@
"project"
]
},
"google-native:cloudsearch/v1:Datasource": {
"google-native:cloudsearch/v1:DataSource": {
"description": "Creates a datasource. **Note:** This API requires an admin account to execute.",
"properties": {
"disableModifications": {
Expand Down Expand Up @@ -158452,7 +158452,7 @@
}
}
},
"google-native:cloudsearch/v1:Searchapplication": {
"google-native:cloudsearch/v1:SearchApplication": {
"description": "Creates a search application. **Note:** This API requires an admin account to execute.",
"properties": {
"dataSourceRestrictions": {
Expand Down Expand Up @@ -234753,7 +234753,7 @@
"project"
]
},
"google-native:remotebuildexecution/v1alpha:Workerpool": {
"google-native:remotebuildexecution/v1alpha:WorkerPool": {
"description": "Creates a new worker pool with a specified size and configuration. Returns a long running operation which contains a worker pool on completion. While the long running operation is in progress, any call to `GetWorkerPool` returns a worker pool in state `CREATING`.",
"properties": {
"autoscale": {
Expand Down Expand Up @@ -235391,7 +235391,7 @@
"project"
]
},
"google-native:run/v1:Domainmapping": {
"google-native:run/v1:DomainMapping": {
"description": "Create a new domain mapping.",
"properties": {
"apiVersion": {
Expand Down
6 changes: 5 additions & 1 deletion provider/pkg/gen/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ func findResourcesImpl(docName, parentName string, rest map[string]discovery.Res
}
typeName = override
}
if override, has := resourceNameByTypeOverrides[createMethod.Response.Ref]; has {
ref := createMethod.Response.Ref
if createMethod.Request != nil {
ref = createMethod.Request.Ref
}
if override, has := resourceNameByTypeOverrides[ref]; has {
if override == "" {
return nil
}
Expand Down
Loading

0 comments on commit 52d0fca

Please sign in to comment.